public enum NoBytesStore extends Enum<NoBytesStore> implements BytesStore
| Enum Constant and Description |
|---|
NO_BYTES_STORE |
| Modifier and Type | Field and Description |
|---|---|
static Bytes |
NO_BYTES |
static long |
NO_PAGE |
charToString| Modifier and Type | Method and Description |
|---|---|
long |
address(long offset)
Obtain the underlying address.
|
default ByteOrder |
byteOrder() |
Bytes |
bytesForWrite() |
long |
capacity() |
boolean |
compareAndSwapInt(long offset,
int expected,
int value) |
boolean |
compareAndSwapLong(long offset,
long expected,
long value) |
BytesStore |
copy() |
void |
copyTo(BytesStore store) |
boolean |
equalBytes(BytesStore b,
long remaining) |
boolean |
inside(long offset)
Use this test to determine if an offset is considered safe.
|
void |
nativeRead(long position,
long address,
long size)
expert level method for copying data to native memory.
|
void |
nativeWrite(long address,
long position,
long size)
expert level method to copy data from native memory into the BytesStore
|
static <T,B extends BytesStore<B,T>> |
noBytesStore() |
byte |
readByte(long offset) |
double |
readDouble(long offset) |
float |
readFloat(long offset) |
int |
readInt(long offset) |
default long |
readLimit() |
long |
readLong(long offset) |
default long |
readPosition() |
default long |
readRemaining() |
short |
readShort(long offset) |
long |
refCount() |
void |
release() |
void |
reserve() |
default long |
start() |
Void |
underlyingObject() |
static NoBytesStore |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NoBytesStore[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
RandomDataOutput |
write(long offsetInRDO,
byte[] bytes,
int offset,
int length) |
void |
write(long offsetInRDO,
ByteBuffer bytes,
int offset,
int length) |
RandomDataOutput |
write(long offsetInRDO,
RandomDataInput bytes,
long offset,
long length) |
RandomDataOutput |
writeByte(long offset,
byte i8) |
RandomDataOutput |
writeDouble(long offset,
double d) |
RandomDataOutput |
writeFloat(long offset,
float d) |
RandomDataOutput |
writeInt(long offset,
int i) |
default long |
writeLimit() |
RandomDataOutput |
writeLong(long offset,
long i) |
RandomDataOutput |
writeOrderedInt(long offset,
int i) |
RandomDataOutput |
writeOrderedLong(long offset,
long i) |
default long |
writePosition() |
default long |
writeRemaining() |
RandomDataOutput |
writeShort(long offset,
short i) |
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfgetClass, notify, notifyAll, toString, wait, wait, waitaddAndGetInt, addAndGetLong, byteCheckSum, bytesForRead, bytesStore, charAt, getAndAddInt, isClear, length, nativePointer, realCapacity, safeLimit, subSequence, toDebugString, wrap, wrap, zeroOutbytesEqual, copyTo, createCharToString, parseLong, printable, readBoolean, readIncompleteLong, readUnsignedByte, readUnsignedInt, readUnsignedShort, readVolatileInt, readVolatileLongappend, write, write, writeBoolean, writeByte, writeUnsignedByte, writeUnsignedInt, writeUnsignedShortclose, release, releaseAll, tryReservechars, codePoints, toStringpublic static final NoBytesStore NO_BYTES_STORE
public static final long NO_PAGE
public static final Bytes NO_BYTES
public static NoBytesStore[] values()
for (NoBytesStore c : NoBytesStore.values()) System.out.println(c);
public static NoBytesStore valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is null@NotNull public static <T,B extends BytesStore<B,T>> BytesStore<B,T> noBytesStore()
public void reserve()
throws IllegalStateException
reserve in interface net.openhft.chronicle.core.ReferenceCountedIllegalStateExceptionpublic void release()
throws IllegalStateException
release in interface net.openhft.chronicle.core.ReferenceCountedIllegalStateExceptionpublic long refCount()
refCount in interface net.openhft.chronicle.core.ReferenceCounted@NotNull public RandomDataOutput writeByte(long offset, byte i8)
writeByte in interface RandomDataOutput@NotNull public RandomDataOutput writeShort(long offset, short i)
writeShort in interface RandomDataOutput@NotNull public RandomDataOutput writeInt(long offset, int i)
writeInt in interface RandomDataOutput@NotNull public RandomDataOutput writeOrderedInt(long offset, int i)
writeOrderedInt in interface RandomDataOutput@NotNull public RandomDataOutput writeLong(long offset, long i)
writeLong in interface RandomDataOutput@NotNull public RandomDataOutput writeOrderedLong(long offset, long i)
writeOrderedLong in interface RandomDataOutput@NotNull public RandomDataOutput writeFloat(long offset, float d)
writeFloat in interface RandomDataOutput@NotNull public RandomDataOutput writeDouble(long offset, double d)
writeDouble in interface RandomDataOutput@NotNull public RandomDataOutput write(long offsetInRDO, byte[] bytes, int offset, int length)
write in interface RandomDataOutputpublic void write(long offsetInRDO,
ByteBuffer bytes,
int offset,
int length)
write in interface RandomDataOutput@NotNull public RandomDataOutput write(long offsetInRDO, RandomDataInput bytes, long offset, long length)
write in interface RandomDataOutputpublic byte readByte(long offset)
readByte in interface RandomDataInputpublic short readShort(long offset)
readShort in interface RandomDataInputpublic int readInt(long offset)
readInt in interface RandomDataInputpublic long readLong(long offset)
readLong in interface RandomDataInputpublic float readFloat(long offset)
readFloat in interface RandomDataInputpublic double readDouble(long offset)
readDouble in interface RandomDataInput@NotNull public BytesStore copy()
copy in interface BytesStorepublic long capacity()
capacity in interface BytesStorepublic Void underlyingObject()
underlyingObject in interface BytesStorepublic boolean inside(long offset)
BytesStoreinside in interface BytesStorepublic void copyTo(BytesStore store)
copyTo in interface BytesStorepublic void nativeWrite(long address,
long position,
long size)
RandomDataOutputnativeWrite in interface RandomDataOutputaddress - in native memory to copy fromposition - in BytesStore to copy tosize - in bytespublic void nativeRead(long position,
long address,
long size)
RandomDataInputnativeRead in interface RandomDataInputposition - within the ByteStore to copy.address - in native memorysize - in bytespublic boolean compareAndSwapInt(long offset,
int expected,
int value)
compareAndSwapInt in interface BytesStorepublic boolean compareAndSwapLong(long offset,
long expected,
long value)
compareAndSwapLong in interface BytesStorepublic boolean equalBytes(BytesStore b, long remaining)
equalBytes in interface BytesStorepublic 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 heap@NotNull public Bytes bytesForWrite()
bytesForWrite in interface BytesStorepublic long start()
public long readPosition()
public long writePosition()
public long readRemaining()
public long writeRemaining()
public long readLimit()
public long writeLimit()
public ByteOrder byteOrder()
Copyright © 2015. All rights reserved.