Package org.lwjgl.opencl
Class CLNameVersion
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.opencl.CLNameVersion
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class CLNameVersion extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceLayout
struct cl_name_version { cl_version version; char name[64]; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCLNameVersion.BufferAn array ofCLNameVersionstructs.
-
Constructor Summary
Constructors Constructor Description CLNameVersion(java.nio.ByteBuffer container)Creates aCLNameVersioninstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CLNameVersioncalloc()Returns a newCLNameVersioninstance allocated withmemCalloc.static CLNameVersion.Buffercalloc(int capacity)Returns a newCLNameVersion.Bufferinstance allocated withmemCalloc.static CLNameVersion.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newCLNameVersion.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CLNameVersioncalloc(org.lwjgl.system.MemoryStack stack)Returns a newCLNameVersioninstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CLNameVersioncreate()Returns a newCLNameVersioninstance allocated withBufferUtils.static CLNameVersion.Buffercreate(int capacity)Returns a newCLNameVersion.Bufferinstance allocated withBufferUtils.static CLNameVersioncreate(long address)Returns a newCLNameVersioninstance for the specified memory address.static CLNameVersion.Buffercreate(long address, int capacity)Create aCLNameVersion.Bufferinstance at the specified memory.static CLNameVersioncreateSafe(long address)static CLNameVersion.BuffercreateSafe(long address, int capacity)static CLNameVersionmalloc()Returns a newCLNameVersioninstance allocated withmemAlloc.static CLNameVersion.Buffermalloc(int capacity)Returns a newCLNameVersion.Bufferinstance allocated withmemAlloc.static CLNameVersion.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newCLNameVersion.Bufferinstance allocated on the specifiedMemoryStack.static CLNameVersionmalloc(org.lwjgl.system.MemoryStack stack)Returns a newCLNameVersioninstance allocated on the specifiedMemoryStack.java.nio.ByteBuffername()java.lang.StringnameString()static java.nio.ByteBuffernname(long struct)Unsafe version ofname().static java.lang.StringnnameString(long struct)Unsafe version ofnameString().static intnversion(long struct)Unsafe version ofversion().intsizeof()intversion()
-
-
-
Constructor Detail
-
CLNameVersion
public CLNameVersion(java.nio.ByteBuffer container)
Creates aCLNameVersioninstance 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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
version
public int version()
- Returns:
- the value of the
versionfield.
-
name
public java.nio.ByteBuffer name()
- Returns:
- a
ByteBufferview of thenamefield.
-
nameString
public java.lang.String nameString()
- Returns:
- the null-terminated string stored in the
namefield.
-
malloc
public static CLNameVersion malloc()
Returns a newCLNameVersioninstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static CLNameVersion calloc()
Returns a newCLNameVersioninstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static CLNameVersion create()
Returns a newCLNameVersioninstance allocated withBufferUtils.
-
create
public static CLNameVersion create(long address)
Returns a newCLNameVersioninstance for the specified memory address.
-
createSafe
@Nullable public static CLNameVersion createSafe(long address)
-
malloc
public static CLNameVersion.Buffer malloc(int capacity)
Returns a newCLNameVersion.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static CLNameVersion.Buffer calloc(int capacity)
Returns a newCLNameVersion.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static CLNameVersion.Buffer create(int capacity)
Returns a newCLNameVersion.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static CLNameVersion.Buffer create(long address, int capacity)
Create aCLNameVersion.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static CLNameVersion.Buffer createSafe(long address, int capacity)
-
malloc
public static CLNameVersion malloc(org.lwjgl.system.MemoryStack stack)
Returns a newCLNameVersioninstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static CLNameVersion calloc(org.lwjgl.system.MemoryStack stack)
Returns a newCLNameVersioninstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static CLNameVersion.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newCLNameVersion.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static CLNameVersion.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newCLNameVersion.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nversion
public static int nversion(long struct)
Unsafe version ofversion().
-
nname
public static java.nio.ByteBuffer nname(long struct)
Unsafe version ofname().
-
nnameString
public static java.lang.String nnameString(long struct)
Unsafe version ofnameString().
-
-