[][src]Struct fm_plugin::ffi::binary_data::BinaryData

pub struct BinaryData { /* fields omitted */ }

Implementations

impl BinaryData[src]

pub fn new() -> Self[src]

pub fn to_owned(&self) -> Self[src]

pub fn from_buffer<T: ToText>(name: T, buffer: Vec<i8>) -> Self[src]

pub fn from_ptr(ptr: *const fmx_BinaryData) -> Self[src]

pub fn get_stream_count(&self) -> i32[src]

pub fn get_stream_index(&self, stream_type: BinaryStreamType) -> i32[src]

pub fn total_size(&self) -> u32[src]

pub fn get_size(&self, index: i32) -> u32[src]

pub unsafe fn get_data(&self, index: i32, offset: u32, amount: usize) -> Vec<i8>[src]

Safety

not proven safe yet use at own risk

pub fn get_type(&self, index: i32) -> BinaryStreamType[src]

pub fn add_stream(&self, stream_type: BinaryStreamType, buffer: Vec<i8>)[src]

pub fn remove_stream(&self, stream_type: BinaryStreamType)[src]

pub fn remove_all(&self)[src]

pub fn add_header(&self, stream_type: BinaryStreamType, context: &mut u32)[src]

pub fn append_stream(&self, context: u32, buffer: Vec<i8>)[src]

pub fn get_file_names(&self) -> Text[src]

pub fn add_file_paths(&self, file_paths: Text)[src]

pub fn get_dimensions(&self) -> (i16, i16)[src]

pub fn set_dimensions(&self, height: i16, width: i16)[src]

Trait Implementations

impl Default for BinaryData[src]

impl Drop for BinaryData[src]

impl Eq for BinaryData[src]

impl PartialEq<BinaryData> for BinaryData[src]

impl StructuralEq for BinaryData[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.