public class ByteOrderValues
extends java.lang.Object
Similar to the standard Java ByteBuffer
class.
Modifier and Type | Field | Description |
---|---|---|
static int |
BIG_ENDIAN |
|
static int |
LITTLE_ENDIAN |
Constructor | Description |
---|---|
ByteOrderValues() |
Modifier and Type | Method | 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 © 2018. All rights reserved.