struct VmaDefragmentationMove {
VmaDefragmentationMoveOperation operation;
VmaAllocation srcAllocation;
VmaAllocation dstTmpAllocation;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | VmaDefragmentationMove.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | DSTTMPALLOCATION
The struct member offsets. |
| public static final int | OPERATION
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| public static final int | SRCALLOCATION
The struct member offsets. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | VmaDefragmentationMove(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public static VmaDefragmentationMove | |
| public static VmaDefragmentationMove. | calloc(int
the buffer capacity capacity)Returns a new |
| public static VmaDefragmentationMove | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static VmaDefragmentationMove. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| protected VmaDefragmentationMove | 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 VmaDefragmentationMove | |
| public static VmaDefragmentationMove | |
| public static VmaDefragmentationMove. | create(int
the buffer capacity capacity)Returns a new |
| public static VmaDefragmentationMove. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static VmaDefragmentationMove | |
| public static VmaDefragmentationMove. | |
| public long | dstTmpAllocation()
temporary allocation pointing to destination memory that will replace |
| public VmaDefragmentationMove | |
| public static VmaDefragmentationMove | |
| public static VmaDefragmentationMove. | malloc(int
the buffer capacity capacity)Returns a new |
| public static VmaDefragmentationMove | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static VmaDefragmentationMove. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static long | |
| public static void | |
| public static int | |
| public static void | |
| public static long | |
| public static void | |
| public int | |
| public VmaDefragmentationMove | |
| public VmaDefragmentationMove | set(int operation, long srcAllocation, long dstTmpAllocation)
Initializes this struct with the specified values. |
| public VmaDefragmentationMove | Returns: this structthe source struct src)Copies the specified struct data to this struct. |
| public int | |
| public long | |
| public VmaDefragmentationMove | |
| public static void |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| DSTTMPALLOCATION | back to summary |
|---|---|
| public static final int DSTTMPALLOCATION The struct member offsets. | |
| OPERATION | back to summary |
|---|---|
| public static final int OPERATION The struct member offsets. | |
| SIZEOF | back to summary |
|---|---|
| public static final int SIZEOF The struct size in bytes. | |
| SRCALLOCATION | back to summary |
|---|---|
| public static final int SRCALLOCATION The struct member offsets. | |
| VmaDefragmentationMove | back to summary |
|---|---|
| protected VmaDefragmentationMove(long address, ByteBuffer container) | |
| VmaDefragmentationMove | back to summary |
|---|---|
| public VmaDefragmentationMove(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| calloc | back to summary |
|---|---|
| public static VmaDefragmentationMove calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static VmaDefragmentationMove. Returns a new
| |
| calloc | back to summary |
|---|---|
| public static VmaDefragmentationMove calloc(MemoryStack stack) Returns a new
| |
| calloc | back to summary |
|---|---|
| public static VmaDefragmentationMove. Returns a new
| |
| create | back to summary |
|---|---|
| protected VmaDefragmentationMove create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static VmaDefragmentationMove create() Returns a new | |
| create | back to summary |
|---|---|
| public static VmaDefragmentationMove create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static VmaDefragmentationMove. Returns a new
| |
| create | back to summary |
|---|---|
| public static VmaDefragmentationMove. Create a
| |
| createSafe | back to summary |
|---|---|
| public static VmaDefragmentationMove createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static VmaDefragmentationMove. Like
| |
| dstTmpAllocation | back to summary |
|---|---|
| public long dstTmpAllocation() temporary allocation pointing to destination memory that will replace Warning Do not store this allocation in your data structures! It exists only temporarily, for the duration of the defragmentation pass, to be used for
binding new buffer/image to the destination memory using e.g.
| |
| dstTmpAllocation | back to summary |
|---|---|
| public VmaDefragmentationMove dstTmpAllocation(long value) Sets the specified value to the | |
| malloc | back to summary |
|---|---|
| public static VmaDefragmentationMove malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static VmaDefragmentationMove. Returns a new
| |
| malloc | back to summary |
|---|---|
| public static VmaDefragmentationMove malloc(MemoryStack stack) Returns a new
| |
| malloc | back to summary |
|---|---|
| public static VmaDefragmentationMove. Returns a new
| |
| ndstTmpAllocation | back to summary |
|---|---|
| public static long ndstTmpAllocation(long struct) Unsafe version of | |
| ndstTmpAllocation | back to summary |
|---|---|
| public static void ndstTmpAllocation(long struct, long value) Unsafe version of | |
| noperation | back to summary |
|---|---|
| public static int noperation(long struct) Unsafe version of | |
| noperation | back to summary |
|---|---|
| public static void noperation(long struct, int value) Unsafe version of | |
| nsrcAllocation | back to summary |
|---|---|
| public static long nsrcAllocation(long struct) Unsafe version of | |
| nsrcAllocation | back to summary |
|---|---|
| public static void nsrcAllocation(long struct, long value) Unsafe version of | |
| operation | back to summary |
|---|---|
| public int operation() operation to be performed on the allocation by Default value is
| |
| operation | back to summary |
|---|---|
| public VmaDefragmentationMove operation(int value) Sets the specified value to the | |
| set | back to summary |
|---|---|
| public VmaDefragmentationMove set(int operation, long srcAllocation, long dstTmpAllocation) Initializes this struct with the specified values. | |
| set | back to summary |
|---|---|
| public VmaDefragmentationMove set(VmaDefragmentationMove src) Copies the specified struct data to this struct.
| |
| sizeof | back to summary |
|---|---|
| public int sizeof() Implements abstract org. Doc from org. Returns
| |
| srcAllocation | back to summary |
|---|---|
| public long srcAllocation() allocation that should be moved
| |
| srcAllocation | back to summary |
|---|---|
| public VmaDefragmentationMove srcAllocation(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
| |
VmaDefragmentationMove structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final VmaDefragmentationMove |
| Access | Constructor and Description |
|---|---|
| public | Buffer(ByteBuffer container)
Creates a new |
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public long | |
| public VmaDefragmentationMove. | dstTmpAllocation(long value)
Sets the specified value to the |
| protected VmaDefragmentationMove | |
| public int | |
| public VmaDefragmentationMove. | |
| protected VmaDefragmentationMove. | |
| public long | |
| public VmaDefragmentationMove. | srcAllocation(long value)
Sets the specified value to the |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final VmaDefragmentationMove 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) | |
| dstTmpAllocation | back to summary |
|---|---|
public long dstTmpAllocation()
| |
| dstTmpAllocation | back to summary |
|---|---|
| public VmaDefragmentationMove. Sets the specified value to the | |
| getElementFactory | back to summary |
|---|---|
| protected VmaDefragmentationMove getElementFactory() Implements abstract org.
| |
| operation | back to summary |
|---|---|
public int operation()
| |
| operation | back to summary |
|---|---|
| public VmaDefragmentationMove. Sets the specified value to the | |
| self | back to summary |
|---|---|
| protected VmaDefragmentationMove. Implements abstract org.
| |
| srcAllocation | back to summary |
|---|---|
public long srcAllocation()
| |
| srcAllocation | back to summary |
|---|---|
| public VmaDefragmentationMove. Sets the specified value to the | |