4 #ifndef DMLITE_CPP_UTILS_CHECKSUMS_H
5 #define DMLITE_CPP_UTILS_CHECKSUMS_H
44 std::string
md5(
IOHandler* io, off_t offset = 0, off_t size = 0);
52 std::string
crc32(
IOHandler* io, off_t offset = 0, off_t size = 0);
65 std::string
hexPrinter(
const unsigned char* data,
size_t nbytes);
72 std::string
decPrinter(
const unsigned char* data,
size_t nbytes);
77 #endif // DMLITE_CPP_UTILS_CHECKSUMS_H
std::string hexPrinter(const unsigned char *data, size_t nbytes)
File/directory metadata.
Definition: inode.h:28
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)
bool isChecksumFullName(const std::string &ckey)
Tells if the given key looks like the name of a checksum.
int fillChecksumInXattr(ExtendedStat &xstat)
std::string crc32(IOHandler *io, off_t offset=0, off_t size=0)