struct Buffer {
bytes: Box<[u8]>,
read_mark: usize,
write_mark: usize,
}
Fields§
§bytes: Box<[u8]>
§read_mark: usize
§write_mark: usize
Implementations§
source§impl Buffer
impl Buffer
fn new() -> Self
sourcefn fill_cscsc(&mut self) -> u8
fn fill_cscsc(&mut self) -> u8
When encoding a sequence cScSc
where c
is any character and S
is any string
this results in two codes AB
, A
encoding cS
and B
encoding cSc
. Supposing
the buffer is already filled with the reconstruction of A
, we can easily fill it
with the reconstruction of B
.
fn fill_reconstruct(&mut self, table: &Table, code: u16) -> u8
fn buffer(&self) -> &[u8] ⓘ
fn consume(&mut self, amt: usize)
Auto Trait Implementations§
impl Freeze for Buffer
impl RefUnwindSafe for Buffer
impl Send for Buffer
impl Sync for Buffer
impl Unpin for Buffer
impl UnwindSafe for Buffer
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more