public abstract class BinaryPrimitives extends Object
Constructor and Description |
---|
BinaryPrimitives() |
Modifier and Type | Method and Description |
---|---|
static boolean |
readBoolean(byte[] arr,
int off) |
static boolean |
readBoolean(long ptr,
int off) |
static byte |
readByte(byte[] arr,
int off) |
static byte |
readByte(long ptr,
int off) |
static byte[] |
readByteArray(byte[] arr,
int off,
int len) |
static byte[] |
readByteArray(long ptr,
int off,
int len) |
static char |
readChar(byte[] arr,
int off) |
static char |
readChar(long ptr,
int off) |
static char[] |
readCharArray(byte[] arr,
int off,
int len) |
static char[] |
readCharArray(long ptr,
int off,
int len) |
static double |
readDouble(byte[] arr,
int off) |
static double |
readDouble(long ptr,
int off) |
static float |
readFloat(byte[] arr,
int off) |
static float |
readFloat(long ptr,
int off) |
static int |
readInt(byte[] arr,
int off) |
static int |
readInt(long ptr,
int off) |
static long |
readLong(byte[] arr,
int off) |
static long |
readLong(long ptr,
int off) |
static short |
readShort(byte[] arr,
int off) |
static short |
readShort(long ptr,
int off) |
static void |
writeBoolean(byte[] arr,
int off,
boolean val) |
static void |
writeByte(byte[] arr,
int off,
byte val) |
static void |
writeChar(byte[] arr,
int off,
char val) |
static void |
writeDouble(byte[] arr,
int off,
double val) |
static void |
writeFloat(byte[] arr,
int off,
float val) |
static void |
writeInt(byte[] arr,
int off,
int val) |
static void |
writeInt(long ptr,
int off,
int val) |
static void |
writeLong(byte[] arr,
int off,
long val) |
static void |
writeShort(byte[] arr,
int off,
short val) |
static void |
writeShort(long ptr,
int off,
short val) |
public static void writeByte(byte[] arr, int off, byte val)
arr
- Array.off
- Offset.val
- Value.public static byte readByte(byte[] arr, int off)
arr
- Array.off
- Offset.public static byte readByte(long ptr, int off)
ptr
- Pointer.off
- Offset.public static byte[] readByteArray(byte[] arr, int off, int len)
arr
- Array.off
- Offset.public static byte[] readByteArray(long ptr, int off, int len)
ptr
- Pointer.off
- Offset.public static void writeBoolean(byte[] arr, int off, boolean val)
arr
- Array.off
- Offset.val
- Value.public static boolean readBoolean(byte[] arr, int off)
arr
- Array.off
- Offset.public static boolean readBoolean(long ptr, int off)
ptr
- Pointer.off
- Offset.public static void writeShort(byte[] arr, int off, short val)
arr
- Array.off
- Offset.val
- Value.public static void writeShort(long ptr, int off, short val)
ptr
- Pointer.off
- Offset.val
- Value.public static short readShort(byte[] arr, int off)
arr
- Array.off
- Offset.public static short readShort(long ptr, int off)
ptr
- Pointer.off
- Offset.public static void writeChar(byte[] arr, int off, char val)
arr
- Array.off
- Offset.val
- Value.public static char readChar(byte[] arr, int off)
arr
- Array.off
- Offset.public static char readChar(long ptr, int off)
ptr
- Pointer.off
- Offset.public static char[] readCharArray(byte[] arr, int off, int len)
arr
- Array.off
- Offset.public static char[] readCharArray(long ptr, int off, int len)
ptr
- Pointer.off
- Offset.public static void writeInt(byte[] arr, int off, int val)
arr
- Array.off
- Offset.val
- Value.public static void writeInt(long ptr, int off, int val)
ptr
- Pointer.off
- Offset.val
- Value.public static int readInt(byte[] arr, int off)
arr
- Array.off
- Offset.public static int readInt(long ptr, int off)
ptr
- Pointer.off
- Offset.public static void writeLong(byte[] arr, int off, long val)
arr
- Array.off
- Offset.val
- Value.public static long readLong(byte[] arr, int off)
arr
- Array.off
- Offset.public static long readLong(long ptr, int off)
ptr
- Pointer.off
- Offset.public static void writeFloat(byte[] arr, int off, float val)
arr
- Array.off
- Offset.val
- Value.public static float readFloat(byte[] arr, int off)
arr
- Array.off
- Offset.public static float readFloat(long ptr, int off)
ptr
- Pointer.off
- Offset.public static void writeDouble(byte[] arr, int off, double val)
arr
- Array.off
- Offset.val
- Value.public static double readDouble(byte[] arr, int off)
arr
- Array.off
- Offset.public static double readDouble(long ptr, int off)
ptr
- Pointer.off
- Offset.
Follow @ApacheIgnite
Ignite Fabric : ver. 2.0.0 Release Date : April 30 2017