Skip to main content

EncoderBuffer

Type Alias EncoderBuffer 

Source
pub type EncoderBuffer = WrappedDracoObject<EncoderBuffer>;

Aliased Type§

pub struct EncoderBuffer(/* private fields */);

Implementations§

Source§

impl EncoderBuffer

Source

pub fn new() -> Self

Source

pub fn as_mut_ptr(&mut self) -> *mut EncoderBuffer

Source

pub fn clear(&mut self)

Source

pub fn resize(&mut self, size: i64)

Source

pub fn data(&self) -> *const c_char

Returns a pointer to the data in the buffer

Source

pub fn size(&self) -> usize

Source

pub fn as_slice(&self) -> &[u8]

Returns a slice of the buffer

§Safety

The pointer must be valid for the lifetime of the buffer

Trait Implementations§

Source§

impl Default for EncoderBuffer

Source§

fn default() -> Self

Returns the “default value” for a type. Read more