public class ChecksumFlow extends Pipeline<PipelineContext>
Executes after encode/decode flows to calculate or verify checksums declared via Checksum.
Supports CRC8/16/32/64 families and light-weight checks (XOR/LRC) per annotation parameters.
decodeFlowClasses, decodePipeline, encodeFlowClasses, encodePipeline, next, validateFlow| 构造器和说明 |
|---|
ChecksumFlow() |
| 限定符和类型 | 方法和说明 |
|---|---|
long |
getCode() |
void |
process(PipelineContext context) |
private long |
readChecksum(byte[] bytes,
int offset,
Checksum c) |
private static BigInteger |
toUnsignedBigInteger(long value) |
private void |
writeChecksum(PipelineContext ctx,
int offset,
long crc,
Checksum c) |
append, create, create, forward, getDecodeFlow, getEncodeFlow, setNext, toStringpublic void process(PipelineContext context)
process 在类中 Pipeline<PipelineContext>private static BigInteger toUnsignedBigInteger(long value)
private void writeChecksum(PipelineContext ctx, int offset, long crc, Checksum c)
private long readChecksum(byte[] bytes,
int offset,
Checksum c)
public long getCode()
getCode 在类中 Pipeline<PipelineContext>Copyright © 2019–2025 indunet. All rights reserved.