public class NativeBytes<Underlying> extends VanillaBytes<Underlying>
bytesStore, readPosition, writeLimit, writePosition
MAX_CAPACITY
charToString
Modifier and Type | Method and Description |
---|---|
default ByteOrder |
byteOrder() |
long |
capacity() |
static BytesStore<Bytes<Void>,Void> |
copyOf(Bytes bytes) |
void |
ensureCapacity(long size)
grow the buffer if the buffer is elastic, if the buffer is not elastic and there is not enough capacity then this
method will throws
BufferOverflowException |
boolean |
isElastic() |
static NativeBytes<Void> |
nativeBytes() |
static NativeBytes<Void> |
nativeBytes(long initialCapacity) |
default void |
parse8bit(Appendable sb,
StopCharsTester stopCharsTester) |
default double |
parseDouble() |
default long |
parseLong() |
default void |
parseUTF(Appendable sb,
StopCharsTester stopCharsTester) |
default void |
parseUTF(Appendable sb,
StopCharTester stopCharTester) |
default String |
parseUTF(StopCharTester stopCharTester) |
long |
readIncompleteLong(long offset) |
default long |
readRemaining() |
int |
readVolatileInt(long offset) |
long |
readVolatileLong(long offset) |
default boolean |
skipTo(StopCharTester tester) |
Bytes<Underlying> |
write(byte[] bytes,
int offset,
int length) |
Bytes<Underlying> |
write(BytesStore bytes,
long offset,
long length) |
protected void |
writeCheckOffset(long offset,
long adding) |
default long |
writeRemaining() |
append, byteCheckSum, bytesForRead, bytesStore, copy, equalBytes, maxSize, read8Bit, realCapacity, vanillaBytes, write
address, bytesStore, clear, compareAndSwapInt, compareAndSwapLong, equals, equalsBytes, hashCode, nativeRead, nativeRead, nativeWrite, nativeWrite, peekUnsignedByte, readByte, readByte, readDouble, readDouble, readFloat, readFloat, readInt, readInt, readLimit, readLimit, readLong, readLong, readOffsetPositionMoved, readPosition, readPosition, readShort, readShort, readSkip, readVolatileInt, readVolatileLong, refCount, release, reserve, start, toString, underlyingObject, write, write, write, write, writeByte, writeByte, writeDouble, writeDouble, writeFloat, writeFloat, writeInt, writeInt, writeLimit, writeLimit, writeLong, writeLong, writeOffsetPositionMoved, writeOrderedInt, writeOrderedInt, writeOrderedLong, writeOrderedLong, writePosition, writePosition, writeShort, writeShort, writeSkip
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
allocateDirect, allocateElasticDirect, allocateElasticDirect, elasticByteBuffer, expect, expect, from, isClear, safeLimit, toHexString, toHexString, toString, toString, unchecked, wrapForRead, wrapForRead, wrapForWrite, wrapForWrite
addAndGetInt, addAndGetLong, bytesForWrite, charAt, copyTo, getAndAddInt, inside, length, nativePointer, subSequence, toDebugString, wrap, wrap, zeroOut
bytesEqual, copyTo, createCharToString, parseLong, printable, readBoolean, readUnsignedByte, readUnsignedInt, readUnsignedShort
append, write, write, writeBoolean, writeByte, writeUnsignedByte, writeUnsignedInt, writeUnsignedShort
chars, codePoints
inputStream, parseWithLength, read, read, readBoolean, readStopBit, readUnsignedByte, readUnsignedInt, readUnsignedShort, readUTFΔ, readUTFΔ, readWithLength
append, append, append, append, append, append, append8bit, appendDateMillis, appendTimeMillis
outputStream, write, write, writeBoolean, writeStopBit, writeUnsignedByte, writeUnsignedInt, writeUnsignedShort, writeUTFΔ
@NotNull public static NativeBytes<Void> nativeBytes()
@NotNull public static NativeBytes<Void> nativeBytes(long initialCapacity)
public static BytesStore<Bytes<Void>,Void> copyOf(@NotNull Bytes bytes)
public long capacity()
capacity
in interface BytesStore<Bytes<Underlying>,Underlying>
capacity
in class AbstractBytes<Underlying>
protected void writeCheckOffset(long offset, long adding)
public void ensureCapacity(long size)
Bytes
BufferOverflowException
size
- the capacity that you requiredpublic int readVolatileInt(long offset)
public long readVolatileLong(long offset)
public boolean isElastic()
isElastic
in interface Bytes<Underlying>
isElastic
in class VanillaBytes<Underlying>
public long readIncompleteLong(long offset)
@NotNull public Bytes<Underlying> write(byte[] bytes, int offset, int length)
write
in interface StreamingDataOutput<Bytes<Underlying>>
write
in class AbstractBytes<Underlying>
@NotNull public Bytes<Underlying> write(BytesStore bytes, long offset, long length)
write
in interface StreamingDataOutput<Bytes<Underlying>>
write
in class VanillaBytes<Underlying>
@NotNull public String parseUTF(@NotNull StopCharTester stopCharTester)
public void parseUTF(@NotNull Appendable sb, @NotNull StopCharTester stopCharTester)
public void parseUTF(@NotNull Appendable sb, @NotNull StopCharsTester stopCharsTester)
public void parse8bit(Appendable sb, @NotNull StopCharsTester stopCharsTester)
public long parseLong()
public double parseDouble()
public boolean skipTo(@NotNull StopCharTester tester)
public long readRemaining()
public long writeRemaining()
public ByteOrder byteOrder()
Copyright © 2015. All rights reserved.