[][src]Trait v4l::buffer::Buffer

pub trait Buffer {
    fn data(&self) -> &[u8];
fn len(&self) -> usize;
fn is_empty(&self) -> bool;
fn meta(&self) -> &Metadata; }

Represents a host (allocated) or device (mapped) buffer

Required methods

fn data(&self) -> &[u8]

Slice of read-only data

fn len(&self) -> usize

Size of the backing memory region

fn is_empty(&self) -> bool

Whether the backing buffer is empty

fn meta(&self) -> &Metadata

Metadata such as allocation flags, timestamp and more

Loading content...

Implementors

impl Buffer for HostBuffer[src]

impl<'a> Buffer for MappedBuffer<'a>[src]

impl<'a> Buffer for UserBuffer<'a>[src]

Loading content...