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 |
|---|---|
VanillaBytes |
append(CharSequence str,
int start,
int end) |
int |
byteCheckSum() |
default ByteOrder |
byteOrder() |
Bytes<Underlying> |
bytesForRead()
Creates a slice of the current Bytes based on its position() and limit().
|
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) |
void |
write(String str,
int offset,
int length) |
default long |
writeRemaining() |
address, bytesStore, capacity, 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, write, writeByte, writeByte, writeDouble, writeDouble, writeFloat, writeFloat, writeInt, writeInt, writeLimit, writeLimit, writeLong, writeLong, writeOffsetPositionMoved, writeOrderedInt, writeOrderedInt, writeOrderedLong, writeOrderedLong, writePosition, writePosition, writeShort, writeShort, writeSkipclone, finalize, getClass, notify, notifyAll, wait, wait, waitallocateDirect, allocateElasticDirect, allocateElasticDirect, elasticByteBuffer, 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, writeUnsignedShortchars, codePointsinputStream, parseWithLength, read, read, readBoolean, readStopBit, readUnsignedByte, readUnsignedInt, readUnsignedShort, readUTFΔ, readUTFΔ, readWithLengthappend, 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)
@NotNull public static VanillaBytes<Void> vanillaBytes()
public void bytesStore(@NotNull
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>@NotNull 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 interface RandomDataInputrealCapacity in class AbstractBytes<Underlying>@NotNull public BytesStore<Bytes<Underlying>,Underlying> copy()
copy in interface Bytes<Underlying>copy in interface BytesStore<Bytes<Underlying>,Underlying>@NotNull public Bytes<Underlying> write(@NotNull BytesStore bytes, long offset, long length)
write in interface StreamingDataOutput<Bytes<Underlying>>public void write(@NotNull
String str,
int offset,
int length)
@NotNull public VanillaBytes append(CharSequence str, int start, int end)
append in interface Appendableappend in interface ByteStringAppender<Bytes<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>@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.