Trait codec::byte::CompactByteEncoder[][src]

pub trait CompactByteEncoder {
    fn write_compact_bytes(&mut self, data: &[u8]) -> Result<()>;
}

Required methods

fn write_compact_bytes(&mut self, data: &[u8]) -> Result<()>[src]

Joins bytes with its length into a byte slice. It is more efficient in both space and time compared to encode_bytes. Note that the encoded result is not memory-comparable.

Loading content...

Implementations on Foreign Types

impl CompactByteEncoder for File[src]

Loading content...

Implementors

impl<T: NumberEncoder> CompactByteEncoder for T[src]

Loading content...