public class ByteOrderValues extends Object
Similar to the standard Java ByteBuffer
class.
Modifier and Type | Field and Description |
---|---|
static int |
BIG_ENDIAN |
static int |
LITTLE_ENDIAN |
Constructor and Description |
---|
ByteOrderValues() |
Modifier and Type | Method and Description |
---|---|
static double |
getDouble(byte[] buf,
int byteOrder) |
static int |
getInt(byte[] buf,
int byteOrder) |
static long |
getLong(byte[] buf,
int byteOrder) |
static void |
putDouble(double doubleValue,
byte[] buf,
int byteOrder) |
static void |
putInt(int intValue,
byte[] buf,
int byteOrder) |
static void |
putLong(long longValue,
byte[] buf,
int byteOrder) |
public static final int BIG_ENDIAN
public static final int LITTLE_ENDIAN
public static int getInt(byte[] buf, int byteOrder)
public static void putInt(int intValue, byte[] buf, int byteOrder)
public static long getLong(byte[] buf, int byteOrder)
public static void putLong(long longValue, byte[] buf, int byteOrder)
public static double getDouble(byte[] buf, int byteOrder)
public static void putDouble(double doubleValue, byte[] buf, int byteOrder)
Copyright © 2024. All rights reserved.