| 限定符和类型 | 字段和说明 |
|---|---|
protected static Map<Integer,Crc8Checker> |
checkers |
protected static int |
defaultPoly |
protected int |
poly |
| 限定符 | 构造器和说明 |
|---|---|
protected |
Crc8Checker(int poly) |
| 限定符和类型 | 方法和说明 |
|---|---|
static Crc8Checker |
getInstance() |
static Crc8Checker |
getInstance(int poly) |
int |
getSize() |
int |
getValue(byte[] datagram,
int start,
int length) |
void |
setValue(byte[] datagram,
Class<?> protocolClass) |
void |
setValue(byte[] datagram,
int byteOffset,
int start,
int length) |
boolean |
validate(byte[] datagram,
Class<?> protocolClass) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetInstanceprotected static final Map<Integer,Crc8Checker> checkers
protected static final int defaultPoly
protected int poly
public static Crc8Checker getInstance()
public static Crc8Checker getInstance(int poly)
public boolean validate(byte[] datagram,
Class<?> protocolClass)
public void setValue(byte[] datagram,
int byteOffset,
int start,
int length)
public int getValue(byte[] datagram,
int start,
int length)
Copyright © 2019–2022 indunet. All rights reserved.