public class ByteHandler extends Object
Constructor and Description |
---|
ByteHandler() |
Modifier and Type | Method and Description |
---|---|
static void |
BoolToBuffer(int bitPos,
boolean value,
byte[] dest) |
static void |
bufferToBuffer(int begS,
byte[] source,
int begD,
byte[] dest,
int length) |
static String |
ByteDataPathToString(byte[] mac) |
static String |
ByteMACToString(byte[] mac) |
static byte[] |
DataPathFormatStringtoByteArray(String DataPath)
DataPath = "AA:BB:CC:DD:EE:FF:GG:HH";
|
static byte[] |
DataPathStringtoByteArray(String DataPath) |
static long |
decode4bytesLong(byte[] bytes,
int offset) |
static int |
easyCopy(int begin,
int end,
byte... bytes) |
static long |
easyCopyL(int begin,
int end,
byte... bytes) |
static void |
encode4bytesLong(long number,
byte[] bytes,
int offset) |
static void |
IntToBuffer(int begS,
int begD,
int length,
int value,
byte[] dest) |
static void |
LongToBuffer(int begS,
int begD,
int length,
long value,
byte[] dest) |
static byte[] |
MACFormatStringtoByteArray(String macAddress)
macAddress = "AA:BB:CC:DD:EE:FF";
|
static byte[] |
MACStringtoByteArray(String macAddress) |
static byte[] |
toByteArray(BitSet bits,
int length) |
public static int easyCopy(int begin, int end, byte... bytes)
public static long easyCopyL(int begin, int end, byte... bytes)
public static byte[] toByteArray(BitSet bits, int length)
public static void bufferToBuffer(int begS, byte[] source, int begD, byte[] dest, int length)
public static void IntToBuffer(int begS, int begD, int length, int value, byte[] dest)
public static void LongToBuffer(int begS, int begD, int length, long value, byte[] dest)
public static void BoolToBuffer(int bitPos, boolean value, byte[] dest)
public static String ByteMACToString(byte[] mac)
public static String ByteDataPathToString(byte[] mac)
public static byte[] MACFormatStringtoByteArray(String macAddress)
public static byte[] MACStringtoByteArray(String macAddress)
public static byte[] DataPathFormatStringtoByteArray(String DataPath)
public static byte[] DataPathStringtoByteArray(String DataPath)
public static void encode4bytesLong(long number, byte[] bytes, int offset)
public static long decode4bytesLong(byte[] bytes, int offset)
Copyright © 2016. All rights reserved.