Struct static_buffer::FixedBuffer [] [src]

pub struct FixedBuffer<N: ArrayLength<u8>> { /* fields omitted */ }

Methods

impl<N: ArrayLength<u8>> FixedBuffer<N>
[src]

Create a new buffer

Trait Implementations

impl<N: ArrayLength<u8>> FixedBuf for FixedBuffer<N>
[src]

Input a vector of bytes. If the buffer becomes full, process it with the provided function and then clear the buffer. Read more

Reset the buffer.

Zero the buffer up until the specified index. The buffer position currently must not be greater than that index. Read more

Get a slice of the buffer of the specified size. There must be at least that many bytes remaining in the buffer. Read more

Get the current buffer. The buffer must already be full. This clears the buffer as well.

Get the current buffer.

Get the current position of the buffer.

Get the number of bytes remaining in the buffer until it is full.

Get the size of the buffer

impl<N: ArrayLength<u8>> Clone for FixedBuffer<N>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<N: ArrayLength<u8>> Debug for FixedBuffer<N>
[src]

Formats the value using the given formatter.