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§
Sourcefn write_block(&mut self, data: &[u8]) -> bool
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>.
impl WriteStream for Vec<u8>
Concrete WriteStream implementation for Vec<u8>.