public class ShortUtils
extends java.lang.Object
Modifier and Type | Field | Description |
---|---|---|
static int |
UNSIGNED_MAX_VALUE |
Modifier and Type | Method | Description |
---|---|---|
static byte[] |
byteArrayFromShort(short s) |
|
static short |
shortFromByteArray(byte[] bytes,
int offset) |
|
static void |
shortIntoByteArray(short s,
int offset,
byte[] bytes) |
|
static int |
toUnsigned(short s) |
public static final int UNSIGNED_MAX_VALUE
public static short shortFromByteArray(byte[] bytes, int offset)
public static byte[] byteArrayFromShort(short s)
public static void shortIntoByteArray(short s, int offset, byte[] bytes)
public static int toUnsigned(short s)