public static class ShadercIncludeResult.Buffer extends org.lwjgl.system.StructBuffer<ShadercIncludeResult,ShadercIncludeResult.Buffer> implements org.lwjgl.system.NativeResource
ShadercIncludeResult structs.| Constructor and Description |
|---|
Buffer(java.nio.ByteBuffer container)
Creates a new
ShadercIncludeResult.Buffer instance backed by the specified container. |
Buffer(long address,
int cap) |
| Modifier and Type | Method and Description |
|---|---|
long |
content_length()
Returns the value of the
content_length field. |
java.nio.ByteBuffer |
content()
Returns a
ByteBuffer view of the null-terminated string pointed to by the content field. |
ShadercIncludeResult.Buffer |
content(java.nio.ByteBuffer value)
Sets the address of the specified encoded string to the
content field. |
java.lang.String |
contentString()
Decodes the null-terminated string pointed to by the
content field. |
long |
source_name_length()
Returns the value of the
source_name_length field. |
java.nio.ByteBuffer |
source_name()
Returns a
ByteBuffer view of the null-terminated string pointed to by the source_name field. |
ShadercIncludeResult.Buffer |
source_name(java.nio.ByteBuffer value)
Sets the address of the specified encoded string to the
source_name field. |
java.lang.String |
source_nameString()
Decodes the null-terminated string pointed to by the
source_name field. |
long |
user_data()
Returns the value of the
user_data field. |
ShadercIncludeResult.Buffer |
user_data(long value)
Sets the specified value to the
user_data field. |
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, streampublic Buffer(java.nio.ByteBuffer container)
ShadercIncludeResult.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 ShadercIncludeResult.SIZEOF, and its mark will be undefined.
The created buffer instance holds a strong reference to the container object.
public Buffer(long address,
int cap)
public java.nio.ByteBuffer source_name()
ByteBuffer view of the null-terminated string pointed to by the source_name field.public java.lang.String source_nameString()
source_name field.public long source_name_length()
source_name_length field.public java.nio.ByteBuffer content()
ByteBuffer view of the null-terminated string pointed to by the content field.public java.lang.String contentString()
content field.public long content_length()
content_length field.public long user_data()
user_data field.public ShadercIncludeResult.Buffer source_name(java.nio.ByteBuffer value)
source_name field.public ShadercIncludeResult.Buffer content(java.nio.ByteBuffer value)
content field.public ShadercIncludeResult.Buffer user_data(long value)
user_data field.Copyright LWJGL. All Rights Reserved. License terms.