util.hpp File Reference
#include <ndn-cxx/name.hpp>
#include <inttypes.h>
#include <vector>
#include <string>
+ Include dependency graph for util.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  psync::Error
 
struct  psync::MissingDataInfo
 

Namespaces

 psync
 

Enumerations

enum  psync::CompressionScheme {
  psync::CompressionScheme::NONE,
  psync::CompressionScheme::ZLIB,
  psync::CompressionScheme::GZIP,
  psync::CompressionScheme::BZIP2,
  psync::CompressionScheme::LZMA,
  psync::CompressionScheme::ZSTD
}
 

Functions

std::shared_ptr< ndn::Buffer > psync::compress (CompressionScheme scheme, const uint8_t *buffer, size_t bufferSize)
 
std::shared_ptr< ndn::Buffer > psync::decompress (CompressionScheme scheme, const uint8_t *buffer, size_t bufferSize)
 
uint32_t psync::murmurHash3 (uint32_t nHashSeed, const std::vector< unsigned char > &vDataToHash)
 
uint32_t psync::murmurHash3 (uint32_t nHashSeed, const std::string &str)
 
uint32_t psync::murmurHash3 (uint32_t nHashSeed, uint32_t value)