struct WritableBuffer {
octets: BytesMut,
name_pointers: HashMap<DomainName, u16>,
}
Expand description
A buffer which can be written to, for serialisation purposes.
Fields§
§octets: BytesMut
§name_pointers: HashMap<DomainName, u16>
Implementations§
Source§impl WritableBuffer
impl WritableBuffer
fn index(&self) -> usize
fn memoise_name(&mut self, name: &DomainName)
fn name_pointer(&self, name: &DomainName) -> Option<u16>
fn write_u8(&mut self, octet: u8)
fn write_u16(&mut self, value: u16)
fn write_u32(&mut self, value: u32)
fn write_octets(&mut self, octets: &[u8])
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WritableBuffer
impl RefUnwindSafe for WritableBuffer
impl Send for WritableBuffer
impl Sync for WritableBuffer
impl Unpin for WritableBuffer
impl UnwindSafe for WritableBuffer
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