Package org.lwjgl.util.spng
Class spng_text.Buffer
- All Implemented Interfaces:
AutoCloseable
,Iterable<spng_text>
,NativeResource
,Pointer
- Enclosing class:
spng_text
public static class spng_text.Buffer
extends StructBuffer<spng_text,spng_text.Buffer>
implements NativeResource
An array of
spng_text
structs.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
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 newspng_text.Buffer
instance backed by the specified container. -
Method Summary
Modifier and TypeMethodDescriptionbyte
compression_flag
(byte value) Sets the specified value to thecompression_flag
field.byte
compression_method
(byte value) Sets the specified value to thecompression_method
field.keyword()
keyword
(ByteBuffer value) Copies the specified encoded string to thekeyword
field.language_tag
(ByteBuffer value) Sets the address of the specified encoded string to thelanguage_tag
field.long
length()
text()
text
(ByteBuffer value) Sets the address of the specified encoded string to thetext
field.translated_keyword
(ByteBuffer value) Sets the address of the specified encoded string to thetranslated_keyword
field.int
type()
type
(int value) Sets the specified value to thetype
field.Methods inherited from class org.lwjgl.system.StructBuffer
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, stream
Methods 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, toString
Methods inherited from class org.lwjgl.system.Pointer.Default
equals, hashCode
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Constructor Details
-
Buffer
Creates a newspng_text.Buffer
instance 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
spng_text.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
-
keyword
- Returns:
- a
ByteBuffer
view of thekeyword
field.
-
keywordString
- Returns:
- the null-terminated string stored in the
keyword
field.
-
type
public int type()- Returns:
- the value of the
type
field.
-
length
public long length()- Returns:
- the value of the
length
field.
-
text
- Returns:
- a
ByteBuffer
view of the null-terminated string pointed to by thetext
field.
-
textString
- Returns:
- the null-terminated string pointed to by the
text
field.
-
compression_flag
public byte compression_flag()- Returns:
- the value of the
compression_flag
field.
-
compression_method
public byte compression_method()- Returns:
- the value of the
compression_method
field.
-
language_tag
- Returns:
- a
ByteBuffer
view of the null-terminated string pointed to by thelanguage_tag
field.
-
language_tagString
- Returns:
- the null-terminated string pointed to by the
language_tag
field.
-
translated_keyword
- Returns:
- a
ByteBuffer
view of the null-terminated string pointed to by thetranslated_keyword
field.
-
translated_keywordString
- Returns:
- the null-terminated string pointed to by the
translated_keyword
field.
-
keyword
Copies the specified encoded string to thekeyword
field. -
type
Sets the specified value to thetype
field. -
text
Sets the address of the specified encoded string to thetext
field. -
compression_flag
Sets the specified value to thecompression_flag
field. -
compression_method
Sets the specified value to thecompression_method
field. -
language_tag
Sets the address of the specified encoded string to thelanguage_tag
field. -
translated_keyword
Sets the address of the specified encoded string to thetranslated_keyword
field.
-