ktxStream.
struct ktxStream {
ktxStream_read read;
ktxStream_skip skip;
ktxStream_write write;
ktxStream_getpos getpos;
ktxStream_setpos setpos;
ktxStream_getsize getsize;
ktxStream_destruct destruct;
enum streamType type;
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;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | ktxStream.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | CLOSEONDESTRUCT
The struct member offsets. |
| public static final int | DATA
The struct member offsets. |
| public static final int | DATA_CUSTOM_PTR
The struct member offsets. |
| public static final int | DATA_CUSTOM_PTR_ADDRESS
The struct member offsets. |
| public static final int | DATA_CUSTOM_PTR_ALLOCATORADDRESS
The struct member offsets. |
| public static final int | DATA_CUSTOM_PTR_SIZE
The struct member offsets. |
| public static final int | DATA_FILE
The struct member offsets. |
| public static final int | DATA_MEM
The struct member offsets. |
| public static final int | DESTRUCT
The struct member offsets. |
| public static final int | GETPOS
The struct member offsets. |
| public static final int | GETSIZE
The struct member offsets. |
| public static final int | READ
The struct member offsets. |
| public static final int | READPOS
The struct member offsets. |
| public static final int | SETPOS
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| public static final int | SKIP
The struct member offsets. |
| public static final int | TYPE
The struct member offsets. |
| public static final int | WRITE
The struct member offsets. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | ktxStream(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public static ktxStream | |
| public static ktxStream. | calloc(int
the buffer capacity capacity)Returns a new |
| public static ktxStream | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static ktxStream. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public boolean | |
| public ktxStream | |
| protected ktxStream | create(long
the struct memory address address, ByteBuffer an optional container buffer, to be referenced strongly by the struct instance. container)Implements abstract org. the constructor, but returns the exact type of the Struct subclass.
|
| public static ktxStream | |
| public static ktxStream | |
| public static ktxStream. | create(int
the buffer capacity capacity)Returns a new |
| public static ktxStream. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static ktxStream | |
| public static ktxStream. | |
| public ByteBuffer | Returns: pointer to the datathe number of elements in the returned buffer capacity)
|
| public ktxStream | data_custom_ptr_address(ByteBuffer value)
Sets the address of the specified |
| public long | |
| public ktxStream | data_custom_ptr_allocatorAddress(long value)
Sets the specified value to the |
| public long | |
| public ktxStream | |
| public long | |
| public ktxStream | |
| public long | |
| public ktxStream | |
| public ktxStream_destruct | |
| public ktxStream | |
| public ktxStream_getpos | |
| public ktxStream | |
| public ktxStream_getsize | |
| public ktxStream | |
| public static ktxStream | |
| public static ktxStream. | malloc(int
the buffer capacity capacity)Returns a new |
| public static ktxStream | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static ktxStream. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static boolean | |
| public static void | |
| public static ByteBuffer | |
| public static void | |
| public static long | |
| public static void | ndata_custom_ptr_allocatorAddress(long struct, long value)
Unsafe version of |
| public static long | |
| public static void | ndata_custom_ptr_size(long struct, long value)
Sets the specified value to the |
| public static long | |
| public static void | |
| public static long | |
| public static void | |
| public static ktxStream_destruct | |
| public static void | |
| public static ktxStream_getpos | |
| public static void | |
| public static ktxStream_getsize | |
| public static void | |
| public static ktxStream_read | |
| public static void | |
| public static long | |
| public static void | |
| public static ktxStream_setpos | |
| public static void | |
| public static ktxStream_skip | |
| public static void | |
| public static int | |
| public static void | |
| public static ktxStream_write | |
| public static void | |
| public ktxStream_read | |
| public ktxStream | |
| public long | |
| public ktxStream | |
| public ktxStream | |
| public ktxStream_setpos | |
| public ktxStream | |
| public int | |
| public ktxStream_skip | |
| public ktxStream | |
| public int | |
| public ktxStream | |
| public static void | |
| public ktxStream_write | |
| public ktxStream |