Trait gstreamer::meta::ByteArrayInterface

source ·
pub trait ByteArrayInterface: AsMut<[u8]> {
    // Required methods
    fn initial_len(&self) -> usize;
    fn resize(&mut self, size: usize) -> Option<&mut [u8]>;
}

Required Methods§

source

fn initial_len(&self) -> usize

source

fn resize(&mut self, size: usize) -> Option<&mut [u8]>

Implementations on Foreign Types§

source§

impl ByteArrayInterface for &mut [u8]

source§

fn initial_len(&self) -> usize

source§

fn resize(&mut self, size: usize) -> Option<&mut [u8]>

source§

impl ByteArrayInterface for Vec<u8>

source§

fn initial_len(&self) -> usize

source§

fn resize(&mut self, size: usize) -> Option<&mut [u8]>

source§

impl<A: Array<Item = u8>> ByteArrayInterface for SmallVec<A>

source§

fn initial_len(&self) -> usize

source§

fn resize(&mut self, size: usize) -> Option<&mut [u8]>

source§

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

source§

fn initial_len(&self) -> usize

source§

fn resize(&mut self, size: usize) -> Option<&mut [u8]>

Implementors§