private ushort GetChecksum(byte[] data) => Checksums.CRC16_CCITT(data, Offset, Length);
示例#2
0
 private ushort CalcBlockChecksum(byte[] data) => Checksums.CRC16_CCITT(data, 0, data.Length - FooterSize);
示例#3
0
 private ushort CalcBlockChecksum(byte[] data) => Checksums.CRC16_CCITT(new ReadOnlySpan <byte>(data, 0, data.Length - FooterSize));
示例#4
0
 protected override ushort GetChecksum(byte[] data) => Checksums.CRC16_CCITT(data, Offset, Length);
示例#5
0
 private ushort GetChecksum(byte[] data) => Checksums.CRC16_CCITT(new ReadOnlySpan <byte>(data, Offset, Length));
示例#6
0
 private ushort GetChecksum(Span <byte> data) => Checksums.CRC16_CCITT(data.Slice(Offset, Length));
示例#7
0
 protected override ushort GetChecksum(byte[] data) => Checksums.CRC16_CCITT(new ReadOnlySpan <byte>(data, Offset, Length));