IOBuffer
instead.@Deprecated public final class PktIOBuffer extends com.neeve.io.IOBuffer
A packet IO buffer is essentially a poolable ByteBuffer
. It
serves as the unit for IO (network or otherwise). A packet buffers
(PktBuffer
) serves as window into an IO buffer. The window
spans the contents of the packet header or body that the packet
buffer backs.
ByteBuffer
object, a packet buffer
is not thread safe i.e. only one thread can be executing the packet buffer
methods at any point in time.Modifier and Type | Method and Description |
---|---|
static PktIOBuffer |
create(int length,
boolean isNative)
Deprecated.
Since 1.9. Use
IOBuffer instead. |
static PktIOBuffer |
createNative(int length)
Deprecated.
Since 1.9. Use
IOBuffer instead. |
acquire, adjustHighwater, calculateUTFLength, calculateUTFLength, copy, create, createNative, dispose, ensureCapacity, get, getBuffer, getBufferUnsafe, getCapacity, getChar, getDouble, getFloat, getHighwater, getInt, getLength, getLong, getOwnerCount, getPool, getShort, getUnsignedByte, getUnsignedInt, getUnsignedShort, init, isNative, isNativeXIOBufferEnabled, isSingleMasterDirectBufferEnabled, numSlabs, put, putChar, putCharSequenceUTF, putCharUTF8, putDouble, putFloat, putFrom, putFrom, putFrom, putInt, putLong, putShort, putString, referenceTracker, releaseBuffer, setByteOrder, setNoWipe, setPool, slab, smallestSlabSize, takeBuffer, toString, wrap
@Deprecated public static PktIOBuffer create(int length, boolean isNative)
IOBuffer
instead.length
- The length of the buffer to create.isNative
- Whether to create a buffer with native or heap storage.@Deprecated public static PktIOBuffer createNative(int length)
IOBuffer
instead.length
- The length of the buffer to create.
This method creates a native buffer regardless of whether or not
IOBuffer.DISABLE_NATIVE_BUFFERS
is true
. This method should
only be used in cases where a native buffer is an absolute necessity,
e.g. when working with native code that requires such a buffer.
Copyright © 2019 Neeve Research, LLC. All Rights Reserved.