pub struct ByteBuffer { /* private fields */ }Implementations§
Source§impl ByteBuffer
impl ByteBuffer
pub fn new() -> Self
pub fn put_byte(&mut self, value: u8) -> &mut Self
pub fn put_bytes(&mut self, other: &ByteBuffer) -> &mut Self
pub fn put_u16(&mut self, value: u16) -> &mut Self
pub fn put_u32(&mut self, value: u32) -> &mut Self
pub fn put_string(&mut self, value: &str) -> &mut Self
pub fn put_bytes_array(&mut self, bytes: &[u8]) -> &mut Self
pub fn get(&mut self) -> u8
pub fn get_at(&self, index: usize) -> u8
pub fn size(&self) -> usize
pub fn clear(&mut self)
pub fn print_hex(&self)
pub fn as_slice(&self) -> &[u8] ⓘ
pub fn to_vec(&self) -> Vec<u8> ⓘ
Trait Implementations§
Source§impl Clone for ByteBuffer
impl Clone for ByteBuffer
Source§fn clone(&self) -> ByteBuffer
fn clone(&self) -> ByteBuffer
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ByteBuffer
impl Debug for ByteBuffer
Auto Trait Implementations§
impl Freeze for ByteBuffer
impl RefUnwindSafe for ByteBuffer
impl Send for ByteBuffer
impl Sync for ByteBuffer
impl Unpin for ByteBuffer
impl UnsafeUnpin for ByteBuffer
impl UnwindSafe for ByteBuffer
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