public final class EndiannessUtil extends Object
ByteAccessStrategy
.Modifier and Type | Field and Description |
---|---|
static ByteAccessStrategy<byte[]> |
BYTE_ARRAY_ACCESS
Accesses bytes in a Java byte array
|
static ByteAccessStrategy<MemoryAccessor> |
CUSTOM_ACCESS |
static ByteAccessStrategy<Object> |
NATIVE_ACCESS
Accesses bytes in CPU's native address space
|
Modifier and Type | Method and Description |
---|---|
static <R> char |
readChar(ByteAccessStrategy<R> strategy,
R resource,
long offset,
boolean useBigEndian) |
static <R> char |
readCharB(ByteAccessStrategy<R> strategy,
R resource,
long offset) |
static <R> char |
readCharL(ByteAccessStrategy<R> strategy,
R resource,
long offset) |
static <R> double |
readDouble(ByteAccessStrategy<R> strategy,
R resource,
long offset,
boolean useBigEndian) |
static <R> double |
readDoubleB(ByteAccessStrategy<R> strategy,
R resource,
long offset) |
static <R> double |
readDoubleL(ByteAccessStrategy<R> strategy,
R resource,
long offset) |
static <R> float |
readFloat(ByteAccessStrategy<R> strategy,
R resource,
long offset,
boolean useBigEndian) |
static <R> float |
readFloatB(ByteAccessStrategy<R> strategy,
R resource,
long offset) |
static <R> float |
readFloatL(ByteAccessStrategy<R> strategy,
R resource,
long offset) |
static <R> int |
readInt(ByteAccessStrategy<R> strategy,
R resource,
long offset,
boolean useBigEndian) |
static <R> int |
readIntB(ByteAccessStrategy<R> strategy,
R resource,
long offset) |
static <R> int |
readIntL(ByteAccessStrategy<R> strategy,
R resource,
long offset) |
static <R> long |
readLong(ByteAccessStrategy<R> strategy,
R resource,
long offset,
boolean useBigEndian) |
static <R> long |
readLongB(ByteAccessStrategy<R> strategy,
R resource,
long offset) |
static <R> long |
readLongL(ByteAccessStrategy<R> strategy,
R resource,
long offset) |
static <R> short |
readShort(ByteAccessStrategy<R> strategy,
R resource,
long offset,
boolean useBigEndian) |
static <R> short |
readShortB(ByteAccessStrategy<R> strategy,
R resource,
long offset) |
static <R> short |
readShortL(ByteAccessStrategy<R> strategy,
R resource,
long offset) |
static int |
readUtf8Char(byte[] buffer,
int pos,
char[] dst,
int dstPos) |
static char |
readUtf8Char(DataInput in,
byte firstByte) |
static <R> void |
writeChar(ByteAccessStrategy<R> strategy,
R resource,
long offset,
char v,
boolean useBigEndian) |
static <R> void |
writeCharB(ByteAccessStrategy<R> strategy,
R resource,
long offset,
char v) |
static <R> void |
writeCharL(ByteAccessStrategy<R> strategy,
R resource,
long offset,
char v) |
static <R> void |
writeDouble(ByteAccessStrategy<R> strategy,
R resource,
long offset,
double v,
boolean useBigEndian) |
static <R> void |
writeDoubleB(ByteAccessStrategy<R> memoryAccessStrategy,
R resource,
long offset,
double v) |
static <R> void |
writeDoubleL(ByteAccessStrategy<R> memoryAccessStrategy,
R resource,
long offset,
double v) |
static <R> void |
writeFloat(ByteAccessStrategy<R> strategy,
R resource,
long offset,
float v,
boolean useBigEndian) |
static <R> void |
writeFloatB(ByteAccessStrategy<R> strategy,
R resource,
long offset,
float v) |
static <R> void |
writeFloatL(ByteAccessStrategy<R> strategy,
R resource,
long offset,
float v) |
static <R> void |
writeInt(ByteAccessStrategy<R> strategy,
R resource,
long offset,
int v,
boolean useBigEndian) |
static <R> void |
writeIntB(ByteAccessStrategy<R> strategy,
R resource,
long offset,
int v) |
static <R> void |
writeIntL(ByteAccessStrategy<R> strategy,
R resource,
long offset,
int v) |
static <R> void |
writeLong(ByteAccessStrategy<R> strategy,
R resource,
long offset,
long v,
boolean useBigEndian) |
static <R> void |
writeLongB(ByteAccessStrategy<R> strategy,
R resource,
long offset,
long v) |
static <R> void |
writeLongL(ByteAccessStrategy<R> strategy,
R resource,
long offset,
long v) |
static <R> void |
writeShort(ByteAccessStrategy<R> strategy,
R resource,
long offset,
short v,
boolean useBigEndian) |
static <R> void |
writeShortB(ByteAccessStrategy<R> strategy,
R resource,
long offset,
short v) |
static <R> void |
writeShortL(ByteAccessStrategy<R> strategy,
R resource,
long offset,
short v) |
static <R> int |
writeUtf8Char(ByteAccessStrategy<R> strategy,
R resource,
long pos,
int c) |
public static final ByteAccessStrategy<byte[]> BYTE_ARRAY_ACCESS
public static final ByteAccessStrategy<Object> NATIVE_ACCESS
public static final ByteAccessStrategy<MemoryAccessor> CUSTOM_ACCESS
public static <R> char readChar(ByteAccessStrategy<R> strategy, R resource, long offset, boolean useBigEndian)
public static <R> char readCharB(ByteAccessStrategy<R> strategy, R resource, long offset)
public static <R> char readCharL(ByteAccessStrategy<R> strategy, R resource, long offset)
public static <R> void writeChar(ByteAccessStrategy<R> strategy, R resource, long offset, char v, boolean useBigEndian)
public static <R> void writeCharB(ByteAccessStrategy<R> strategy, R resource, long offset, char v)
public static <R> void writeCharL(ByteAccessStrategy<R> strategy, R resource, long offset, char v)
public static <R> short readShort(ByteAccessStrategy<R> strategy, R resource, long offset, boolean useBigEndian)
public static <R> short readShortB(ByteAccessStrategy<R> strategy, R resource, long offset)
public static <R> short readShortL(ByteAccessStrategy<R> strategy, R resource, long offset)
public static <R> void writeShort(ByteAccessStrategy<R> strategy, R resource, long offset, short v, boolean useBigEndian)
public static <R> void writeShortB(ByteAccessStrategy<R> strategy, R resource, long offset, short v)
public static <R> void writeShortL(ByteAccessStrategy<R> strategy, R resource, long offset, short v)
public static <R> int readInt(ByteAccessStrategy<R> strategy, R resource, long offset, boolean useBigEndian)
public static <R> int readIntB(ByteAccessStrategy<R> strategy, R resource, long offset)
public static <R> int readIntL(ByteAccessStrategy<R> strategy, R resource, long offset)
public static <R> void writeInt(ByteAccessStrategy<R> strategy, R resource, long offset, int v, boolean useBigEndian)
public static <R> void writeIntB(ByteAccessStrategy<R> strategy, R resource, long offset, int v)
public static <R> void writeIntL(ByteAccessStrategy<R> strategy, R resource, long offset, int v)
public static <R> float readFloat(ByteAccessStrategy<R> strategy, R resource, long offset, boolean useBigEndian)
public static <R> float readFloatB(ByteAccessStrategy<R> strategy, R resource, long offset)
public static <R> float readFloatL(ByteAccessStrategy<R> strategy, R resource, long offset)
public static <R> void writeFloat(ByteAccessStrategy<R> strategy, R resource, long offset, float v, boolean useBigEndian)
public static <R> void writeFloatB(ByteAccessStrategy<R> strategy, R resource, long offset, float v)
public static <R> void writeFloatL(ByteAccessStrategy<R> strategy, R resource, long offset, float v)
public static <R> long readLong(ByteAccessStrategy<R> strategy, R resource, long offset, boolean useBigEndian)
public static <R> long readLongB(ByteAccessStrategy<R> strategy, R resource, long offset)
public static <R> long readLongL(ByteAccessStrategy<R> strategy, R resource, long offset)
public static <R> void writeLong(ByteAccessStrategy<R> strategy, R resource, long offset, long v, boolean useBigEndian)
public static <R> void writeLongB(ByteAccessStrategy<R> strategy, R resource, long offset, long v)
public static <R> void writeLongL(ByteAccessStrategy<R> strategy, R resource, long offset, long v)
public static <R> double readDouble(ByteAccessStrategy<R> strategy, R resource, long offset, boolean useBigEndian)
public static <R> double readDoubleB(ByteAccessStrategy<R> strategy, R resource, long offset)
public static <R> double readDoubleL(ByteAccessStrategy<R> strategy, R resource, long offset)
public static <R> void writeDouble(ByteAccessStrategy<R> strategy, R resource, long offset, double v, boolean useBigEndian)
public static <R> void writeDoubleB(ByteAccessStrategy<R> memoryAccessStrategy, R resource, long offset, double v)
public static <R> void writeDoubleL(ByteAccessStrategy<R> memoryAccessStrategy, R resource, long offset, double v)
public static <R> int writeUtf8Char(ByteAccessStrategy<R> strategy, R resource, long pos, int c)
public static char readUtf8Char(DataInput in, byte firstByte) throws IOException
IOException
public static int readUtf8Char(byte[] buffer, int pos, char[] dst, int dstPos) throws IOException
IOException
Copyright © 2020 Hazelcast, Inc.. All Rights Reserved.