diff options
Diffstat (limited to 'apt-pkg/contrib/crc-16.cc')
-rw-r--r-- | apt-pkg/contrib/crc-16.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apt-pkg/contrib/crc-16.cc b/apt-pkg/contrib/crc-16.cc index f5df2d8b1..250d7664a 100644 --- a/apt-pkg/contrib/crc-16.cc +++ b/apt-pkg/contrib/crc-16.cc @@ -64,6 +64,10 @@ static unsigned short const crc16_table[256] = /* Recompute the FCS with one more character appended. */ #define CalcFCS(fcs, c) (((fcs) >> 8) ^ crc16_table[((fcs) ^ (c)) & 0xff]) +unsigned short AddCRC16Byte(unsigned short fcs, unsigned char byte) +{ + return CalcFCS(fcs, byte); +} unsigned short AddCRC16(unsigned short fcs, void const *Buf, unsigned long long len) { |