[][src]Struct miniaudio_sys::ma_vfs_callbacks

#[repr(C)]pub struct ma_vfs_callbacks {
    pub onOpen: Option<unsafe extern "C" fn(pVFS: *mut ma_vfs, pFilePath: *const c_char, openMode: ma_uint32, pFile: *mut ma_vfs_file) -> ma_result>,
    pub onOpenW: Option<unsafe extern "C" fn(pVFS: *mut ma_vfs, pFilePath: *const wchar_t, openMode: ma_uint32, pFile: *mut ma_vfs_file) -> ma_result>,
    pub onClose: Option<unsafe extern "C" fn(pVFS: *mut ma_vfs, file: ma_vfs_file) -> ma_result>,
    pub onRead: Option<unsafe extern "C" fn(pVFS: *mut ma_vfs, file: ma_vfs_file, pDst: *mut c_void, sizeInBytes: usize, pBytesRead: *mut usize) -> ma_result>,
    pub onWrite: Option<unsafe extern "C" fn(pVFS: *mut ma_vfs, file: ma_vfs_file, pSrc: *const c_void, sizeInBytes: usize, pBytesWritten: *mut usize) -> ma_result>,
    pub onSeek: Option<unsafe extern "C" fn(pVFS: *mut ma_vfs, file: ma_vfs_file, offset: ma_int64, origin: ma_seek_origin) -> ma_result>,
    pub onTell: Option<unsafe extern "C" fn(pVFS: *mut ma_vfs, file: ma_vfs_file, pCursor: *mut ma_int64) -> ma_result>,
    pub onInfo: Option<unsafe extern "C" fn(pVFS: *mut ma_vfs, file: ma_vfs_file, pInfo: *mut ma_file_info) -> ma_result>,
}

Fields

onOpen: Option<unsafe extern "C" fn(pVFS: *mut ma_vfs, pFilePath: *const c_char, openMode: ma_uint32, pFile: *mut ma_vfs_file) -> ma_result>onOpenW: Option<unsafe extern "C" fn(pVFS: *mut ma_vfs, pFilePath: *const wchar_t, openMode: ma_uint32, pFile: *mut ma_vfs_file) -> ma_result>onClose: Option<unsafe extern "C" fn(pVFS: *mut ma_vfs, file: ma_vfs_file) -> ma_result>onRead: Option<unsafe extern "C" fn(pVFS: *mut ma_vfs, file: ma_vfs_file, pDst: *mut c_void, sizeInBytes: usize, pBytesRead: *mut usize) -> ma_result>onWrite: Option<unsafe extern "C" fn(pVFS: *mut ma_vfs, file: ma_vfs_file, pSrc: *const c_void, sizeInBytes: usize, pBytesWritten: *mut usize) -> ma_result>onSeek: Option<unsafe extern "C" fn(pVFS: *mut ma_vfs, file: ma_vfs_file, offset: ma_int64, origin: ma_seek_origin) -> ma_result>onTell: Option<unsafe extern "C" fn(pVFS: *mut ma_vfs, file: ma_vfs_file, pCursor: *mut ma_int64) -> ma_result>onInfo: Option<unsafe extern "C" fn(pVFS: *mut ma_vfs, file: ma_vfs_file, pInfo: *mut ma_file_info) -> ma_result>

Trait Implementations

impl Clone for ma_vfs_callbacks[src]

impl Copy for ma_vfs_callbacks[src]

impl Debug for ma_vfs_callbacks[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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.