MCPcopy Create free account
hub / github.com/RischardV/emoji-shellcoding / is_bytes_prefix

Function is_bytes_prefix

block/block.cpp:64–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62}
63
64static bool is_bytes_prefix(const Bytes &prefix, const Bytes &bytes)
65{
66 if (prefix.size() > bytes.size()) {
67 return false;
68 }
69 for (size_t i=0; i<prefix.size(); i++) {
70 if (prefix[i] != bytes[i]) {
71 return false;
72 }
73 }
74 return true;
75}
76
77static bool is_bytes_suffix(const Bytes &suffix, const Bytes &bytes)
78{

Callers 2

make_blockFunction · 0.85
block_prefixFunction · 0.85

Calls 1

sizeMethod · 0.80

Tested by

no test coverage detected