pub trait WritableWithSize {
    fn write_to_with_count(
        &self,
        writer: &mut impl Writer,
        num_bytes: usize
    ) -> Result<(), WriteError>
   where
        Self: Sized
; }
Expand description

Writes a type as a specific number of bytes.

Required Methods

Writes self as the given number of bytes to a Writer.

Implementors