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