Trait tikv_util::codec::bytes::BytesEncoder[][src]

pub trait BytesEncoder: NumberEncoder {
    fn encode_bytes(&mut self, key: &[u8], desc: bool) -> Result<()> { ... }
fn encode_compact_bytes(&mut self, data: &[u8]) -> Result<()> { ... } }

Provided methods

fn encode_bytes(&mut self, key: &[u8], desc: bool) -> Result<()>[src]

fn encode_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 memcomparable.

Loading content...

Implementors

impl<T: Write> BytesEncoder for T[src]

Loading content...