pub struct ByteWriter { /* private fields */ }Expand description
Little- or big-endian bytes, appended.
Implementations§
Source§impl ByteWriter
impl ByteWriter
Sourcepub fn set_big_endian(&mut self, big: bool) -> &mut Self
pub fn set_big_endian(&mut self, big: bool) -> &mut Self
Switches byte order from here on.
Sourcepub fn into_inner(self) -> Vec<u8> ⓘ
pub fn into_inner(self) -> Vec<u8> ⓘ
The bytes.
Source§impl ByteWriter
impl ByteWriter
Sourcepub fn u32(&mut self, v: u32) -> &mut Self
pub fn u32(&mut self, v: u32) -> &mut Self
A u32 in the writer’s byte order: a field (module docs).
Sourcepub fn i32(&mut self, v: i32) -> &mut Self
pub fn i32(&mut self, v: i32) -> &mut Self
A i32 in the writer’s byte order: a field (module docs).
Source§impl ByteWriter
impl ByteWriter
Trait Implementations§
Source§impl Clone for ByteWriter
impl Clone for ByteWriter
Source§impl Debug for ByteWriter
impl Debug for ByteWriter
Source§impl Default for ByteWriter
impl Default for ByteWriter
impl Eq for ByteWriter
Source§impl PartialEq for ByteWriter
impl PartialEq for ByteWriter
impl StructuralPartialEq for ByteWriter
Auto Trait Implementations§
impl Forget for ByteWriter
impl Freeze for ByteWriter
impl Move for ByteWriter
impl RefUnwindSafe for ByteWriter
impl Send for ByteWriter
impl Sync for ByteWriter
impl Unpin for ByteWriter
impl UnsafeUnpin for ByteWriter
impl UnwindSafe for ByteWriter
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