public class VanillaBytes<Underlying> extends AbstractBytes<Underlying> implements Byteable<Underlying>
bytesStore, readPosition, writeLimit, writePosition
MAX_CAPACITY
charToString
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 void |
parse8bit(Appendable sb,
StopCharTester stopCharTester) |
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(long position,
String str,
int offset,
int 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, writeSkip
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
allocateDirect, allocateElasticDirect, allocateElasticDirect, elasticByteBuffer, ensureCapacity, 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, readIncompleteLong, readUnsignedByte, readUnsignedInt, readUnsignedShort, readVolatileInt, readVolatileLong
append, write, write, writeBoolean, writeByte, writeUnsignedByte, writeUnsignedInt, writeUnsignedShort
chars, codePoints
inputStream, parseWithLength, read, read, read, read8bit, read8bit, read8bit, read8bit, readBoolean, readEnum, readStopBit, readStopBitDouble, readUnsignedByte, readUnsignedInt, readUnsignedShort, readUTFΔ, readUTFΔ, readWithLength
append, append, append, append, append, append, append8bit, appendDateMillis, appendTimeMillis
outputStream, write, write, write8bit, write8bit, writeBoolean, writeEnum, writeStopBit, 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)
Byteable
bytesStore
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()
Bytes
bytesForRead
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 RandomDataInput
realCapacity
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)
public void write(long position, @NotNull String str, int offset, int length)
@NotNull public VanillaBytes append(CharSequence str, int start, int end)
append
in interface Appendable
append
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 StopCharTester stopCharTester)
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.