MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / isBinaryData

Function isBinaryData

Source/Basic/Content.cpp:80–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78Content::~Content() { }
79
80static bool isBinaryData(const uint8_t* data, size_t size) {
81 size_t n = size < DORA_BINARY_CHECK_SIZE ? size : DORA_BINARY_CHECK_SIZE;
82 return memchr(data, 0, n) != nullptr;
83}
84
85static void trimTrailingSlashes(std::string& str) {
86 while (!str.empty() && (str.back() == '\\' || str.back() == '/')) {

Callers 1

getAttrMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected