Trait bytes_kman::TBytes
source · pub trait TBytes {
fn size(&self) -> usize;
fn to_bytes(&self) -> Vec<u8>;
fn from_bytes(buffer: &mut Vec<u8>) -> Option<Self>
where
Self: Sized;
fn from_bytes_ref(buffer: &[u8]) -> Option<Self>
where
Self: Sized,
{ ... }
}