Package org.lwjgl.cuda
Class CUgraphEdgeData
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<CUgraphEdgeData>
org.lwjgl.cuda.CUgraphEdgeData
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class CUgraphEdgeData
extends org.lwjgl.system.Struct<CUgraphEdgeData>
implements org.lwjgl.system.NativeResource
Layout
struct CUgraphEdgeData {
unsigned char from_port;
unsigned char to_port;
unsigned char type;
unsigned char reserved[5];
}-
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.static final intThe struct member offsets.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionCUgraphEdgeData(ByteBuffer container) Creates aCUgraphEdgeDatainstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic CUgraphEdgeDatacalloc()Returns a newCUgraphEdgeDatainstance allocated withmemCalloc.static CUgraphEdgeData.Buffercalloc(int capacity) Returns a newCUgraphEdgeData.Bufferinstance allocated withmemCalloc.static CUgraphEdgeData.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newCUgraphEdgeData.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CUgraphEdgeDatacalloc(org.lwjgl.system.MemoryStack stack) Returns a newCUgraphEdgeDatainstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CUgraphEdgeDatacreate()Returns a newCUgraphEdgeDatainstance allocated withBufferUtils.static CUgraphEdgeData.Buffercreate(int capacity) Returns a newCUgraphEdgeData.Bufferinstance allocated withBufferUtils.static CUgraphEdgeDatacreate(long address) Returns a newCUgraphEdgeDatainstance for the specified memory address.static CUgraphEdgeData.Buffercreate(long address, int capacity) Create aCUgraphEdgeData.Bufferinstance at the specified memory.static @Nullable CUgraphEdgeDatacreateSafe(long address) static @Nullable CUgraphEdgeData.BuffercreateSafe(long address, int capacity) bytefrom_port(byte value) Sets the specified value to thefrom_portfield.static CUgraphEdgeDatamalloc()Returns a newCUgraphEdgeDatainstance allocated withmemAlloc.static CUgraphEdgeData.Buffermalloc(int capacity) Returns a newCUgraphEdgeData.Bufferinstance allocated withmemAlloc.static CUgraphEdgeData.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newCUgraphEdgeData.Bufferinstance allocated on the specifiedMemoryStack.static CUgraphEdgeDatamalloc(org.lwjgl.system.MemoryStack stack) Returns a newCUgraphEdgeDatainstance allocated on the specifiedMemoryStack.static bytenfrom_port(long struct) Unsafe version offrom_port().static voidnfrom_port(long struct, byte value) Unsafe version offrom_port.static ByteBuffernreserved(long struct) static bytenreserved(long struct, int index) static voidnreserved(long struct, int index, byte value) static voidnreserved(long struct, ByteBuffer value) static bytento_port(long struct) Unsafe version ofto_port().static voidnto_port(long struct, byte value) Unsafe version ofto_port.static bytentype(long struct) Unsafe version oftype().static voidntype(long struct, byte value) Unsafe version oftype.set(byte from_port, byte to_port, byte type) Initializes this struct with the specified values.set(CUgraphEdgeData src) Copies the specified struct data to this struct.intsizeof()byteto_port()to_port(byte value) Sets the specified value to theto_portfield.bytetype()type(byte value) Sets the specified value to thetypefield.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. -
FROM_PORT
public static final int FROM_PORTThe struct member offsets. -
TO_PORT
public static final int TO_PORTThe struct member offsets. -
TYPE
public static final int TYPEThe struct member offsets. -
RESERVED
public static final int RESERVEDThe struct member offsets.
-
-
Constructor Details
-
CUgraphEdgeData
Creates aCUgraphEdgeDatainstance 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<CUgraphEdgeData>
-
from_port
public byte from_port()- Returns:
- the value of the
from_portfield.
-
to_port
public byte to_port()- Returns:
- the value of the
to_portfield.
-
type
public byte type()- Returns:
- the value of the
typefield.
-
from_port
Sets the specified value to thefrom_portfield. -
to_port
Sets the specified value to theto_portfield. -
type
Sets the specified value to thetypefield. -
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 newCUgraphEdgeDatainstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newCUgraphEdgeDatainstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newCUgraphEdgeDatainstance allocated withBufferUtils. -
create
Returns a newCUgraphEdgeDatainstance for the specified memory address. -
createSafe
-
malloc
Returns a newCUgraphEdgeData.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newCUgraphEdgeData.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newCUgraphEdgeData.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aCUgraphEdgeData.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newCUgraphEdgeDatainstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newCUgraphEdgeDatainstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newCUgraphEdgeData.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newCUgraphEdgeData.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nfrom_port
public static byte nfrom_port(long struct) Unsafe version offrom_port(). -
nto_port
public static byte nto_port(long struct) Unsafe version ofto_port(). -
ntype
public static byte ntype(long struct) Unsafe version oftype(). -
nreserved
-
nreserved
public static byte nreserved(long struct, int index) -
nfrom_port
public static void nfrom_port(long struct, byte value) Unsafe version offrom_port. -
nto_port
public static void nto_port(long struct, byte value) Unsafe version ofto_port. -
ntype
public static void ntype(long struct, byte value) Unsafe version oftype. -
nreserved
-
nreserved
public static void nreserved(long struct, int index, byte value)
-