public interface BytesStore<B extends BytesStore<B,Underlying>,Underlying> extends RandomDataInput, RandomDataOutput<B>, net.openhft.chronicle.core.ReferenceCounted, CharSequence
charToString
Modifier and Type | Method and Description |
---|---|
default int |
addAndGetInt(long offset,
int adding) |
default long |
addAndGetLong(long offset,
long adding) |
long |
address(long offset)
Obtain the underlying address.
|
default int |
byteCheckSum() |
default ByteOrder |
byteOrder() |
default Bytes<Underlying> |
bytesForRead() |
default Bytes<Underlying> |
bytesForWrite() |
default BytesStore |
bytesStore() |
long |
capacity() |
default char |
charAt(int index)
Assume ISO-8859-1 encoding, subclasses can overrride this.
|
boolean |
compareAndSwapInt(long offset,
int expected,
int value) |
boolean |
compareAndSwapLong(long offset,
long expected,
long value) |
BytesStore<B,Underlying> |
copy() |
default void |
copyTo(BytesStore store) |
default boolean |
equalBytes(BytesStore b,
long remaining) |
default int |
getAndAddInt(long offset,
int adding) |
default boolean |
inside(long offset)
Use this test to determine if an offset is considered safe.
|
default boolean |
isClear() |
default int |
length() |
static PointerBytesStore |
nativePointer() |
default long |
readLimit() |
default long |
readPosition() |
default long |
readRemaining() |
default long |
realCapacity() |
default long |
safeLimit() |
default long |
start() |
default CharSequence |
subSequence(int start,
int end) |
default String |
toDebugString() |
Underlying |
underlyingObject() |
static BytesStore |
wrap(byte[] bytes) |
static BytesStore |
wrap(ByteBuffer bb) |
default long |
writeLimit() |
default long |
writePosition() |
default long |
writeRemaining() |
default B |
zeroOut(long start,
long end) |
bytesEqual, copyTo, createCharToString, nativeRead, parseLong, printable, readBoolean, readByte, readDouble, readFloat, readIncompleteLong, readInt, readLong, readShort, readUnsignedByte, readUnsignedInt, readUnsignedShort, readVolatileInt, readVolatileLong
append, nativeWrite, write, write, write, write, write, writeBoolean, writeByte, writeByte, writeDouble, writeFloat, writeInt, writeLong, writeOrderedInt, writeOrderedLong, writeShort, writeUnsignedByte, writeUnsignedInt, writeUnsignedShort
close, refCount, release, releaseAll, reserve, tryReserve
chars, codePoints, toString
static BytesStore wrap(byte[] bytes)
static BytesStore wrap(ByteBuffer bb)
static PointerBytesStore nativePointer()
BytesStore<B,Underlying> copy()
default Bytes<Underlying> bytesForRead()
default Bytes<Underlying> bytesForWrite()
default boolean isClear()
default long realCapacity()
realCapacity
in interface RandomDataInput
long capacity()
Underlying underlyingObject()
default boolean inside(long offset)
default long safeLimit()
default void copyTo(BytesStore store)
default B zeroOut(long start, long end)
zeroOut
in interface RandomDataOutput<B extends BytesStore<B,Underlying>>
boolean compareAndSwapInt(long offset, int expected, int value)
boolean compareAndSwapLong(long offset, long expected, long value)
default int addAndGetInt(long offset, int adding)
default int getAndAddInt(long offset, int adding)
default long addAndGetLong(long offset, long adding)
default int length()
length
in interface CharSequence
default char charAt(int index)
charAt
in interface CharSequence
default CharSequence subSequence(int start, int end)
subSequence
in interface CharSequence
default String toDebugString()
default BytesStore bytesStore()
default boolean equalBytes(BytesStore b, long remaining)
default int byteCheckSum()
default long start()
default long readPosition()
default long writePosition()
default long readRemaining()
default long writeRemaining()
default long readLimit()
default long writeLimit()
long address(long offset) throws UnsupportedOperationException
offset
- within this buffer. address(start()) is the actual address of the first byte.UnsupportedOperationException
- if the underlying buffer is on the heapdefault ByteOrder byteOrder()
Copyright © 2015. All rights reserved.