crc64.h 347 B

12345678910111213
  1. #pragma once
  2. #include <stdint.h>
  3. #include <cstddef>
  4. namespace qcloud_cos {
  5. class CRC64 {
  6. public:
  7. static uint64_t CalcCRC(uint64_t crc, void *buf, size_t len);
  8. static uint64_t CombineCRC(uint64_t crc1, uint64_t crc2, uintmax_t len2);
  9. static uint64_t CalcCRC(uint64_t crc, void *buf, size_t len, bool little);
  10. };
  11. } // namespace qcloud_cos