public class PxBoundedData extends NativeObject
NativeObject.Allocator<T>| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF |
static int |
SIZEOF |
address, isExternallyAllocated| Modifier | Constructor and Description |
|---|---|
|
PxBoundedData() |
protected |
PxBoundedData(long address) |
| Modifier and Type | Method and Description |
|---|---|
static PxBoundedData |
createAt(long address) |
static <T> PxBoundedData |
createAt(T allocator,
NativeObject.Allocator<T> allocate) |
void |
destroy() |
int |
getCount() |
NativeObject |
getData() |
int |
getStride() |
void |
setCount(int value) |
void |
setData(NativeObject value) |
void |
setStride(int value) |
static PxBoundedData |
wrapPointer(long address) |
checkNotNull, equals, getAddress, hashCodepublic static final int SIZEOF
public static final int ALIGNOF
protected PxBoundedData(long address)
public PxBoundedData()
public static PxBoundedData wrapPointer(long address)
public static PxBoundedData createAt(long address)
address - Pre-allocated memory, where the object is created.public static <T> PxBoundedData createAt(T allocator, NativeObject.Allocator<T> allocate)
T - Allocator class, e.g. LWJGL's MemoryStack.allocator - Object to use for allocation, e.g. an instance of LWJGL's MemoryStack.allocate - Method to call on allocator to obtain the target address, e.g. MemoryStack::nmalloc.public void destroy()
public int getCount()
public void setCount(int value)
value - WebIDL type: unsigned longpublic int getStride()
public void setStride(int value)
value - WebIDL type: unsigned longpublic NativeObject getData()
public void setData(NativeObject value)
value - WebIDL type: VoidPtr [Const]