public class CUDA_HOST_NODE_PARAMS
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
fn – The function to call when the node executesuserData – Argument to pass to the function
struct CUDA_HOST_NODE_PARAMS {
void (*fn) (void *userData);
void * userData;
}| Modifier and Type | Class and Description |
|---|---|
static class |
CUDA_HOST_NODE_PARAMS.Buffer
An array of
CUDA_HOST_NODE_PARAMS structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
FN
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
USERDATA
The struct member offsets.
|
| Constructor and Description |
|---|
CUDA_HOST_NODE_PARAMS(java.nio.ByteBuffer container)
Creates a
CUDA_HOST_NODE_PARAMS instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static CUDA_HOST_NODE_PARAMS |
calloc()
Returns a new
CUDA_HOST_NODE_PARAMS instance allocated with memCalloc. |
static CUDA_HOST_NODE_PARAMS.Buffer |
calloc(int capacity)
Returns a new
CUDA_HOST_NODE_PARAMS.Buffer instance allocated with memCalloc. |
static CUDA_HOST_NODE_PARAMS |
callocStack()
Returns a new
CUDA_HOST_NODE_PARAMS instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static CUDA_HOST_NODE_PARAMS.Buffer |
callocStack(int capacity)
Returns a new
CUDA_HOST_NODE_PARAMS.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static CUDA_HOST_NODE_PARAMS.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
CUDA_HOST_NODE_PARAMS.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static CUDA_HOST_NODE_PARAMS |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
CUDA_HOST_NODE_PARAMS instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static CUDA_HOST_NODE_PARAMS |
create()
Returns a new
CUDA_HOST_NODE_PARAMS instance allocated with BufferUtils. |
static CUDA_HOST_NODE_PARAMS.Buffer |
create(int capacity)
Returns a new
CUDA_HOST_NODE_PARAMS.Buffer instance allocated with BufferUtils. |
static CUDA_HOST_NODE_PARAMS |
create(long address)
Returns a new
CUDA_HOST_NODE_PARAMS instance for the specified memory address. |
static CUDA_HOST_NODE_PARAMS.Buffer |
create(long address,
int capacity)
Create a
CUDA_HOST_NODE_PARAMS.Buffer instance at the specified memory. |
static CUDA_HOST_NODE_PARAMS |
createSafe(long address)
|
static CUDA_HOST_NODE_PARAMS.Buffer |
createSafe(long address,
int capacity)
|
CUhostFn |
fn()
Returns the value of the
fn field. |
CUDA_HOST_NODE_PARAMS |
fn(CUhostFnI value)
Sets the specified value to the
fn field. |
static CUDA_HOST_NODE_PARAMS |
malloc()
Returns a new
CUDA_HOST_NODE_PARAMS instance allocated with memAlloc. |
static CUDA_HOST_NODE_PARAMS.Buffer |
malloc(int capacity)
Returns a new
CUDA_HOST_NODE_PARAMS.Buffer instance allocated with memAlloc. |
static CUDA_HOST_NODE_PARAMS |
mallocStack()
Returns a new
CUDA_HOST_NODE_PARAMS instance allocated on the thread-local MemoryStack. |
static CUDA_HOST_NODE_PARAMS.Buffer |
mallocStack(int capacity)
Returns a new
CUDA_HOST_NODE_PARAMS.Buffer instance allocated on the thread-local MemoryStack. |
static CUDA_HOST_NODE_PARAMS.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
CUDA_HOST_NODE_PARAMS.Buffer instance allocated on the specified MemoryStack. |
static CUDA_HOST_NODE_PARAMS |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
CUDA_HOST_NODE_PARAMS instance allocated on the specified MemoryStack. |
static CUhostFn |
nfn(long struct)
Unsafe version of
fn(). |
static void |
nfn(long struct,
CUhostFnI value)
Unsafe version of
fn. |
static long |
nuserData(long struct)
Unsafe version of
userData(). |
static void |
nuserData(long struct,
long value)
Unsafe version of
userData. |
CUDA_HOST_NODE_PARAMS |
set(CUDA_HOST_NODE_PARAMS src)
Copies the specified struct data to this struct.
|
CUDA_HOST_NODE_PARAMS |
set(CUhostFnI fn,
long userData)
Initializes this struct with the specified values.
|
int |
sizeof() |
long |
userData()
Returns the value of the
userData field. |
CUDA_HOST_NODE_PARAMS |
userData(long value)
Sets the specified value to the
userData field. |
static void |
validate(long struct)
Validates pointer members that should not be
NULL. |
static void |
validate(long array,
int count)
Calls
validate(long) for each struct contained in the specified struct array. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int FN
public static final int USERDATA
public CUDA_HOST_NODE_PARAMS(java.nio.ByteBuffer container)
CUDA_HOST_NODE_PARAMS instance at the current position of the specified ByteBuffer container. 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic CUhostFn fn()
fn field.public long userData()
userData field.public CUDA_HOST_NODE_PARAMS fn(CUhostFnI value)
fn field.public CUDA_HOST_NODE_PARAMS userData(long value)
userData field.public CUDA_HOST_NODE_PARAMS set(CUhostFnI fn, long userData)
public CUDA_HOST_NODE_PARAMS set(CUDA_HOST_NODE_PARAMS src)
src - the source structpublic static CUDA_HOST_NODE_PARAMS malloc()
CUDA_HOST_NODE_PARAMS instance allocated with memAlloc. The instance must be explicitly freed.public static CUDA_HOST_NODE_PARAMS calloc()
CUDA_HOST_NODE_PARAMS instance allocated with memCalloc. The instance must be explicitly freed.public static CUDA_HOST_NODE_PARAMS create()
CUDA_HOST_NODE_PARAMS instance allocated with BufferUtils.public static CUDA_HOST_NODE_PARAMS create(long address)
CUDA_HOST_NODE_PARAMS instance for the specified memory address.@Nullable public static CUDA_HOST_NODE_PARAMS createSafe(long address)
public static CUDA_HOST_NODE_PARAMS.Buffer malloc(int capacity)
CUDA_HOST_NODE_PARAMS.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static CUDA_HOST_NODE_PARAMS.Buffer calloc(int capacity)
CUDA_HOST_NODE_PARAMS.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static CUDA_HOST_NODE_PARAMS.Buffer create(int capacity)
CUDA_HOST_NODE_PARAMS.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static CUDA_HOST_NODE_PARAMS.Buffer create(long address, int capacity)
CUDA_HOST_NODE_PARAMS.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static CUDA_HOST_NODE_PARAMS.Buffer createSafe(long address, int capacity)
public static CUDA_HOST_NODE_PARAMS mallocStack()
CUDA_HOST_NODE_PARAMS instance allocated on the thread-local MemoryStack.public static CUDA_HOST_NODE_PARAMS callocStack()
CUDA_HOST_NODE_PARAMS instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static CUDA_HOST_NODE_PARAMS mallocStack(org.lwjgl.system.MemoryStack stack)
CUDA_HOST_NODE_PARAMS instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static CUDA_HOST_NODE_PARAMS callocStack(org.lwjgl.system.MemoryStack stack)
CUDA_HOST_NODE_PARAMS instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static CUDA_HOST_NODE_PARAMS.Buffer mallocStack(int capacity)
CUDA_HOST_NODE_PARAMS.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static CUDA_HOST_NODE_PARAMS.Buffer callocStack(int capacity)
CUDA_HOST_NODE_PARAMS.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static CUDA_HOST_NODE_PARAMS.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
CUDA_HOST_NODE_PARAMS.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static CUDA_HOST_NODE_PARAMS.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
CUDA_HOST_NODE_PARAMS.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static long nuserData(long struct)
userData().public static void nuserData(long struct,
long value)
userData.public static void validate(long struct)
NULL.struct - the struct to validatepublic static void validate(long array,
int count)
validate(long) for each struct contained in the specified struct array.array - the struct array to validatecount - the number of structs in arrayCopyright LWJGL. All Rights Reserved. License terms.