public class ByteUtils extends Object
| 构造器和说明 |
|---|
ByteUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static int |
appendString(byte[] src,
int maxLen,
byte[] bytes,
int offset) |
static int |
byte2int(byte[] b) |
static int |
byte2int(byte[] b,
int offset) |
static long |
byte2long(byte[] b) |
static long |
byte2long(byte[] b,
int offset) |
static short |
byte2short(byte[] b) |
static short |
byte2short(byte[] b,
int offset) |
static String |
byteArrayToHexString(byte[] b) |
static boolean |
bytesEquals(byte[] bytes1,
byte[] bytes2) |
static String |
byteToHexString(byte b) |
static byte[] |
convertAndFill(long msgId) |
static byte[] |
int2byte(int n) |
static void |
int2byte(int n,
byte[] buf,
int offset) |
static byte[] |
lfillBytes(byte[] src,
int len) |
static void |
lfillBytes(byte[] src,
int len,
byte[] dest,
int offset) |
static byte[] |
long2byte(long n) |
static void |
long2byte(long n,
byte[] buf,
int offset) |
static byte[] |
ltrimBytes(byte[] src) |
static void |
printBytes(byte[] bytes) |
static byte[] |
removeString(byte[] buffer,
int offset) |
static byte[] |
rfillBytes(byte[] src,
int len) |
static void |
rfillBytes(byte[] src,
int len,
byte[] bytes,
int offset) |
static byte[] |
rtrimBytes(byte[] src) |
static byte[] |
short2byte(int n) |
static void |
short2byte(int n,
byte[] buf,
int offset) |
static long |
trimAndConvert(byte[] bytes) |
public static byte[] rfillBytes(byte[] src,
int len)
public static void rfillBytes(byte[] src,
int len,
byte[] bytes,
int offset)
public static int appendString(byte[] src,
int maxLen,
byte[] bytes,
int offset)
public static byte[] removeString(byte[] buffer,
int offset)
public static byte[] lfillBytes(byte[] src,
int len)
public static void lfillBytes(byte[] src,
int len,
byte[] dest,
int offset)
public static void printBytes(byte[] bytes)
public static byte[] rtrimBytes(byte[] src)
public static byte[] ltrimBytes(byte[] src)
public static String byteToHexString(byte b)
public static String byteArrayToHexString(byte[] b)
public static short byte2short(byte[] b,
int offset)
public static short byte2short(byte[] b)
public static int byte2int(byte[] b,
int offset)
public static int byte2int(byte[] b)
public static long byte2long(byte[] b)
public static long byte2long(byte[] b,
int offset)
public static byte[] int2byte(int n)
public static void int2byte(int n,
byte[] buf,
int offset)
public static byte[] short2byte(int n)
public static void short2byte(int n,
byte[] buf,
int offset)
public static byte[] long2byte(long n)
public static void long2byte(long n,
byte[] buf,
int offset)
public static boolean bytesEquals(byte[] bytes1,
byte[] bytes2)
public static byte[] convertAndFill(long msgId)
public static long trimAndConvert(byte[] bytes)
Copyright © 2019. All rights reserved.