pub trait Encoder: InternalHandleEncoder {
    // Required methods
    fn bytes_written(&self) -> usize;
    fn write_zeroes(&mut self, len: usize);
    fn write(&mut self, bytes: &[u8]);
    fn rewrite(&mut self, pos: usize, bytes: &[u8]);
}Expand description
An encoder for FIDL messages.
Required Methods§
Sourcefn bytes_written(&self) -> usize
 
fn bytes_written(&self) -> usize
Returns the number of bytes written to the encoder.
Sourcefn write_zeroes(&mut self, len: usize)
 
fn write_zeroes(&mut self, len: usize)
Writes zeroed bytes to the end of the encoder.
Additional bytes are written to pad the written data to a multiple of CHUNK_SIZE.
Sourcefn write(&mut self, bytes: &[u8])
 
fn write(&mut self, bytes: &[u8])
Copies bytes to the end of the encoder.
Additional bytes are written to pad the written data to a multiple of CHUNK_SIZE.