public class CommonUtil extends Object
| 构造器和说明 |
|---|
CommonUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static byte[] |
byteMerger(byte[] byte_1,
byte[] byte_2)
合并byte[]数组 (不改变原数组)
|
static int |
fromByteArray(byte[] bytes) |
static byte[] |
intToByteArray(int value) |
static byte[] |
subByte(byte[] b,
int off,
int length)
截取byte数组 不改变原数组
|
public static byte[] subByte(byte[] b,
int off,
int length)
b - 原数组off - 偏差值(索引)length - 长度public static byte[] byteMerger(byte[] byte_1,
byte[] byte_2)
byte_1 - byte_2 - public static final byte[] intToByteArray(int value)
public static int fromByteArray(byte[] bytes)
Copyright © 2022. All rights reserved.