Package org.lwjgl.cuda
Class CUuuid
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.cuda.CUuuid
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class CUuuid extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceCUDA definition of UUIDLayout
struct CUuuid { char bytes[16]; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCUuuid.BufferAn array ofCUuuidstructs.
-
Constructor Summary
Constructors Constructor Description CUuuid(java.nio.ByteBuffer container)Creates aCUuuidinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.nio.ByteBufferbytes()java.lang.StringbytesString()static CUuuidcalloc()Returns a newCUuuidinstance allocated withmemCalloc.static CUuuid.Buffercalloc(int capacity)Returns a newCUuuid.Bufferinstance allocated withmemCalloc.static CUuuid.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newCUuuid.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CUuuidcalloc(org.lwjgl.system.MemoryStack stack)Returns a newCUuuidinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CUuuidcallocStack()Deprecated.static CUuuid.BuffercallocStack(int capacity)Deprecated.static CUuuid.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static CUuuidcallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static CUuuidcreate()Returns a newCUuuidinstance allocated withBufferUtils.static CUuuid.Buffercreate(int capacity)Returns a newCUuuid.Bufferinstance allocated withBufferUtils.static CUuuidcreate(long address)Returns a newCUuuidinstance for the specified memory address.static CUuuid.Buffercreate(long address, int capacity)Create aCUuuid.Bufferinstance at the specified memory.static CUuuidcreateSafe(long address)static CUuuid.BuffercreateSafe(long address, int capacity)static CUuuidmalloc()Returns a newCUuuidinstance allocated withmemAlloc.static CUuuid.Buffermalloc(int capacity)Returns a newCUuuid.Bufferinstance allocated withmemAlloc.static CUuuid.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newCUuuid.Bufferinstance allocated on the specifiedMemoryStack.static CUuuidmalloc(org.lwjgl.system.MemoryStack stack)Returns a newCUuuidinstance allocated on the specifiedMemoryStack.static CUuuidmallocStack()Deprecated.static CUuuid.BuffermallocStack(int capacity)Deprecated.static CUuuid.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static CUuuidmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static java.nio.ByteBuffernbytes(long struct)Unsafe version ofbytes().static java.lang.StringnbytesString(long struct)Unsafe version ofbytesString().intsizeof()
-
-
-
Constructor Detail
-
CUuuid
public CUuuid(java.nio.ByteBuffer container)
Creates aCUuuidinstance 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
-
bytes
public java.nio.ByteBuffer bytes()
- Returns:
- a
ByteBufferview of thebytesfield.
-
bytesString
public java.lang.String bytesString()
- Returns:
- the null-terminated string stored in the
bytesfield.
-
malloc
public static CUuuid malloc()
Returns a newCUuuidinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static CUuuid calloc()
Returns a newCUuuidinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static CUuuid create()
Returns a newCUuuidinstance allocated withBufferUtils.
-
create
public static CUuuid create(long address)
Returns a newCUuuidinstance for the specified memory address.
-
createSafe
@Nullable public static CUuuid createSafe(long address)
-
malloc
public static CUuuid.Buffer malloc(int capacity)
Returns a newCUuuid.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static CUuuid.Buffer calloc(int capacity)
Returns a newCUuuid.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static CUuuid.Buffer create(int capacity)
Returns a newCUuuid.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static CUuuid.Buffer create(long address, int capacity)
Create aCUuuid.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static CUuuid.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static CUuuid mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static CUuuid callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static CUuuid mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static CUuuid callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static CUuuid.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static CUuuid.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static CUuuid.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static CUuuid.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static CUuuid malloc(org.lwjgl.system.MemoryStack stack)
Returns a newCUuuidinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static CUuuid calloc(org.lwjgl.system.MemoryStack stack)
Returns a newCUuuidinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static CUuuid.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newCUuuid.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static CUuuid.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newCUuuid.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nbytes
public static java.nio.ByteBuffer nbytes(long struct)
Unsafe version ofbytes().
-
nbytesString
public static java.lang.String nbytesString(long struct)
Unsafe version ofbytesString().
-
-