4 #ifndef DMLITE_CPP_UTILS_CHECKSUMS_H
5 #define DMLITE_CPP_UTILS_CHECKSUMS_H
32 std::string
md5(
IOHandler* io, off_t offset = 0, off_t size = 0);
40 std::string
crc32(
IOHandler* io, off_t offset = 0, off_t size = 0);
53 std::string
hexPrinter(
const unsigned char* data,
size_t nbytes);
60 std::string
decPrinter(
const unsigned char* data,
size_t nbytes);
65 #endif // DMLITE_CPP_UTILS_CHECKSUMS_H
std::string hexPrinter(const unsigned char *data, size_t nbytes)
std::string md5(IOHandler *io, off_t offset=0, off_t size=0)
I/O API. Abstracts how to write or read to/from a disk within a pool.
std::string shortChecksumName(const std::string &cs)
std::string fullChecksumName(const std::string &cs)
std::string adler32(IOHandler *io, off_t offset=0, off_t size=0)
IO interface.
Definition: io.h:26
std::string decPrinter(const unsigned char *data, size_t nbytes)
Namespace for the dmlite C++ API.
Definition: authn.h:15
std::string crc32(IOHandler *io, off_t offset=0, off_t size=0)