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(BytesStore bytes,
long offset,
long length) |
void |
write(String str,
int offset,
int length) |
protected void |
writeCheckOffset(long offset,
long adding) |
default long |
writeRemaining() |
byteCheckSum, bytesForRead, bytesStore, bytesStore, copy, equalBytes, maxSize, read8Bit, realCapacity, vanillaBytes
address, clear, compareAndSwapInt, compareAndSwapLong, equals, equalsBytes, finalize, 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, write, writeByte, writeByte, writeDouble, writeDouble, writeFloat, writeFloat, writeInt, writeInt, writeLimit, writeLimit, writeLong, writeLong, writeOffsetPositionMoved, writeOrderedInt, writeOrderedInt, writeOrderedLong, writeOrderedLong, writePosition, writePosition, writeShort, writeShort, writeSkip
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
close, releaseAll, tryReserve
chars, codePoints
inputStream, parseWithLength, read, read, readBoolean, readStopBit, readUnsignedByte, readUnsignedInt, readUnsignedShort, readUTFΔ, readUTFΔ, readWithLength
append, append, append, append, append, append, append, append8bit, appendDateMillis, appendTimeMillis
outputStream, write, write, writeBoolean, writeStopBit, writeUnsignedByte, writeUnsignedInt, writeUnsignedShort, writeUTFΔ
public static NativeBytes<Void> nativeBytes()
public static NativeBytes<Void> nativeBytes(long initialCapacity)
public static BytesStore<Bytes<Void>,Void> copyOf(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 void write(String str, int offset, int length)
public long readIncompleteLong(long offset)
public Bytes<Underlying> write(BytesStore bytes, long offset, long length)
write
in interface StreamingDataOutput<Bytes<Underlying>>
write
in class VanillaBytes<Underlying>
public String parseUTF(StopCharTester stopCharTester)
public void parseUTF(Appendable sb, StopCharTester stopCharTester)
public void parseUTF(Appendable sb, StopCharsTester stopCharsTester)
public void parse8bit(Appendable sb, StopCharsTester stopCharsTester)
public long parseLong()
public double parseDouble()
public boolean skipTo(StopCharTester tester)
public long readRemaining()
public long writeRemaining()
public ByteOrder byteOrder()
Copyright © 2015. All rights reserved.