public static class Storable.Utils extends Object
| Constructor and Description |
|---|
Utils() |
| Modifier and Type | Method and Description |
|---|---|
static char |
getChar(byte[] buffer,
int position)
Returns a char from the byte array.
|
static int |
getInt(byte[] buffer,
int position)
Returns an integer from the byte array.
|
static long |
getLong(byte[] buffer,
int position)
Returns a long from the byte array.
|
static void |
putChar(char value,
byte[] buffer,
int position)
Stores a char in the byte array.
|
static void |
putInt(int value,
byte[] buffer,
int position)
Stores an integer in the byte array.
|
static void |
putLong(long value,
byte[] buffer,
int position)
Stores a long in the byte array.
|
public static char getChar(byte[] buffer,
int position)
buffer - The byte arrayposition - The position of the datapublic static int getInt(byte[] buffer,
int position)
buffer - The byte arrayposition - The position of the datapublic static long getLong(byte[] buffer,
int position)
buffer - The byte arrayposition - The position of the datapublic static void putChar(char value,
byte[] buffer,
int position)
value - The char to storebuffer - The byte arrayposition - The position of the datapublic static void putInt(int value,
byte[] buffer,
int position)
value - The integer to storebuffer - The byte arrayposition - The position of the datapublic static void putLong(long value,
byte[] buffer,
int position)
value - The long to storebuffer - The byte arrayposition - The position of the dataCopyright © 2026. All rights reserved.