Package org.lwjgl.util.par
Class ParSLSpineList
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct parsl_spine_list {
uint32_t num_vertices;
uint16_t num_spines;
parsl_position * vertices;
uint16_t * spine_lengths;
bool closed;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionParSLSpineList(ByteBuffer container) Creates aParSLSpineListinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic ParSLSpineListcalloc()Returns a newParSLSpineListinstance allocated withmemCalloc.static ParSLSpineList.Buffercalloc(int capacity) Returns a newParSLSpineList.Bufferinstance allocated withmemCalloc.static ParSLSpineList.Buffercalloc(int capacity, MemoryStack stack) Returns a newParSLSpineList.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static ParSLSpineListcalloc(MemoryStack stack) Returns a newParSLSpineListinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.booleanclosed()closed(boolean value) Sets the specified value to theclosedfield.static ParSLSpineListcreate()Returns a newParSLSpineListinstance allocated withBufferUtils.static ParSLSpineList.Buffercreate(int capacity) Returns a newParSLSpineList.Bufferinstance allocated withBufferUtils.static ParSLSpineListcreate(long address) Returns a newParSLSpineListinstance for the specified memory address.static ParSLSpineList.Buffercreate(long address, int capacity) Create aParSLSpineList.Bufferinstance at the specified memory.static @Nullable ParSLSpineListcreateSafe(long address) static @Nullable ParSLSpineList.BuffercreateSafe(long address, int capacity) static ParSLSpineListmalloc()Returns a newParSLSpineListinstance allocated withmemAlloc.static ParSLSpineList.Buffermalloc(int capacity) Returns a newParSLSpineList.Bufferinstance allocated withmemAlloc.static ParSLSpineList.Buffermalloc(int capacity, MemoryStack stack) Returns a newParSLSpineList.Bufferinstance allocated on the specifiedMemoryStack.static ParSLSpineListmalloc(MemoryStack stack) Returns a newParSLSpineListinstance allocated on the specifiedMemoryStack.static booleannclosed(long struct) Unsafe version ofclosed().static voidnclosed(long struct, boolean value) Unsafe version ofclosed.static shortnnum_spines(long struct) Unsafe version ofnum_spines().static voidnnum_spines(long struct, short value) Sets the specified value to thenum_spinesfield of the specifiedstruct.static intnnum_vertices(long struct) Unsafe version ofnum_vertices().static voidnnum_vertices(long struct, int value) Sets the specified value to thenum_verticesfield of the specifiedstruct.static ShortBuffernspine_lengths(long struct) Unsafe version ofspine_lengths.static voidnspine_lengths(long struct, ShortBuffer value) Unsafe version ofspine_lengths.shortintstatic ParSLPosition.Buffernvertices(long struct) Unsafe version ofvertices().static voidnvertices(long struct, ParSLPosition.Buffer value) Unsafe version ofvertices.set(ParSLPosition.Buffer vertices, ShortBuffer spine_lengths, boolean closed) Initializes this struct with the specified values.set(ParSLSpineList src) Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).spine_lengths(ShortBuffer value) Sets the address of the specifiedShortBufferto thespine_lengthsfield.static voidvalidate(long struct) Validates pointer members that should not beNULL.vertices()vertices(ParSLPosition.Buffer value) Sets the address of the specifiedParSLPosition.Bufferto theverticesfield.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
NUM_VERTICES
public static final int NUM_VERTICESThe struct member offsets. -
NUM_SPINES
public static final int NUM_SPINESThe struct member offsets. -
VERTICES
public static final int VERTICESThe struct member offsets. -
SPINE_LENGTHS
public static final int SPINE_LENGTHSThe struct member offsets. -
CLOSED
public static final int CLOSEDThe struct member offsets.
-
-
Constructor Details
-
ParSLSpineList
Creates aParSLSpineListinstance at the current position of the specifiedByteBuffercontainer. Changes to the buffer's content will be visible to the struct instance and vice versa.The created instance holds a strong reference to the container object.
-
-
Method Details
-
sizeof
public int sizeof()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<ParSLSpineList>
-
num_vertices
public int num_vertices()- Returns:
- the value of the
num_verticesfield.
-
num_spines
public short num_spines()- Returns:
- the value of the
num_spinesfield.
-
vertices
- Returns:
- a
ParSLPosition.Bufferview of the struct array pointed to by theverticesfield.
-
spine_lengths
- Returns:
- a
ShortBufferview of the data pointed to by thespine_lengthsfield.
-
closed
public boolean closed()- Returns:
- the value of the
closedfield.
-
vertices
Sets the address of the specifiedParSLPosition.Bufferto theverticesfield. -
spine_lengths
Sets the address of the specifiedShortBufferto thespine_lengthsfield. -
closed
Sets the specified value to theclosedfield. -
set
Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newParSLSpineListinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newParSLSpineListinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newParSLSpineListinstance allocated withBufferUtils. -
create
Returns a newParSLSpineListinstance for the specified memory address. -
createSafe
-
malloc
Returns a newParSLSpineList.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newParSLSpineList.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newParSLSpineList.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aParSLSpineList.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newParSLSpineListinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newParSLSpineListinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newParSLSpineList.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newParSLSpineList.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nnum_vertices
public static int nnum_vertices(long struct) Unsafe version ofnum_vertices(). -
nnum_spines
public static short nnum_spines(long struct) Unsafe version ofnum_spines(). -
nvertices
Unsafe version ofvertices(). -
nspine_lengths
Unsafe version ofspine_lengths. -
nclosed
public static boolean nclosed(long struct) Unsafe version ofclosed(). -
nnum_vertices
public static void nnum_vertices(long struct, int value) Sets the specified value to thenum_verticesfield of the specifiedstruct. -
nnum_spines
public static void nnum_spines(long struct, short value) Sets the specified value to thenum_spinesfield of the specifiedstruct. -
nvertices
Unsafe version ofvertices. -
nspine_lengths
Unsafe version ofspine_lengths. -
nclosed
public static void nclosed(long struct, boolean value) Unsafe version ofclosed. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-