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));