| Modifier and Type | Class and Description |
|---|---|
| public static interface | InternalBufferUtils.UncheckedLoadByte
This interface provides the fastest possible offsetted byte-access to a buffer. |
| Modifier and Type | Field and Description |
|---|---|
| public static final MethodHandle | |
| public static final MethodHandle | |
| public static final Cleaner | |
| public static final int | MAX_BUFFER_SIZE
The maximum buffer size we support is the maximum array length generally supported by JVMs, because on-heap buffers will be backed by byte-arrays. |
| public static final LongAdder | |
| public static final Drop | |
| public static final InternalBufferUtils. |
| Modifier and Type | Method and Description |
|---|---|
| public static <T> T | |
| public static IllegalStateException | |
| public static void | assertValidBufferSize(long
The size to check. size)Check the given |
| public static <E extends Throwable> E | |
| public static void | bbput(ByteBuffer dest, int destPos, ByteBuffer src, int srcPos, int length)
The ByteBuffer put-buffer-with-offset-and-length method is not available in Java 11. |
| private static void | |
| private static void | |
| public static ByteBuffer | bbslice(ByteBuffer buffer, int fromOffset, int length)
The ByteBuffer slice-with-offset-and-length method is only available from Java 13 and onwards, but we need to support Java 11. |
| private static ByteBuffer | |
| private static ByteBuffer | |
| public static BufferClosedException | |
| public static BufferReadOnlyException | |
| public static int | bytesBefore(Buffer haystack, InternalBufferUtils.
|
| private static int | bytesBeforeInnerNonPeriodic(Buffer haystack, InternalBufferUtils.
|
| private static int | bytesBeforeInnerPeriodic(Buffer haystack, InternalBufferUtils.
|
| public static void | |
| public static void | |
| public static <T, R> Drop | |
| public static CharSequence | |
| public static void | |
| public static int | |
| public static boolean | |
| public static boolean | |
| private static boolean | |
| public static VarHandle | |
| public static MethodHandle | |
| public static MethodHandle | |
| public static int | |
| public static boolean | |
| private static long | maxFixes(Buffer needle, InternalBufferUtils.
|
| public static long | |
| public static long | Returns: An offsetted native address, or zero if no native address was available.The native address, or zero if no native address is available. address, int The offset into the native address we wish to compute. offset)Compute an offset into a native address. |
| public static CharSequence | |
| public static void | |
| public static Function | |
| public static String | |
| public static ByteBuffer | |
| public static void | |
| public static void |
| BB_PUT_OFFSETS | back to summary |
|---|---|
| public static final MethodHandle BB_PUT_OFFSETS | |
| BB_SLICE_OFFSETS | back to summary |
|---|---|
| public static final MethodHandle BB_SLICE_OFFSETS | |
| CLEANER | back to summary |
|---|---|
| public static final Cleaner CLEANER | |
| MAX_BUFFER_SIZE | back to summary |
|---|---|
| public static final int MAX_BUFFER_SIZE The maximum buffer size we support is the maximum array length generally supported by JVMs, because on-heap buffers will be backed by byte-arrays. | |
| MEM_USAGE_NATIVE | back to summary |
|---|---|
| public static final LongAdder MEM_USAGE_NATIVE | |
| NO_OP_DROP | back to summary |
|---|---|
| public static final Drop<Buffer> NO_OP_DROP | |
| UNCHECKED_LOAD_BYTE_BUFFER | back to summary |
|---|---|
| public static final InternalBufferUtils. | |
| acquire | back to summary |
|---|---|
| public static <T> T acquire(ResourceSupport<?, ?> obj) | |
| allocatorClosedException | back to summary |
|---|---|
| public static IllegalStateException allocatorClosedException() | |
| assertValidBufferSize | back to summary |
|---|---|
| public static void assertValidBufferSize(long size) Check the given
| |
| attachTrace | back to summary |
|---|---|
| public static <E extends Throwable> E attachTrace(ResourceSupport<?, ?> obj, E throwable) | |
| bbput | back to summary |
|---|---|
| public static void bbput(ByteBuffer dest, int destPos, ByteBuffer src, int srcPos, int length) The ByteBuffer put-buffer-with-offset-and-length method is not available in Java 11. | |
| bbputFallback | back to summary |
|---|---|
| private static void bbputFallback(ByteBuffer dest, int destPos, ByteBuffer src, int srcPos, int length) | |
| bbputJdk16 | back to summary |
|---|---|
| private static void bbputJdk16(ByteBuffer dest, int destPos, ByteBuffer src, int srcPos, int length) | |
| bbslice | back to summary |
|---|---|
| public static ByteBuffer bbslice(ByteBuffer buffer, int fromOffset, int length) The ByteBuffer slice-with-offset-and-length method is only available from Java 13 and onwards, but we need to support Java 11. | |
| bbsliceFallback | back to summary |
|---|---|
| private static ByteBuffer bbsliceFallback(ByteBuffer buffer, int fromOffset, int length) | |
| bbsliceJdk13 | back to summary |
|---|---|
| private static ByteBuffer bbsliceJdk13(ByteBuffer buffer, int fromOffset, int length) | |
| bufferIsClosed | back to summary |
|---|---|
| public static BufferClosedException bufferIsClosed(Buffer buffer) | |
| bufferIsReadOnly | back to summary |
|---|---|
| public static BufferReadOnlyException bufferIsReadOnly(Buffer buffer) | |
| bytesBefore | back to summary |
|---|---|
| public static int bytesBefore(Buffer haystack, InternalBufferUtils. | |
| bytesBeforeInnerNonPeriodic | back to summary |
|---|---|
| private static int bytesBeforeInnerNonPeriodic(Buffer haystack, InternalBufferUtils. | |
| bytesBeforeInnerPeriodic | back to summary |
|---|---|
| private static int bytesBeforeInnerPeriodic(Buffer haystack, InternalBufferUtils. | |
| checkImplicitCapacity | back to summary |
|---|---|
| public static void checkImplicitCapacity(int implicitCapacity, int currentCapacity) | |
| checkLength | back to summary |
|---|---|
| public static void checkLength(int length) | |
| convert | back to summary |
|---|---|
public static <T, R> Drop
| |
| copyToCharSequence | back to summary |
|---|---|
| public static CharSequence copyToCharSequence(Buffer source, int srcIdx, int length, Charset charset) | |
| copyToViaReverseLoop | back to summary |
|---|---|
| public static void copyToViaReverseLoop(Buffer src, int srcPos, Buffer dest, int destPos, int length) | |
| countBorrows | back to summary |
|---|---|
| public static int countBorrows(ResourceSupport<?, ?> obj) | |
| equals | back to summary |
|---|---|
| public static boolean equals(Buffer bufferA, Buffer bufferB) | |
| equals | back to summary |
|---|---|
| public static boolean equals(Buffer a, int aStartIndex, Buffer b, int bStartIndex, int length) | |
| equalsInner | back to summary |
|---|---|
| private static boolean equalsInner(Buffer a, int aStartIndex, Buffer b, int bStartIndex, int length) | |
| findVarHandle | back to summary |
|---|---|
| public static VarHandle findVarHandle(MethodHandles. | |
| getByteBufferPutOffsetsMethodHandle | back to summary |
|---|---|
public static MethodHandle getByteBufferPutOffsetsMethodHandle()
| |
| getByteBufferSliceOffsetsMethodHandle | back to summary |
|---|---|
| public static MethodHandle getByteBufferSliceOffsetsMethodHandle() | |
| hashCode | back to summary |
|---|---|
| public static int hashCode(Buffer buffer) | |
| isOwned | back to summary |
|---|---|
| public static boolean isOwned(ResourceSupport<?, ?> obj) | |
| maxFixes | back to summary |
|---|---|
| private static long maxFixes(Buffer needle, InternalBufferUtils. | |
| nativeAddressOfDirectByteBuffer | back to summary |
|---|---|
| public static long nativeAddressOfDirectByteBuffer(ByteBuffer byteBuffer) | |
| nativeAddressWithOffset | back to summary |
|---|---|
| public static long nativeAddressWithOffset(long address, int offset) Compute an offset into a native address. Zero is used as a marker for when a native address is not available, and an offset into a zero address will remain zero.
| |
| readCharSequence | back to summary |
|---|---|
| public static CharSequence readCharSequence(Buffer source, int length, Charset charset) | |
| setMemory | back to summary |
|---|---|
| public static void setMemory(ByteBuffer buffer, int length, byte value) | |
| standardDrop | back to summary |
|---|---|
| public static Function | |
| toString | back to summary |
|---|---|
| public static String toString(Buffer source, Charset charset) | |
| tryGetWritableBufferFromReadableComponent | back to summary |
|---|---|
| public static ByteBuffer tryGetWritableBufferFromReadableComponent(BufferComponent component) | |
| unsafeSetDrop | back to summary |
|---|---|
public static void unsafeSetDrop(ResourceSupport<?, ?> obj, Drop<?> replacement)
| |
| writeCharSequence | back to summary |
|---|---|
| public static void writeCharSequence(CharSequence source, Buffer destination, Charset charset) | |
bytesBefore(Buffer, UncheckedLoadByte, Buffer, UncheckedLoadByte) to access memory faster.
| load | back to summary |
|---|---|
| public byte load(Buffer buffer, int offset) | |