Package org.lwjgl.opencl
Class CLNameVersionKHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.opencl.CLNameVersionKHR
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class CLNameVersionKHR extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceDescribes a combination of a name alongside a version number.Layout
struct cl_name_version_khr { cl_version_khr version; char name[64]; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCLNameVersionKHR.BufferAn array ofCLNameVersionKHRstructs.
-
Constructor Summary
Constructors Constructor Description CLNameVersionKHR(java.nio.ByteBuffer container)Creates aCLNameVersionKHRinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CLNameVersionKHRcalloc()Returns a newCLNameVersionKHRinstance allocated withmemCalloc.static CLNameVersionKHR.Buffercalloc(int capacity)Returns a newCLNameVersionKHR.Bufferinstance allocated withmemCalloc.static CLNameVersionKHR.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newCLNameVersionKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CLNameVersionKHRcalloc(org.lwjgl.system.MemoryStack stack)Returns a newCLNameVersionKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CLNameVersionKHRcreate()Returns a newCLNameVersionKHRinstance allocated withBufferUtils.static CLNameVersionKHR.Buffercreate(int capacity)Returns a newCLNameVersionKHR.Bufferinstance allocated withBufferUtils.static CLNameVersionKHRcreate(long address)Returns a newCLNameVersionKHRinstance for the specified memory address.static CLNameVersionKHR.Buffercreate(long address, int capacity)Create aCLNameVersionKHR.Bufferinstance at the specified memory.static CLNameVersionKHRcreateSafe(long address)static CLNameVersionKHR.BuffercreateSafe(long address, int capacity)static CLNameVersionKHRmalloc()Returns a newCLNameVersionKHRinstance allocated withmemAlloc.static CLNameVersionKHR.Buffermalloc(int capacity)Returns a newCLNameVersionKHR.Bufferinstance allocated withmemAlloc.static CLNameVersionKHR.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newCLNameVersionKHR.Bufferinstance allocated on the specifiedMemoryStack.static CLNameVersionKHRmalloc(org.lwjgl.system.MemoryStack stack)Returns a newCLNameVersionKHRinstance 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
-
CLNameVersionKHR
public CLNameVersionKHR(java.nio.ByteBuffer container)
Creates aCLNameVersionKHRinstance 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 CLNameVersionKHR malloc()
Returns a newCLNameVersionKHRinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static CLNameVersionKHR calloc()
Returns a newCLNameVersionKHRinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static CLNameVersionKHR create()
Returns a newCLNameVersionKHRinstance allocated withBufferUtils.
-
create
public static CLNameVersionKHR create(long address)
Returns a newCLNameVersionKHRinstance for the specified memory address.
-
createSafe
@Nullable public static CLNameVersionKHR createSafe(long address)
-
malloc
public static CLNameVersionKHR.Buffer malloc(int capacity)
Returns a newCLNameVersionKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static CLNameVersionKHR.Buffer calloc(int capacity)
Returns a newCLNameVersionKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static CLNameVersionKHR.Buffer create(int capacity)
Returns a newCLNameVersionKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static CLNameVersionKHR.Buffer create(long address, int capacity)
Create aCLNameVersionKHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static CLNameVersionKHR.Buffer createSafe(long address, int capacity)
-
malloc
public static CLNameVersionKHR malloc(org.lwjgl.system.MemoryStack stack)
Returns a newCLNameVersionKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static CLNameVersionKHR calloc(org.lwjgl.system.MemoryStack stack)
Returns a newCLNameVersionKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static CLNameVersionKHR.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newCLNameVersionKHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static CLNameVersionKHR.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newCLNameVersionKHR.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().
-
-