MCPcopy Create free account
hub / github.com/Snapchat/Valdi / computePadding

Function computePadding

valdi_core/src/valdi_core/cpp/Resources/ValdiArchive.cpp:33–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31};
32
33static size_t computePadding(size_t size) {
34 return alignUp(size, sizeof(uint32_t)) - size;
35}
36
37ValdiArchive::ValdiArchive(const Bytes& bytes) : ValdiArchive(bytes.data(), bytes.data() + bytes.size()) {}
38

Callers 2

parseFieldFunction · 0.70
addEntryMethod · 0.70

Calls 1

alignUpFunction · 0.50

Tested by

no test coverage detected