| Modifier and Type | Field and Description |
|---|---|
| private static final int | COPY_FROM_ARRAY_THRESHOLD
Measurements show that using the copy API from a segment backed by a heap array gets reliably faster than individual puts around a length of 10. |
| private int | |
| private final MemorySegment | |
| private static final int | SIZEOF_BYTE
These constants represent the size of various data types (in bytes). |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static RenderBuffer | |
| public final int | capacity()
The behavior (and names) of the following methods are nearly identical to their counterparts in the various NIO Buffer classes. |
| public final void | |
| public final long | |
| public final int | |
| public final void | |
| public RenderBuffer | |
| public RenderBuffer | |
| public RenderBuffer | |
| public RenderBuffer | |
| public RenderBuffer | |
| public RenderBuffer | |
| public RenderBuffer | |
| public RenderBuffer | |
| public RenderBuffer | |
| public RenderBuffer | |
| public final RenderBuffer | |
| public final RenderBuffer | |
| public final RenderBuffer | |
| public final RenderBuffer | |
| public final RenderBuffer | |
| public final RenderBuffer | |
| public final RenderBuffer | |
| public final int | |
| public final RenderBuffer |
| COPY_FROM_ARRAY_THRESHOLD | back to summary |
|---|---|
| private static final int COPY_FROM_ARRAY_THRESHOLD Measurements show that using the copy API from a segment backed by a heap array gets reliably faster than individual puts around a length of 10. However the time is miniscule in the context of what it is used for and much more than adequate, so no problem expected if this changes over time. | |
| curOffset | back to summary |
|---|---|
| private int curOffset | |
| segment | back to summary |
|---|---|
| private final MemorySegment segment | |
| SIZEOF_BYTE | back to summary |
|---|---|
| private static final int SIZEOF_BYTE These constants represent the size of various data types (in bytes). | |
| SIZEOF_DOUBLE | back to summary |
|---|---|
| private static final int SIZEOF_DOUBLE | |
| SIZEOF_FLOAT | back to summary |
|---|---|
| private static final int SIZEOF_FLOAT | |
| SIZEOF_INT | back to summary |
|---|---|
| private static final int SIZEOF_INT | |
| SIZEOF_LONG | back to summary |
|---|---|
| private static final int SIZEOF_LONG | |
| SIZEOF_SHORT | back to summary |
|---|---|
| private static final int SIZEOF_SHORT | |
| RenderBuffer | back to summary |
|---|---|
| private RenderBuffer(int numBytes) | |
| allocate | back to summary |
|---|---|
| public static RenderBuffer allocate(int numBytes) Allocates a fresh buffer using the machine endianness. | |
| capacity | back to summary |
|---|---|
| public final int capacity() The behavior (and names) of the following methods are nearly identical to their counterparts in the various NIO Buffer classes. | |
| clear | back to summary |
|---|---|
| public final void clear() | |
| getAddress | back to summary |
|---|---|
| public final long getAddress() Returns the base address of the underlying memory buffer. | |
| position | back to summary |
|---|---|
| public final int position() | |
| position | back to summary |
|---|---|
| public final void position(int bytePos) | |
| put | back to summary |
|---|---|
| public RenderBuffer put(byte[] x) | |
| put | back to summary |
|---|---|
| public RenderBuffer put(byte[] x, int offset, int length) | |
| put | back to summary |
|---|---|
| public RenderBuffer put(short[] x) | |
| put | back to summary |
|---|---|
| public RenderBuffer put(short[] x, int offset, int length) | |
| put | back to summary |
|---|---|
| public RenderBuffer put(int[] x) | |
| put | back to summary |
|---|---|
| public RenderBuffer put(int[] x, int offset, int length) | |
| put | back to summary |
|---|---|
| public RenderBuffer put(float[] x) | |
| put | back to summary |
|---|---|
| public RenderBuffer put(float[] x, int offset, int length) | |
| put | back to summary |
|---|---|
| public RenderBuffer put(long[] x) | |
| put | back to summary |
|---|---|
| public RenderBuffer put(long[] x, int offset, int length) | |
| putByte | back to summary |
|---|---|
| public final RenderBuffer putByte(byte x) putByte() methods... | |
| putDouble | back to summary |
|---|---|
| public final RenderBuffer putDouble(double x) putDouble() method(s)... | |
| putFloat | back to summary |
|---|---|
| public final RenderBuffer putFloat(float x) putFloat() methods... | |
| putInt | back to summary |
|---|---|
| public final RenderBuffer putInt(int pos, int x) putInt() methods... | |
| putInt | back to summary |
|---|---|
| public final RenderBuffer putInt(int x) | |
| putLong | back to summary |
|---|---|
| public final RenderBuffer putLong(long x) putLong() methods... | |
| putShort | back to summary |
|---|---|
| public final RenderBuffer putShort(short x) putShort() methods... | |
| remaining | back to summary |
|---|---|
| public final int remaining() | |
| skip | back to summary |
|---|---|
| public final RenderBuffer skip(int numBytes) | |