24 #ifndef PSYNC_UTIL_HPP 25 #define PSYNC_UTIL_HPP 27 #include <ndn-cxx/name.hpp> 36 murmurHash3(uint32_t nHashSeed,
const std::vector<unsigned char>& vDataToHash);
39 murmurHash3(uint32_t nHashSeed,
const std::string& str);
60 std::shared_ptr<ndn::Buffer>
63 std::shared_ptr<ndn::Buffer>
66 class Error :
public std::runtime_error
69 using std::runtime_error::runtime_error;
74 #endif // PSYNC_UTIL_HPP
uint32_t murmurHash3(uint32_t nHashSeed, const std::vector< unsigned char > &vDataToHash)
std::shared_ptr< ndn::Buffer > decompress(CompressionScheme scheme, const uint8_t *buffer, size_t bufferSize)
std::shared_ptr< ndn::Buffer > compress(CompressionScheme scheme, const uint8_t *buffer, size_t bufferSize)