pub struct ByteCodecBE;Trait Implementations§
Source§impl ByteCodec for ByteCodecBE
impl ByteCodec for ByteCodecBE
Source§unsafe fn read_aligned<T: ReadBytes>(buffer: &[u8]) -> T
unsafe fn read_aligned<T: ReadBytes>(buffer: &[u8]) -> T
Reads a value of type T from the buffer argument assuming the buffer size is greater or
equal to the size of T. Read more
Source§fn read_unaligned<T: ReadBytes>(buffer: &[u8]) -> T
fn read_unaligned<T: ReadBytes>(buffer: &[u8]) -> T
Reads a value of type T from the buffer argument assuming the buffer size is always less
than the size of T. This is not unsafe as will always cause a copy into an 8 bytes buffer
(the maximum size for T is 8). Read more
Source§unsafe fn write_aligned<T: WriteBytes>(buffer: &mut [u8], value: T)
unsafe fn write_aligned<T: WriteBytes>(buffer: &mut [u8], value: T)
Writes a value of type T in the buffer argument assuming the buffer size is greater or
equal to the size of T. Read more
fn write_unaligned<T: WriteBytes>(buffer: &mut [u8], value: T)
fn read<T: ReadBytes>(buffer: &[u8]) -> T
fn write<T: WriteBytes>(buffer: &mut [u8], value: T)
Auto Trait Implementations§
impl Freeze for ByteCodecBE
impl RefUnwindSafe for ByteCodecBE
impl Send for ByteCodecBE
impl Sync for ByteCodecBE
impl Unpin for ByteCodecBE
impl UnwindSafe for ByteCodecBE
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