]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/contrib/crc-16.cc
The entire concept of PendingError() is flawed :/.
[apt.git] / apt-pkg / contrib / crc-16.cc
index f5df2d8b13af258643249341d904c12ba79df0ed..250d7664a199b9e6fa1d2cfc4bf6b552ef34d9f7 100644 (file)
@@ -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)
 {