Trait fricgan::VLQ
[−]
[src]
pub trait VLQ { fn vlq_write(&self, sink: &mut [u8]) -> usize; fn vlq_read(&mut self, source: &[u8]) -> usize; }
VLQ is Variable Length Quantity, which, in this context, provides vlq read/write values to the underlying value.
Required Methods
fn vlq_write(&self, sink: &mut [u8]) -> usize
Writes bytes to a byte buffer.
This shall write to offset zero (0
).
The return value shall always be the number of bytes written.
fn vlq_read(&mut self, source: &[u8]) -> usize
Reads bytes to a byte buffer.
This shall read from offset zero (0
).
The return value shall always be the number of bytes read.