pub struct BitstreamWriter { /* private fields */ }Expand description
Bitstream writer for byte-aligned output.
Implementations§
Source§impl BitstreamWriter
impl BitstreamWriter
Sourcepub fn write_bits(&mut self, value: u32, num_bits: u8)
pub fn write_bits(&mut self, value: u32, num_bits: u8)
Write multiple bits from a value.
Sourcepub fn write_byte(&mut self, byte: u8)
pub fn write_byte(&mut self, byte: u8)
Write a byte-aligned value.
Sourcepub fn write_bytes(&mut self, bytes: &[u8])
pub fn write_bytes(&mut self, bytes: &[u8])
Write a slice of bytes.
Trait Implementations§
Source§impl Clone for BitstreamWriter
impl Clone for BitstreamWriter
Source§fn clone(&self) -> BitstreamWriter
fn clone(&self) -> BitstreamWriter
Returns a duplicate of the value. Read more
1.0.0 · 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 BitstreamWriter
impl Debug for BitstreamWriter
Source§impl Default for BitstreamWriter
impl Default for BitstreamWriter
Source§fn default() -> BitstreamWriter
fn default() -> BitstreamWriter
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BitstreamWriter
impl RefUnwindSafe for BitstreamWriter
impl Send for BitstreamWriter
impl Sync for BitstreamWriter
impl Unpin for BitstreamWriter
impl UnsafeUnpin for BitstreamWriter
impl UnwindSafe for BitstreamWriter
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more