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

Function is_bytes_suffix

block/block.cpp:77–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75}
76
77static bool is_bytes_suffix(const Bytes &suffix, const Bytes &bytes)
78{
79 if (suffix.size() > bytes.size()) {
80 return false;
81 }
82 for (size_t i=0; i<suffix.size(); i++) {
83 if (suffix[i] != bytes[bytes.size()-suffix.size()+i]) {
84 return false;
85 }
86 }
87 return true;
88}
89
90class Sequence {
91 Bytes bytes;

Callers 3

print_blockFunction · 0.85
make_blockFunction · 0.85
block_suffixFunction · 0.85

Calls 1

sizeMethod · 0.80

Tested by

no test coverage detected