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.Bufferinstance backed by the specified container. -
Method Summary
Modifier and TypeMethodDescriptionbytecompression_flag(byte value) Sets the specified value to thecompression_flagfield.bytecompression_method(byte value) Sets the specified value to thecompression_methodfield.keyword()keyword(ByteBuffer value) Copies the specified encoded string to thekeywordfield.language_tag(ByteBuffer value) Sets the address of the specified encoded string to thelanguage_tagfield.longlength()text()text(ByteBuffer value) Sets the address of the specified encoded string to thetextfield.translated_keyword(ByteBuffer value) Sets the address of the specified encoded string to thetranslated_keywordfield.inttype()type(int value) Sets the specified value to thetypefield.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 newspng_text.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
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
ByteBufferview of thekeywordfield.
-
keywordString
- Returns:
- the null-terminated string stored in the
keywordfield.
-
type
public int type()- Returns:
- the value of the
typefield.
-
length
public long length()- Returns:
- the value of the
lengthfield.
-
text
- Returns:
- a
ByteBufferview of the null-terminated string pointed to by thetextfield.
-
textString
- Returns:
- the null-terminated string pointed to by the
textfield.
-
compression_flag
public byte compression_flag()- Returns:
- the value of the
compression_flagfield.
-
compression_method
public byte compression_method()- Returns:
- the value of the
compression_methodfield.
-
language_tag
- Returns:
- a
ByteBufferview of the null-terminated string pointed to by thelanguage_tagfield.
-
language_tagString
- Returns:
- the null-terminated string pointed to by the
language_tagfield.
-
translated_keyword
- Returns:
- a
ByteBufferview of the null-terminated string pointed to by thetranslated_keywordfield.
-
translated_keywordString
- Returns:
- the null-terminated string pointed to by the
translated_keywordfield.
-
keyword
Copies the specified encoded string to thekeywordfield. -
type
Sets the specified value to thetypefield. -
text
Sets the address of the specified encoded string to thetextfield. -
compression_flag
Sets the specified value to thecompression_flagfield. -
compression_method
Sets the specified value to thecompression_methodfield. -
language_tag
Sets the address of the specified encoded string to thelanguage_tagfield. -
translated_keyword
Sets the address of the specified encoded string to thetranslated_keywordfield.
-