ReadArray

Type Alias ReadArray 

Source
pub type ReadArray<const N: usize> = ReadBuf<[MaybeUninit<u8>; N]>;
Expand description

A ReadBuf that owns it’s buffer using a [MaybeUninit<u8>; N]

Aliased Type§

pub struct ReadArray<const N: usize> { /* private fields */ }

Implementations§

Source§

impl<const N: usize> ReadArray<N>

Source

pub fn new_uninit_array() -> Self

Create a new uninitialised ReadBuf backed by an array Will begin with 0 filled bytes.

Trait Implementations§

Source§

impl<const N: usize> From<[u8; N]> for ReadArray<N>

Create a ReadBuf from a fully initialised array of bytes. Will begin with 0 filled bytes.

Source§

fn from(buf: [u8; N]) -> Self

Converts to this type from the input type.