| 限定符和类型 | 方法和说明 |
|---|---|
static int |
crc16(byte[] bytes)
计算CRC16校验
|
static int |
crc16(byte[] bytes,
int offset,
int len)
计算CRC16校验
|
static int |
crc16(byte[] bytes,
int offset,
int len,
int preval)
计算CRC16校验
|
static byte |
crc8(byte[] bytes)
计算数组的CRC8校验值
|
static byte |
crc8(byte[] bytes,
int offset,
int len)
计算CRC8校验值
|
static byte |
crc8(byte[] bytes,
int offset,
int len,
byte preval)
计算CRC8校验值
|
public static byte crc8(byte[] bytes)
bytes - 需要计算的数组public static byte crc8(byte[] bytes,
int offset,
int len)
bytes - 数据offset - 起始位置len - 长度public static byte crc8(byte[] bytes,
int offset,
int len,
byte preval)
bytes - 数据offset - 起始位置len - 长度preval - 之前的校验值public static int crc16(byte[] bytes)
bytes - 需要计算的数组public static int crc16(byte[] bytes,
int offset,
int len)
bytes - 需要计算的数组offset - 起始位置len - 长度public static int crc16(byte[] bytes,
int offset,
int len,
int preval)
bytes - 需要计算的数组offset - 起始位置len - 长度preval - 之前的校验值Copyright © 2020. All rights reserved.