[−][src]Struct packattack::BitReader
BitReader reads data from a byte slice at the granularity of a single bit.
Methods
impl<R> BitReader<R> where
R: Send + Unpin + AsyncRead,
[src]
R: Send + Unpin + AsyncRead,
pub fn new(reader: R) -> BitReader<R>
[src]
pub fn is_aligned(&self) -> bool
[src]
pub async fn read_u8_slice_aligned(
&'_ mut self,
count: usize
) -> Result<Vec<u8>, BitReaderError>
[src]
&'_ mut self,
count: usize
) -> Result<Vec<u8>, BitReaderError>
pub async fn read_aligned_be<T>(&'_ mut self) -> Result<T, BitReaderError> where
T: ReadFromBigEndian + Unpin + Send,
[src]
T: ReadFromBigEndian + Unpin + Send,
pub fn byte_count(&self) -> usize
[src]
pub async fn read_be_bits(
&'_ mut self,
count: usize
) -> Result<u8, BitReaderError>
[src]
&'_ mut self,
count: usize
) -> Result<u8, BitReaderError>
pub async fn read_le_bits(
&'_ mut self,
count: usize
) -> Result<u8, BitReaderError>
[src]
&'_ mut self,
count: usize
) -> Result<u8, BitReaderError>
Auto Trait Implementations
impl<R> RefUnwindSafe for BitReader<R> where
R: RefUnwindSafe,
R: RefUnwindSafe,
impl<R> Send for BitReader<R>
impl<R> Sync for BitReader<R> where
R: Sync,
R: Sync,
impl<R> Unpin for BitReader<R>
impl<R> UnwindSafe for BitReader<R> where
R: UnwindSafe,
R: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,