Package org.lwjgl.util.ktx
Class ktxStream.Buffer
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.CustomBuffer<ktxStream.Buffer>
org.lwjgl.system.StructBuffer<ktxStream,ktxStream.Buffer>
org.lwjgl.util.ktx.ktxStream.Buffer
- All Implemented Interfaces:
AutoCloseable,Iterable<ktxStream>,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Enclosing class:
ktxStream
public static class ktxStream.Buffer
extends org.lwjgl.system.StructBuffer<ktxStream,ktxStream.Buffer>
implements org.lwjgl.system.NativeResource
An array of
ktxStream structs.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.Pointer.Default -
Field Summary
Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionBuffer(long address, int cap) Buffer(ByteBuffer container) Creates a newktxStream.Bufferinstance backed by the specified container. -
Method Summary
Modifier and TypeMethodDescriptionbooleancloseOnDestruct(boolean value) Sets the specified value to thektxStream.closeOnDestruct()field.data_custom_ptr_address(int capacity) Sets the address of the specifiedByteBufferto thektxStream.data_custom_ptr_address(int)field.longdata_custom_ptr_allocatorAddress(long value) Sets the specified value to thektxStream.data_custom_ptr_allocatorAddress()field.longdata_custom_ptr_size(long value) Sets the specified value to thektxStream.data_custom_ptr_size()field.longdata_file(long value) Sets the specified value to thektxStream.data_file()field.longdata_mem()data_mem(long value) Sets the specified value to thektxStream.data_mem()field.destruct()destruct(ktxStream_destructI value) Sets the specified value to thektxStream.destruct()field.getpos()getpos(ktxStream_getposI value) Sets the specified value to thektxStream.getpos()field.getsize()getsize(ktxStream_getsizeI value) Sets the specified value to thektxStream.getsize()field.read()read(ktxStream_readI value) Sets the specified value to thektxStream.read()field.longreadpos()readpos(long value) Sets the specified value to thektxStream.readpos()field.setpos()setpos(ktxStream_setposI value) Sets the specified value to thektxStream.setpos()field.skip()skip(ktxStream_skipI value) Sets the specified value to thektxStream.skip()field.inttype()type(int value) Sets the specified value to thetypefield.write()write(ktxStream_writeI value) Sets the specified value to thektxStream.write()field.Methods inherited from class org.lwjgl.system.StructBuffer
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, streamMethods inherited from class org.lwjgl.system.CustomBuffer
address, address, address0, capacity, clear, compact, duplicate, flip, free, hasRemaining, limit, limit, mark, position, position, put, remaining, reset, rewind, slice, slice, toStringMethods inherited from class org.lwjgl.system.Pointer.Default
equals, hashCodeMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Constructor Details
-
Buffer
Creates a newktxStream.Bufferinstance backed by the specified container.Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by
ktxStream.SIZEOF, and its mark will be undefined.The created buffer instance holds a strong reference to the container object.
-
Buffer
public Buffer(long address, int cap)
-
-
Method Details
-
read
- Returns:
- the value of the
ktxStream.read()field.
-
skip
- Returns:
- the value of the
ktxStream.skip()field.
-
write
- Returns:
- the value of the
ktxStream.write()field.
-
getpos
- Returns:
- the value of the
ktxStream.getpos()field.
-
setpos
- Returns:
- the value of the
ktxStream.setpos()field.
-
getsize
- Returns:
- the value of the
ktxStream.getsize()field.
-
destruct
- Returns:
- the value of the
ktxStream.destruct()field.
-
type
public int type()- Returns:
- the value of the
typefield.
-
data_file
public long data_file()- Returns:
- the value of the
ktxStream.data_file()field.
-
data_mem
public long data_mem()- Returns:
- the value of the
ktxStream.data_mem()field.
-
data_custom_ptr_address
- Parameters:
capacity- the number of elements in the returned buffer- Returns:
- a
ByteBufferview of the data pointed to by thektxStream.data_custom_ptr_address(int)field.
-
data_custom_ptr_allocatorAddress
public long data_custom_ptr_allocatorAddress()- Returns:
- the value of the
ktxStream.data_custom_ptr_allocatorAddress()field.
-
data_custom_ptr_size
public long data_custom_ptr_size()- Returns:
- the value of the
ktxStream.data_custom_ptr_size()field.
-
readpos
public long readpos()- Returns:
- the value of the
ktxStream.readpos()field.
-
closeOnDestruct
public boolean closeOnDestruct()- Returns:
- the value of the
ktxStream.closeOnDestruct()field.
-
read
Sets the specified value to thektxStream.read()field. -
skip
Sets the specified value to thektxStream.skip()field. -
write
Sets the specified value to thektxStream.write()field. -
getpos
Sets the specified value to thektxStream.getpos()field. -
setpos
Sets the specified value to thektxStream.setpos()field. -
getsize
Sets the specified value to thektxStream.getsize()field. -
destruct
Sets the specified value to thektxStream.destruct()field. -
type
Sets the specified value to thetypefield. -
data_file
Sets the specified value to thektxStream.data_file()field. -
data_mem
Sets the specified value to thektxStream.data_mem()field. -
data_custom_ptr_address
Sets the address of the specifiedByteBufferto thektxStream.data_custom_ptr_address(int)field. -
data_custom_ptr_allocatorAddress
Sets the specified value to thektxStream.data_custom_ptr_allocatorAddress()field. -
data_custom_ptr_size
Sets the specified value to thektxStream.data_custom_ptr_size()field. -
readpos
Sets the specified value to thektxStream.readpos()field. -
closeOnDestruct
Sets the specified value to thektxStream.closeOnDestruct()field.
-