public interface Access<T> extends ReadAccess<T>
| Modifier and Type | Method and Description |
|---|---|
ByteOrder |
byteOrder(T handle) |
static Access<ByteBuffer> |
checkedByteBufferAccess() |
static <B extends net.openhft.chronicle.bytes.BytesStore<B,U>,U> |
checkedBytesStoreAccess() |
static ReadAccess<net.openhft.chronicle.bytes.RandomDataInput> |
checkedRandomDataInputAccess() |
boolean |
compareAndSwapInt(T handle,
long offset,
int expected,
int value)
Default implementation: throws
UnsupportedOperationException. |
boolean |
compareAndSwapLong(T handle,
long offset,
long expected,
long value)
Default implementation: throws
UnsupportedOperationException. |
static <S,T> void |
copy(ReadAccess<S> sourceAccess,
S source,
long sourceOffset,
net.openhft.chronicle.algo.bytes.WriteAccess<T> targetAccess,
T target,
long targetOffset,
long len) |
static <T,U> boolean |
equivalent(ReadAccess<T> access1,
T handle1,
long offset1,
ReadAccess<U> access2,
U handle2,
long offset2,
long len) |
static <T> Access<T> |
nativeAccess() |
default void |
writeBoolean(T handle,
long offset,
boolean flag) |
void |
writeByte(T handle,
long offset,
byte i8) |
default void |
writeByte(T handle,
long offset,
int i) |
default void |
writeBytes(T handle,
long offset,
long len,
byte b) |
default void |
writeChar(T handle,
long offset,
char c) |
void |
writeDouble(T handle,
long offset,
double d) |
void |
writeFloat(T handle,
long offset,
float d) |
default <S> void |
writeFrom(T handle,
long offset,
ReadAccess<S> sourceAccess,
S source,
long sourceOffset,
long len)
|
void |
writeInt(T handle,
long offset,
int i) |
void |
writeLong(T handle,
long offset,
long i) |
default void |
writeOrderedInt(T handle,
long offset,
int i)
Default implementation: throws
UnsupportedOperationException. |
default void |
writeOrderedLong(T handle,
long offset,
long i)
Default implementation: throws
UnsupportedOperationException. |
void |
writeShort(T handle,
long offset,
short i) |
default void |
writeUnsignedByte(T handle,
long offset,
int i) |
default void |
writeUnsignedInt(T handle,
long offset,
long i) |
default void |
writeUnsignedShort(T handle,
long offset,
int i) |
default void |
zeroOut(T handle,
long offset,
long len) |
compareTo, printable, readBoolean, readByte, readChar, readDouble, readFloat, readInt, readLong, readShort, readUnsignedByte, readUnsignedInt, readUnsignedShort, readVolatileInt, readVolatileLong, zerosstatic <T> Access<T> nativeAccess()
static Access<ByteBuffer> checkedByteBufferAccess()
static <B extends net.openhft.chronicle.bytes.BytesStore<B,U>,U> Access<B> checkedBytesStoreAccess()
static ReadAccess<net.openhft.chronicle.bytes.RandomDataInput> checkedRandomDataInputAccess()
static <S,T> void copy(ReadAccess<S> sourceAccess, S source, long sourceOffset, net.openhft.chronicle.algo.bytes.WriteAccess<T> targetAccess, T target, long targetOffset, long len)
static <T,U> boolean equivalent(ReadAccess<T> access1, T handle1, long offset1, ReadAccess<U> access2, U handle2, long offset2, long len)
boolean compareAndSwapInt(T handle, long offset, int expected, int value)
UnsupportedOperationException.boolean compareAndSwapLong(T handle, long offset, long expected, long value)
UnsupportedOperationException.default void writeByte(T handle,
long offset,
int i)
default void writeUnsignedByte(T handle,
long offset,
int i)
default void writeBoolean(T handle,
long offset,
boolean flag)
default void writeUnsignedShort(T handle,
long offset,
int i)
default void writeChar(T handle,
long offset,
char c)
default void writeUnsignedInt(T handle,
long offset,
long i)
void writeByte(T handle,
long offset,
byte i8)
void writeShort(T handle,
long offset,
short i)
void writeInt(T handle,
long offset,
int i)
default void writeOrderedInt(T handle,
long offset,
int i)
UnsupportedOperationException.void writeLong(T handle,
long offset,
long i)
default void writeOrderedLong(T handle,
long offset,
long i)
UnsupportedOperationException.void writeFloat(T handle,
long offset,
float d)
void writeDouble(T handle,
long offset,
double d)
default <S> void writeFrom(T handle,
long offset,
ReadAccess<S> sourceAccess,
S source,
long sourceOffset,
long len)
default void writeBytes(T handle,
long offset,
long len,
byte b)
default void zeroOut(T handle,
long offset,
long len)
ByteOrder byteOrder(T handle)
Copyright © 2022. All rights reserved.