public class VanillaBytes<Underlying> extends AbstractBytes<Underlying> implements Byteable<Underlying>
bytesStore, readPosition, writeLimit, writePositionMAX_CAPACITYcharToString| Constructor and Description |
|---|
VanillaBytes(BytesStore bytesStore) |
VanillaBytes(BytesStore bytesStore,
long writePosition,
long writeLimit) |
| Modifier and Type | Method and Description |
|---|---|
int |
byteCheckSum() |
default ByteOrder |
byteOrder() |
Bytes<Underlying> |
bytesForRead()
Creates a slice of the current Bytes based on its position() and limit().
|
NativeBytesStore |
bytesStore() |
void |
bytesStore(BytesStore<Bytes<Underlying>,Underlying> byteStore,
long offset,
long length)
This setter for a data type which points to an underlying ByteStore.
|
BytesStore<Bytes<Underlying>,Underlying> |
copy() |
boolean |
equalBytes(BytesStore b,
long remaining) |
boolean |
isElastic() |
long |
maxSize() |
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) |
void |
read8Bit(char[] chars,
int length) |
default long |
readRemaining() |
long |
realCapacity() |
default boolean |
skipTo(StopCharTester tester) |
static VanillaBytes<Void> |
vanillaBytes() |
Bytes<Underlying> |
write(BytesStore bytes,
long offset,
long length) |
default long |
writeRemaining() |
address, capacity, 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, writeSkipelasticByteBuffer, ensureCapacity, expect, expect, from, isClear, safeLimit, toHexString, toHexString, toString, toString, unchecked, wrapForRead, wrapForRead, wrapForWrite, wrapForWriteaddAndGetInt, addAndGetLong, bytesForWrite, charAt, copyTo, getAndAddInt, inside, length, nativePointer, subSequence, toDebugString, wrap, wrap, zeroOutbytesEqual, copyTo, createCharToString, parseLong, printable, readBoolean, readIncompleteLong, readUnsignedByte, readUnsignedInt, readUnsignedShort, readVolatileInt, readVolatileLongappend, write, write, writeBoolean, writeByte, writeUnsignedByte, writeUnsignedInt, writeUnsignedShortclose, releaseAll, tryReservechars, codePointsinputStream, parseWithLength, read, read, readBoolean, readStopBit, readUnsignedByte, readUnsignedInt, readUnsignedShort, readUTFΔ, readUTFΔ, readWithLengthappend, append, append, append, append, append, append, append8bit, appendDateMillis, appendTimeMillisoutputStream, write, write, writeBoolean, writeStopBit, writeUnsignedByte, writeUnsignedInt, writeUnsignedShort, writeUTFΔpublic VanillaBytes(@NotNull
BytesStore bytesStore)
public VanillaBytes(@NotNull
BytesStore bytesStore,
long writePosition,
long writeLimit)
public static VanillaBytes<Void> vanillaBytes()
public void bytesStore(BytesStore<Bytes<Underlying>,Underlying> byteStore, long offset, long length)
ByteablebytesStore in interface Byteable<Underlying>byteStore - the fix point ByteStoreoffset - the offset within the ByteStorelength - the length in the ByteStorepublic long maxSize()
maxSize in interface Byteable<Underlying>public boolean isElastic()
isElastic in interface Bytes<Underlying>public Bytes<Underlying> bytesForRead()
BytesbytesForRead in interface Bytes<Underlying>bytesForRead in interface BytesStore<Bytes<Underlying>,Underlying>public long realCapacity()
realCapacity in interface Bytes<Underlying>realCapacity in interface BytesStore<Bytes<Underlying>,Underlying>realCapacity in class AbstractBytes<Underlying>public BytesStore<Bytes<Underlying>,Underlying> copy()
copy in interface Bytes<Underlying>copy in interface BytesStore<Bytes<Underlying>,Underlying>public Bytes<Underlying> write(BytesStore bytes, long offset, long length)
write in interface StreamingDataOutput<Bytes<Underlying>>public NativeBytesStore bytesStore()
bytesStore in interface BytesStore<Bytes<Underlying>,Underlying>bytesStore in class AbstractBytes<Underlying>public boolean equalBytes(BytesStore b, long remaining)
equalBytes in interface BytesStore<Bytes<Underlying>,Underlying>public void read8Bit(char[] chars,
int length)
public int byteCheckSum()
byteCheckSum in interface BytesStore<Bytes<Underlying>,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.