Skip to main content

WriteStream

Trait WriteStream 

Source
pub trait WriteStream {
    // Required method
    fn write_block(&mut self, data: &[u8]) -> bool;
}
Expand description

Trait for writing a block of bytes.

Interface-only port of IFX_WriteStream (fx_stream.h).

Required Methods§

Source

fn write_block(&mut self, data: &[u8]) -> bool

Write data to the stream. Empty slice is a no-op; returns true.

Implementations on Foreign Types§

Source§

impl WriteStream for Vec<u8>

Concrete WriteStream implementation for Vec<u8>.

Source§

fn write_block(&mut self, data: &[u8]) -> bool

Implementors§