MCPcopy Create free account
hub / github.com/bailey27/cppcryptfs / test_zero_bytes

Function test_zero_bytes

libcppcryptfs/util/util.cpp:590–593  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

588}
589
590template <typename T> bool test_zero_bytes(const BYTE *buf, size_t len)
591{
592 return *((T *)buf) == 0 && !memcmp(buf, buf + sizeof(T), len - sizeof(T));
593}
594
595#define TESTZERO(T) \
596 if ((UINT_PTR)buf % sizeof(T) == 0) { \

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected