Trait InputBlock

Source
pub trait InputBlock<'i, const N: usize>: Deref<Target = [u8]> {
    // Required method
    fn halves(&self) -> (&[u8], &[u8]);

    // Provided method
    fn quarters(&self) -> (&[u8], &[u8], &[u8], &[u8]) { ... }
}
Expand description

A block of bytes of size N returned from InputBlockIterator.

Required Methods§

Source

fn halves(&self) -> (&[u8], &[u8])

Split the block in half, giving two slices of size N/2.

Provided Methods§

Source

fn quarters(&self) -> (&[u8], &[u8], &[u8], &[u8])

Split the block in four, giving four slices of size N/4.

Implementations on Foreign Types§

Source§

impl<'i, const N: usize> InputBlock<'i, N> for &'i [u8]

Source§

fn halves(&self) -> (&[u8], &[u8])

Implementors§

Source§

impl<const N: usize> InputBlock<'_, N> for BufferedInputBlock<N>