#[repr(C)]pub struct ktxStream {
pub read: ktxStream_read,
pub skip: ktxStream_skip,
pub write: ktxStream_write,
pub getpos: ktxStream_getpos,
pub setpos: ktxStream_setpos,
pub getsize: ktxStream_getsize,
pub destruct: ktxStream_destruct,
pub type_: streamType,
pub data: ktxStream__bindgen_ty_1,
pub readpos: ktx_off_t,
pub closeOnDestruct: ktx_bool_t,
}Expand description
@~English
@brief Interface of ktxStream.
@author Maksim Kolesin @author Georg Kolling, Imagination Technology @author Mark Callow, HI Corporation
Fields§
§read: ktxStream_read< pointer to function for reading bytes.
skip: ktxStream_skip< pointer to function for skipping bytes.
write: ktxStream_write< pointer to function for writing bytes.
getpos: ktxStream_getpos< pointer to function for getting current position in stream.
setpos: ktxStream_setpos< pointer to function for setting current position in stream.
getsize: ktxStream_getsize< pointer to function for querying size.
destruct: ktxStream_destruct< destruct the stream.
type_: streamType§data: ktxStream__bindgen_ty_1< pointer to the stream data.
readpos: ktx_off_t< used by FileStream for stdin.
closeOnDestruct: ktx_bool_t< Close FILE* or dispose of memory on destruct.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ktxStream
impl RefUnwindSafe for ktxStream
impl !Send for ktxStream
impl !Sync for ktxStream
impl Unpin for ktxStream
impl UnwindSafe for ktxStream
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more