]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/contrib/crc-16.h
Compare size before data when ordering cache bucket entries
[apt.git] / apt-pkg / contrib / crc-16.h
index 702de40b21135a0596b6802465d6660704f15a30..6cc3556c6f8081d28c36bd56a23d38d11dda8363 100644 (file)
 #ifndef APTPKG_CRC16_H
 #define APTPKG_CRC16_H
 
 #ifndef APTPKG_CRC16_H
 #define APTPKG_CRC16_H
 
+#include <apt-pkg/macros.h>
+
 #define INIT_FCS  0xffff
 #define INIT_FCS  0xffff
+unsigned short AddCRC16Byte(unsigned short fcs, unsigned char byte) APT_CONST;
 unsigned short AddCRC16(unsigned short fcs, void const *buf,
 unsigned short AddCRC16(unsigned short fcs, void const *buf,
-                       unsigned long long len);
+                       unsigned long long len) APT_PURE;
 
 #endif
 
 #endif