ReadBuffer

Trait ReadBuffer 

Source
pub trait ReadBuffer {
    // Required method
    fn read_buffer(&self) -> (Option<*const u8>, u32);
}
Expand description

Return a read-only pointer to a buffer and the actual number of bytes stored in the buffer.

This trait is used internally by read_buffer to provide read-only access to a buffer after the operating system call was successful.

Required Methods§

Source

fn read_buffer(&self) -> (Option<*const u8>, u32)

Returns a pointer to the data and the number of elements (FTs) stored.

Implementors§

Source§

impl<const CAPACITY: usize> ReadBuffer for StackBuffer<CAPACITY>