1234567891011121314151617181920212223242526272829303132333435 |
- #ifndef RTC_BASE_CRC32_H_
- #define RTC_BASE_CRC32_H_
- #include <stddef.h>
- #include <stdint.h>
- #include <string>
- namespace rtc {
- uint32_t UpdateCrc32(uint32_t initial, const void* buf, size_t len);
- inline uint32_t ComputeCrc32(const void* buf, size_t len) {
- return UpdateCrc32(0, buf, len);
- }
- inline uint32_t ComputeCrc32(const std::string& str) {
- return ComputeCrc32(str.c_str(), str.size());
- }
- }
- #endif
|