![]()  | 
  
    libktx Reference 4.4.2
    
   Libraries and tools to create and read KTX image texture files. 
   | 
 
Interface of ktxStream. More...
#include <ktx.h>

Data Fields | |
| ktxStream_read | read | 
| ktxStream_skip | skip | 
| ktxStream_write | write | 
| ktxStream_getpos | getpos | 
| ktxStream_setpos | setpos | 
| ktxStream_getsize | getsize | 
| ktxStream_destruct | destruct | 
| union { | |
| FILE * file | |
| ktxMem * mem | |
| struct { | |
| void * address | |
| void * allocatorAddress | |
| ktx_size_t size | |
| } custom_ptr | |
| } | data | 
| ktx_off_t | readpos | 
| ktx_bool_t | closeOnDestruct | 
Interface of ktxStream.
| void* address | 
pointer to the data.
| void* allocatorAddress | 
pointer to a memory allocator.
| ktx_bool_t closeOnDestruct | 
Close FILE* or dispose of memory on destruct.
| struct { ... } custom_ptr | 
pointer to a struct for custom streams.
| union { ... } data | 
pointer to the stream data.
| ktxStream_destruct destruct | 
destruct the stream.
| FILE* file | 
a stdio FILE pointer for a ktxFileStream.
| ktxStream_getpos getpos | 
pointer to function for getting current position in stream.
| ktxStream_getsize getsize | 
pointer to function for querying size.
| ktxMem* mem | 
a pointer to a ktxMem struct for a ktxMemStream.
| ktxStream_read read | 
pointer to function for reading bytes.
| ktx_off_t readpos | 
used by FileStream for stdin.
| ktxStream_setpos setpos | 
pointer to function for setting current position in stream.
| ktx_size_t size | 
size of the data.
| ktxStream_skip skip | 
pointer to function for skipping bytes.
| ktxStream_write write | 
pointer to function for writing bytes.