Package org.lwjgl.util.spvc
Class SpvcReflectedResource.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<SpvcReflectedResource,SpvcReflectedResource.Buffer>
-
- org.lwjgl.util.spvc.SpvcReflectedResource.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable,java.lang.Iterable<SpvcReflectedResource>,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Enclosing class:
- SpvcReflectedResource
public static class SpvcReflectedResource.Buffer extends org.lwjgl.system.StructBuffer<SpvcReflectedResource,SpvcReflectedResource.Buffer> implements org.lwjgl.system.NativeResource
An array ofSpvcReflectedResourcestructs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intbase_type_id()SpvcReflectedResource.Bufferbase_type_id(int value)Sets the specified value to theSpvcReflectedResource.base_type_id()field.intid()SpvcReflectedResource.Bufferid(int value)Sets the specified value to theSpvcReflectedResource.id()field.java.nio.ByteBuffername()SpvcReflectedResource.Buffername(java.nio.ByteBuffer value)Sets the address of the specified encoded string to theSpvcReflectedResource.name()field.java.lang.StringnameString()inttype_id()SpvcReflectedResource.Buffertype_id(int value)Sets the specified value to theSpvcReflectedResource.type_id()field.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newSpvcReflectedResource.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 bySpvcReflectedResource.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 Detail
-
id
public int id()
- Returns:
- the value of the
SpvcReflectedResource.id()field.
-
base_type_id
public int base_type_id()
- Returns:
- the value of the
SpvcReflectedResource.base_type_id()field.
-
type_id
public int type_id()
- Returns:
- the value of the
SpvcReflectedResource.type_id()field.
-
name
public java.nio.ByteBuffer name()
- Returns:
- a
ByteBufferview of the null-terminated string pointed to by theSpvcReflectedResource.name()field.
-
nameString
public java.lang.String nameString()
- Returns:
- the null-terminated string pointed to by the
SpvcReflectedResource.name()field.
-
id
public SpvcReflectedResource.Buffer id(int value)
Sets the specified value to theSpvcReflectedResource.id()field.
-
base_type_id
public SpvcReflectedResource.Buffer base_type_id(int value)
Sets the specified value to theSpvcReflectedResource.base_type_id()field.
-
type_id
public SpvcReflectedResource.Buffer type_id(int value)
Sets the specified value to theSpvcReflectedResource.type_id()field.
-
name
public SpvcReflectedResource.Buffer name(java.nio.ByteBuffer value)
Sets the address of the specified encoded string to theSpvcReflectedResource.name()field.
-
-