Package org.lwjgl.cuda
Class CUlaunchMemSyncDomainMap
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<CUlaunchMemSyncDomainMap>
org.lwjgl.cuda.CUlaunchMemSyncDomainMap
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class CUlaunchMemSyncDomainMap
extends org.lwjgl.system.Struct<CUlaunchMemSyncDomainMap>
implements org.lwjgl.system.NativeResource
Layout
struct CUlaunchMemSyncDomainMap {
unsigned char default_;
unsigned char remote;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
org.lwjgl.system.Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionCUlaunchMemSyncDomainMap(ByteBuffer container) Creates aCUlaunchMemSyncDomainMapinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic CUlaunchMemSyncDomainMapcalloc()Returns a newCUlaunchMemSyncDomainMapinstance allocated withmemCalloc.calloc(int capacity) Returns a newCUlaunchMemSyncDomainMap.Bufferinstance allocated withmemCalloc.calloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newCUlaunchMemSyncDomainMap.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CUlaunchMemSyncDomainMapcalloc(org.lwjgl.system.MemoryStack stack) Returns a newCUlaunchMemSyncDomainMapinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CUlaunchMemSyncDomainMapcreate()Returns a newCUlaunchMemSyncDomainMapinstance allocated withBufferUtils.create(int capacity) Returns a newCUlaunchMemSyncDomainMap.Bufferinstance allocated withBufferUtils.static CUlaunchMemSyncDomainMapcreate(long address) Returns a newCUlaunchMemSyncDomainMapinstance for the specified memory address.create(long address, int capacity) Create aCUlaunchMemSyncDomainMap.Bufferinstance at the specified memory.static @Nullable CUlaunchMemSyncDomainMapcreateSafe(long address) static @Nullable CUlaunchMemSyncDomainMap.BuffercreateSafe(long address, int capacity) bytedefault_()default_(byte value) Sets the specified value to thedefault_field.static CUlaunchMemSyncDomainMapmalloc()Returns a newCUlaunchMemSyncDomainMapinstance allocated withmemAlloc.malloc(int capacity) Returns a newCUlaunchMemSyncDomainMap.Bufferinstance allocated withmemAlloc.malloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newCUlaunchMemSyncDomainMap.Bufferinstance allocated on the specifiedMemoryStack.static CUlaunchMemSyncDomainMapmalloc(org.lwjgl.system.MemoryStack stack) Returns a newCUlaunchMemSyncDomainMapinstance allocated on the specifiedMemoryStack.static bytendefault_(long struct) Unsafe version ofdefault_().static voidndefault_(long struct, byte value) Unsafe version ofdefault_.static bytenremote(long struct) Unsafe version ofremote().static voidnremote(long struct, byte value) Unsafe version ofremote.byteremote()remote(byte value) Sets the specified value to theremotefield.set(byte default_, byte remote) Initializes this struct with the specified values.Copies the specified struct data to this struct.intsizeof()Methods inherited from class org.lwjgl.system.Struct
clear, free, isNull, validate, validateMethods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
DEFAULT_
public static final int DEFAULT_The struct member offsets. -
REMOTE
public static final int REMOTEThe struct member offsets.
-
-
Constructor Details
-
CUlaunchMemSyncDomainMap
Creates aCUlaunchMemSyncDomainMapinstance 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 Details
-
sizeof
public int sizeof()- Specified by:
sizeofin classorg.lwjgl.system.Struct<CUlaunchMemSyncDomainMap>
-
default_
public byte default_()- Returns:
- the value of the
default_field.
-
remote
public byte remote()- Returns:
- the value of the
remotefield.
-
default_
Sets the specified value to thedefault_field. -
remote
Sets the specified value to theremotefield. -
set
Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newCUlaunchMemSyncDomainMapinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newCUlaunchMemSyncDomainMapinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newCUlaunchMemSyncDomainMapinstance allocated withBufferUtils. -
create
Returns a newCUlaunchMemSyncDomainMapinstance for the specified memory address. -
createSafe
-
malloc
Returns a newCUlaunchMemSyncDomainMap.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newCUlaunchMemSyncDomainMap.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newCUlaunchMemSyncDomainMap.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aCUlaunchMemSyncDomainMap.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newCUlaunchMemSyncDomainMapinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newCUlaunchMemSyncDomainMapinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static CUlaunchMemSyncDomainMap.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newCUlaunchMemSyncDomainMap.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
public static CUlaunchMemSyncDomainMap.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newCUlaunchMemSyncDomainMap.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
ndefault_
public static byte ndefault_(long struct) Unsafe version ofdefault_(). -
nremote
public static byte nremote(long struct) Unsafe version ofremote(). -
ndefault_
public static void ndefault_(long struct, byte value) Unsafe version ofdefault_. -
nremote
public static void nremote(long struct, byte value) Unsafe version ofremote.
-