public class DirectBytes extends ByteBufferBytes
ByteBuffer based direct bytes.| Modifier and Type | Method and Description |
|---|---|
static DirectBytes |
allocate(int size)
Allocates a new direct byte array.
|
boolean |
isDirect()
Returns a boolean value indicating whether the bytes are direct.
|
array, byteBuffer, order, order, read, read, readByte, readChar, readDouble, readFloat, readInt, readLong, readShort, reset, resize, size, write, write, writeByte, writeChar, writeDouble, writeFloat, writeInt, writeLong, writeShort, zero, zero, zeroclose, flush, isFile, readBoolean, readMedium, readString, readString, readUnsignedByte, readUnsignedInt, readUnsignedMedium, readUnsignedShort, readUTF8, writeBoolean, writeMedium, writeString, writeString, writeUnsignedByte, writeUnsignedInt, writeUnsignedMedium, writeUnsignedShort, writeUTF8public static DirectBytes allocate(int size)
size - The count of the buffer to allocate (in bytes).IllegalArgumentException - If count is greater than the maximum allowed count for
an array on the Java heap - Integer.MAX_VALUE - 5public boolean isDirect()
BytesisDirect in interface BytesisDirect in class AbstractBytesCopyright © 2013–2018. All rights reserved.