public final class ByteUtil extends Object
Modifier and Type | Field and Description |
---|---|
protected static char[] |
HEX_ARRAY |
Modifier and Type | Method and Description |
---|---|
static short |
asUnsignedByte(byte byteArg) |
static long |
asUnsignedInteger(int intArg) |
static int |
asUnsignedShort(short shortArg) |
static byte |
boolToBit(boolean flag,
int bit) |
static String |
bytesToHex(byte[] bytes,
int length) |
static boolean |
extractBit(byte byteValue,
int bitMask) |
static int |
getInt(byte[] inBuffer,
int pos) |
static long |
getLong(byte[] inBuffer,
int pos) |
static int |
getPartialInt(byte[] inBuffer) |
static short |
getShort(byte[] inBuffer,
int pos) |
static int |
getUnsignedByte(byte[] inBuffer,
int pos) |
static int |
getUnsignedByte(ByteBuffer inBuffer) |
static int |
getUnsignedByte(ByteBuffer inBuffer,
int pos) |
static int |
getUnsignedShort(byte[] inBuffer,
int pos) |
static int |
getUnsignedShort(ByteBuffer inBuffer,
int pos) |
static byte[] |
partialIntToByteArray(int number,
int length) |
public static int getUnsignedByte(byte[] inBuffer, int pos)
public static int getUnsignedByte(ByteBuffer inBuffer, int pos)
public static int getUnsignedByte(ByteBuffer inBuffer)
public static int getUnsignedShort(byte[] inBuffer, int pos)
public static int getUnsignedShort(ByteBuffer inBuffer, int pos)
public static short getShort(byte[] inBuffer, int pos)
public static int getInt(byte[] inBuffer, int pos)
public static int getPartialInt(byte[] inBuffer)
public static short asUnsignedByte(byte byteArg)
public static int asUnsignedShort(short shortArg)
public static long asUnsignedInteger(int intArg)
public static byte[] partialIntToByteArray(int number, int length)
public static long getLong(byte[] inBuffer, int pos)
public static boolean extractBit(byte byteValue, int bitMask)
public static byte boolToBit(boolean flag, int bit)
public static String bytesToHex(byte[] bytes, int length)
Copyright © 2019 OpenDaylight. All rights reserved.