public enum ZeroBytesStore extends Enum<ZeroBytesStore> implements net.openhft.chronicle.bytes.BytesStore<ZeroBytesStore,Void>
Enum Constant and Description |
---|
INSTANCE |
Modifier and Type | Method and Description |
---|---|
long |
addressForRead(long offset) |
default long |
addressForRead(long arg0,
int arg1) |
long |
addressForWrite(long offset) |
long |
addressForWritePosition() |
default ByteOrder |
byteOrder() |
long |
capacity() |
default boolean |
compareAndSwapDouble(long arg0,
double arg1,
double arg2) |
default boolean |
compareAndSwapFloat(long arg0,
float arg1,
float arg2) |
boolean |
compareAndSwapInt(long offset,
int expected,
int value) |
boolean |
compareAndSwapLong(long offset,
long expected,
long value) |
ZeroBytesStore |
copy() |
boolean |
isDirectMemory() |
void |
move(long from,
long to,
long length) |
void |
nativeRead(long position,
long address,
long size) |
void |
nativeWrite(long l,
long l1,
long l2) |
int |
peekUnsignedByte(long offset) |
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) |
byte |
readVolatileByte(long offset) |
int |
readVolatileInt(long offset) |
long |
readVolatileLong(long offset) |
short |
readVolatileShort(long offset) |
default long |
realReadRemaining() |
default long |
realWriteRemaining() |
int |
refCount() |
void |
release(net.openhft.chronicle.core.io.ReferenceOwner id) |
void |
releaseLast(net.openhft.chronicle.core.io.ReferenceOwner id) |
void |
reserve(net.openhft.chronicle.core.io.ReferenceOwner id) |
boolean |
reservedBy(net.openhft.chronicle.core.io.ReferenceOwner owner) |
boolean |
sharedMemory() |
default long |
start() |
void |
testAndSetInt(long offset,
int expected,
int value) |
boolean |
tryReserve(net.openhft.chronicle.core.io.ReferenceOwner id) |
Void |
underlyingObject() |
static ZeroBytesStore |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ZeroBytesStore[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
ZeroBytesStore |
write(long l,
byte[] bytes,
int i,
int i1) |
void |
write(long l,
ByteBuffer byteBuffer,
int i,
int i1) |
ZeroBytesStore |
write(long l,
net.openhft.chronicle.bytes.RandomDataInput randomDataInput,
long l1,
long l2) |
long |
write8bit(long position,
net.openhft.chronicle.bytes.BytesStore bs) |
long |
write8bit(long position,
String s,
int start,
int length) |
ZeroBytesStore |
writeByte(long l,
byte b) |
ZeroBytesStore |
writeDouble(long l,
double v) |
ZeroBytesStore |
writeFloat(long l,
float v) |
ZeroBytesStore |
writeInt(long l,
int i) |
default long |
writeLimit() |
ZeroBytesStore |
writeLong(long l,
long l1) |
ZeroBytesStore |
writeOrderedInt(long l,
int i) |
ZeroBytesStore |
writeOrderedLong(long l,
long l1) |
default long |
writePosition() |
default long |
writeRemaining() |
ZeroBytesStore |
writeShort(long l,
short i) |
ZeroBytesStore |
writeVolatileByte(long l,
byte b) |
ZeroBytesStore |
writeVolatileInt(long l,
int i) |
ZeroBytesStore |
writeVolatileLong(long l,
long l1) |
ZeroBytesStore |
writeVolatileShort(long l,
short i) |
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
addAndGetDoubleNotAtomic, addAndGetFloatNotAtomic, addAndGetIntNotAtomic, addAndGetShortNotAtomic, addAndGetUnsignedByteNotAtomic, byteCheckSum, byteCheckSum, bytesForRead, bytesForWrite, bytesStore, charAt, cipher, cipher, contentEquals, copyTo, copyTo, elasticByteBuffer, empty, endsWith, equalBytes, forFields, from, from, from, hash, inside, inside, isClear, isEmpty, isEqual, lazyNativeBytesStoreWithFixedCapacity, length, nativePointer, nativeStore, nativeStoreFrom, nativeStoreWithFixedCapacity, readWrite, realCapacity, safeLimit, startsWith, startsWith, subSequence, to8bitString, toDebugString, toDebugString, wrap, wrap, wrap, writeMaxInt, writeMaxLong, zeroOut
addAndGetDouble, addAndGetFloat, addAndGetInt, addAndGetLong, canReadDirect, compareUtf8, copyTo, copyTo, createCharToString, fastHash, findByte, parseLong, peekVolatileInt, printable, read, readBoolean, readIncompleteLong, readUnsignedByte, readUnsignedInt, readUnsignedInt24, readUnsignedShort, readUtf8, readUtf8Limited, readUtf8Limited, readVolatileDouble, readVolatileFloat, subBytes, toByteArray, toTemporaryDirectByteBuffer
append, append, write, write, writeBoolean, writeByte, writeInt24, writeOrderedDouble, writeOrderedFloat, writeUnsignedByte, writeUnsignedInt, writeUnsignedShort, writeUtf8, writeUtf8Limited, writeVolatileDouble, writeVolatileFloat
releaseLast, reserveTransfer
referenceId, referenceName, temporary
chars, codePoints, toString
public static final ZeroBytesStore INSTANCE
public static ZeroBytesStore[] values()
for (ZeroBytesStore c : ZeroBytesStore.values()) System.out.println(c);
public static ZeroBytesStore 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 nullpublic long addressForWrite(long offset) throws UnsupportedOperationException, BufferOverflowException
public long addressForWritePosition() throws UnsupportedOperationException, BufferOverflowException
public int peekUnsignedByte(long offset)
peekUnsignedByte
in interface net.openhft.chronicle.bytes.RandomDataInput
public byte readVolatileByte(long offset)
readVolatileByte
in interface net.openhft.chronicle.bytes.RandomDataInput
public short readVolatileShort(long offset)
readVolatileShort
in interface net.openhft.chronicle.bytes.RandomDataInput
public int readVolatileInt(long offset)
readVolatileInt
in interface net.openhft.chronicle.bytes.RandomDataInput
public long readVolatileLong(long offset)
readVolatileLong
in interface net.openhft.chronicle.bytes.RandomDataInput
public boolean isDirectMemory()
isDirectMemory
in interface net.openhft.chronicle.bytes.BytesStore<ZeroBytesStore,Void>
public byte readByte(long offset)
readByte
in interface net.openhft.chronicle.bytes.RandomDataInput
public short readShort(long offset)
readShort
in interface net.openhft.chronicle.bytes.RandomDataInput
public int readInt(long offset)
readInt
in interface net.openhft.chronicle.bytes.RandomDataInput
public long readLong(long offset)
readLong
in interface net.openhft.chronicle.bytes.RandomDataInput
public float readFloat(long offset)
readFloat
in interface net.openhft.chronicle.bytes.RandomDataInput
public double readDouble(long offset)
readDouble
in interface net.openhft.chronicle.bytes.RandomDataInput
public void nativeRead(long position, long address, long size)
nativeRead
in interface net.openhft.chronicle.bytes.RandomDataInput
public boolean sharedMemory()
public ZeroBytesStore copy()
copy
in interface net.openhft.chronicle.bytes.BytesStore<ZeroBytesStore,Void>
public long capacity()
capacity
in interface net.openhft.chronicle.bytes.BytesStore<ZeroBytesStore,Void>
@Nullable public Void underlyingObject()
underlyingObject
in interface net.openhft.chronicle.bytes.BytesStore<ZeroBytesStore,Void>
public void move(long from, long to, long length)
move
in interface net.openhft.chronicle.bytes.BytesStore<ZeroBytesStore,Void>
public long addressForRead(long offset)
public boolean compareAndSwapInt(long offset, int expected, int value)
public void testAndSetInt(long offset, int expected, int value)
public boolean compareAndSwapLong(long offset, long expected, long value)
public void reserve(net.openhft.chronicle.core.io.ReferenceOwner id) throws IllegalStateException
reserve
in interface net.openhft.chronicle.core.io.ReferenceCounted
IllegalStateException
public boolean tryReserve(net.openhft.chronicle.core.io.ReferenceOwner id) throws IllegalStateException
tryReserve
in interface net.openhft.chronicle.core.io.ReferenceCounted
IllegalStateException
public boolean reservedBy(net.openhft.chronicle.core.io.ReferenceOwner owner)
reservedBy
in interface net.openhft.chronicle.core.io.ReferenceCounted
public void release(net.openhft.chronicle.core.io.ReferenceOwner id) throws IllegalStateException
release
in interface net.openhft.chronicle.core.io.ReferenceCounted
IllegalStateException
public void releaseLast(net.openhft.chronicle.core.io.ReferenceOwner id) throws IllegalStateException
releaseLast
in interface net.openhft.chronicle.core.io.ReferenceCounted
IllegalStateException
public int refCount()
refCount
in interface net.openhft.chronicle.core.io.ReferenceCounted
@NotNull public ZeroBytesStore writeByte(long l, byte b)
writeByte
in interface net.openhft.chronicle.bytes.RandomDataOutput<ZeroBytesStore>
@NotNull public ZeroBytesStore writeShort(long l, short i)
writeShort
in interface net.openhft.chronicle.bytes.RandomDataOutput<ZeroBytesStore>
@NotNull public ZeroBytesStore writeInt(long l, int i)
writeInt
in interface net.openhft.chronicle.bytes.RandomDataOutput<ZeroBytesStore>
@NotNull public ZeroBytesStore writeOrderedInt(long l, int i)
writeOrderedInt
in interface net.openhft.chronicle.bytes.RandomDataOutput<ZeroBytesStore>
@NotNull public ZeroBytesStore writeLong(long l, long l1)
writeLong
in interface net.openhft.chronicle.bytes.RandomDataOutput<ZeroBytesStore>
@NotNull public ZeroBytesStore writeOrderedLong(long l, long l1)
writeOrderedLong
in interface net.openhft.chronicle.bytes.RandomDataOutput<ZeroBytesStore>
@NotNull public ZeroBytesStore writeFloat(long l, float v)
writeFloat
in interface net.openhft.chronicle.bytes.RandomDataOutput<ZeroBytesStore>
@NotNull public ZeroBytesStore writeDouble(long l, double v)
writeDouble
in interface net.openhft.chronicle.bytes.RandomDataOutput<ZeroBytesStore>
@NotNull public ZeroBytesStore writeVolatileByte(long l, byte b)
writeVolatileByte
in interface net.openhft.chronicle.bytes.RandomDataOutput<ZeroBytesStore>
@NotNull public ZeroBytesStore writeVolatileShort(long l, short i)
writeVolatileShort
in interface net.openhft.chronicle.bytes.RandomDataOutput<ZeroBytesStore>
@NotNull public ZeroBytesStore writeVolatileInt(long l, int i)
writeVolatileInt
in interface net.openhft.chronicle.bytes.RandomDataOutput<ZeroBytesStore>
@NotNull public ZeroBytesStore writeVolatileLong(long l, long l1)
writeVolatileLong
in interface net.openhft.chronicle.bytes.RandomDataOutput<ZeroBytesStore>
@NotNull public ZeroBytesStore write(long l, byte[] bytes, int i, int i1)
write
in interface net.openhft.chronicle.bytes.RandomDataOutput<ZeroBytesStore>
public void write(long l, ByteBuffer byteBuffer, int i, int i1)
write
in interface net.openhft.chronicle.bytes.RandomDataOutput<ZeroBytesStore>
@NotNull public ZeroBytesStore write(long l, net.openhft.chronicle.bytes.RandomDataInput randomDataInput, long l1, long l2)
write
in interface net.openhft.chronicle.bytes.RandomDataOutput<ZeroBytesStore>
public void nativeWrite(long l, long l1, long l2)
nativeWrite
in interface net.openhft.chronicle.bytes.RandomDataOutput<ZeroBytesStore>
public long write8bit(long position, net.openhft.chronicle.bytes.BytesStore bs)
write8bit
in interface net.openhft.chronicle.bytes.RandomDataOutput<ZeroBytesStore>
public long write8bit(long position, String s, int start, int length)
write8bit
in interface net.openhft.chronicle.bytes.RandomDataOutput<ZeroBytesStore>
public long start()
public long readPosition()
public long writePosition()
public long readRemaining()
public long realReadRemaining()
public long writeRemaining()
public long realWriteRemaining()
public long readLimit()
public long writeLimit()
public long addressForRead(long arg0, int arg1) throws UnsupportedOperationException, BufferUnderflowException, IllegalStateException
public ByteOrder byteOrder()
public boolean compareAndSwapFloat(long arg0, float arg1, float arg2) throws BufferOverflowException, IllegalStateException
public boolean compareAndSwapDouble(long arg0, double arg1, double arg2) throws BufferOverflowException, IllegalStateException
Copyright © 2022. All rights reserved.