InitAllocator.
struct GLFWallocator {
GLFWallocatefun allocate;
GLFWreallocatefun reallocate;
GLFWdeallocatefun deallocate;
void * user;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | GLFWAllocator.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | ALLOCATE
The struct member offsets. |
| public static final int | DEALLOCATE
The struct member offsets. |
| public static final int | REALLOCATE
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| public static final int | USER
The struct member offsets. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | GLFWAllocator(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public GLFWAllocateCallback | |
| public GLFWAllocator | |
| public static GLFWAllocator | |
| public static GLFWAllocator. | calloc(int
the buffer capacity capacity)Returns a new |
| public static GLFWAllocator | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static GLFWAllocator. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| protected GLFWAllocator | create(long
the struct memory address address, ByteBuffer an optional container buffer, to be referenced strongly by the struct instance. container)Implements abstract org. the constructor, but returns the exact type of the Struct subclass.
|
| public static GLFWAllocator | |
| public static GLFWAllocator | |
| public static GLFWAllocator. | create(int
the buffer capacity capacity)Returns a new |
| public static GLFWAllocator. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static GLFWAllocator | |
| public static GLFWAllocator. | |
| public GLFWDeallocateCallback | |
| public GLFWAllocator | |
| public static GLFWAllocator | |
| public static GLFWAllocator. | malloc(int
the buffer capacity capacity)Returns a new |
| public static GLFWAllocator | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static GLFWAllocator. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static GLFWAllocateCallback | |
| public static void | |
| public static GLFWDeallocateCallback | |
| public static void | |
| public static GLFWReallocateCallback | |
| public static void | |
| public static long | |
| public static void | |
| public GLFWReallocateCallback | |
| public GLFWAllocator | |
| public GLFWAllocator | set(GLFWAllocateCallbackI allocate, GLFWReallocateCallbackI reallocate, GLFWDeallocateCallbackI deallocate, long user)
Initializes this struct with the specified values. |
| public GLFWAllocator | Returns: this structthe source struct src)Copies the specified struct data to this struct. |
| public int | |
| public long | |
| public GLFWAllocator | |
| public static void |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| ALLOCATE | back to summary |
|---|---|
| public static final int ALLOCATE The struct member offsets. | |
| DEALLOCATE | back to summary |
|---|---|
| public static final int DEALLOCATE The struct member offsets. | |
| REALLOCATE | back to summary |
|---|---|
| public static final int REALLOCATE The struct member offsets. | |
| SIZEOF | back to summary |
|---|---|
| public static final int SIZEOF The struct size in bytes. | |
| USER | back to summary |
|---|---|
| public static final int USER The struct member offsets. | |
| GLFWAllocator | back to summary |
|---|---|
| protected GLFWAllocator(long address, ByteBuffer container) | |
| GLFWAllocator | back to summary |
|---|---|
| public GLFWAllocator(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| allocate | back to summary |
|---|---|
| public GLFWAllocateCallback allocate() the memory allocation callback
| |
| allocate | back to summary |
|---|---|
| public GLFWAllocator allocate(GLFWAllocateCallbackI value) Sets the specified value to the | |
| calloc | back to summary |
|---|---|
| public static GLFWAllocator calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static GLFWAllocator. Returns a new
| |
| calloc | back to summary |
|---|---|
| public static GLFWAllocator calloc(MemoryStack stack) Returns a new
| |
| calloc | back to summary |
|---|---|
| public static GLFWAllocator. Returns a new
| |
| create | back to summary |
|---|---|
| protected GLFWAllocator create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static GLFWAllocator create() Returns a new | |
| create | back to summary |
|---|---|
| public static GLFWAllocator create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static GLFWAllocator. Returns a new
| |
| create | back to summary |
|---|---|
| public static GLFWAllocator. Create a
| |
| createSafe | back to summary |
|---|---|
| public static GLFWAllocator createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static GLFWAllocator. Like
| |
| deallocate | back to summary |
|---|---|
| public GLFWDeallocateCallback deallocate() the memory deallocation callback
| |
| deallocate | back to summary |
|---|---|
| public GLFWAllocator deallocate(GLFWDeallocateCallbackI value) Sets the specified value to the | |
| malloc | back to summary |
|---|---|
| public static GLFWAllocator malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static GLFWAllocator. Returns a new
| |
| malloc | back to summary |
|---|---|
| public static GLFWAllocator malloc(MemoryStack stack) Returns a new
| |
| malloc | back to summary |
|---|---|
| public static GLFWAllocator. Returns a new
| |
| nallocate | back to summary |
|---|---|
| public static GLFWAllocateCallback nallocate(long struct) Unsafe version of | |
| nallocate | back to summary |
|---|---|
| public static void nallocate(long struct, GLFWAllocateCallbackI value) Unsafe version of | |
| ndeallocate | back to summary |
|---|---|
| public static GLFWDeallocateCallback ndeallocate(long struct) Unsafe version of | |
| ndeallocate | back to summary |
|---|---|
| public static void ndeallocate(long struct, GLFWDeallocateCallbackI value) Unsafe version of | |
| nreallocate | back to summary |
|---|---|
| public static GLFWReallocateCallback nreallocate(long struct) Unsafe version of | |
| nreallocate | back to summary |
|---|---|
| public static void nreallocate(long struct, GLFWReallocateCallbackI value) Unsafe version of | |
| nuser | back to summary |
|---|---|
| public static long nuser(long struct) Unsafe version of | |
| nuser | back to summary |
|---|---|
| public static void nuser(long struct, long value) Unsafe version of | |
| reallocate | back to summary |
|---|---|
| public GLFWReallocateCallback reallocate() the memory reallocation callback
| |
| reallocate | back to summary |
|---|---|
| public GLFWAllocator reallocate(GLFWReallocateCallbackI value) Sets the specified value to the | |
| set | back to summary |
|---|---|
| public GLFWAllocator set(GLFWAllocateCallbackI allocate, GLFWReallocateCallbackI reallocate, GLFWDeallocateCallbackI deallocate, long user) Initializes this struct with the specified values. | |
| set | back to summary |
|---|---|
| public GLFWAllocator set(GLFWAllocator src) Copies the specified struct data to this struct.
| |
| sizeof | back to summary |
|---|---|
| public int sizeof() Implements abstract org. Doc from org. Returns
| |
| user | back to summary |
|---|---|
| public long user() a user-defined pointer that will be passed to the callbacks
| |
| user | back to summary |
|---|---|
| public GLFWAllocator user(long value) Sets the specified value to the | |
| validate | back to summary |
|---|---|
| public static void validate(long struct) Validates pointer members that should not be
| |
GLFWAllocator structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final GLFWAllocator |
| Access | Constructor and Description |
|---|---|
| public | Buffer(ByteBuffer container)
Creates a new |
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public GLFWAllocateCallback | |
| public GLFWAllocator. | |
| public GLFWDeallocateCallback | |
| public GLFWAllocator. | deallocate(GLFWDeallocateCallbackI value)
Sets the specified value to the |
| protected GLFWAllocator | |
| public GLFWReallocateCallback | |
| public GLFWAllocator. | reallocate(GLFWReallocateCallbackI value)
Sets the specified value to the |
| protected GLFWAllocator. | |
| public long | |
| public GLFWAllocator. |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final GLFWAllocator ELEMENT_FACTORY | |
| Buffer | back to summary |
|---|---|
| public Buffer(ByteBuffer container) Creates a new Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided
by The created buffer instance holds a strong reference to the container object. | |
| Buffer | back to summary |
|---|---|
| public Buffer(long address, int cap) | |
| Buffer | back to summary |
|---|---|
| pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap) | |
| allocate | back to summary |
|---|---|
public GLFWAllocateCallback allocate()
| |
| allocate | back to summary |
|---|---|
| public GLFWAllocator. Sets the specified value to the | |
| deallocate | back to summary |
|---|---|
public GLFWDeallocateCallback deallocate()
| |
| deallocate | back to summary |
|---|---|
| public GLFWAllocator. Sets the specified value to the | |
| getElementFactory | back to summary |
|---|---|
| protected GLFWAllocator getElementFactory() Implements abstract org.
| |
| reallocate | back to summary |
|---|---|
public GLFWReallocateCallback reallocate()
| |
| reallocate | back to summary |
|---|---|
| public GLFWAllocator. Sets the specified value to the | |
| self | back to summary |
|---|---|
| protected GLFWAllocator. Implements abstract org.
| |
| user | back to summary |
|---|---|
public long user()
| |
| user | back to summary |
|---|---|
| public GLFWAllocator. Sets the specified value to the | |