#[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
< @internal pointer to function for reading bytes.
skip: ktxStream_skip
< @internal pointer to function for skipping bytes.
write: ktxStream_write
< @internal pointer to function for writing bytes.
getpos: ktxStream_getpos
< @internal pointer to function for getting current position in stream.
setpos: ktxStream_setpos
< @internal pointer to function for setting current position in stream.
getsize: ktxStream_getsize
< @internal pointer to function for querying size.
destruct: ktxStream_destruct
< @internal destruct the stream.
type_: streamType
§data: ktxStream__bindgen_ty_1
< @internal pointer to the stream data.
readpos: ktx_off_t
< @internal used by FileStream for stdin.
closeOnDestruct: ktx_bool_t
< @internal Close FILE* or dispose of memory on destruct.
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