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

Method reserve

valdi_core/src/valdi_core/cpp/Utils/ByteBuffer.cpp:113–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111}
112
113void ByteBuffer::reserve(size_t capacity) {
114 if (capacity > _capacity) {
115 reallocate(capacity);
116 }
117}
118
119static unsigned long nextPowerOfTwo(unsigned long v) {
120 v--;

Callers 15

marshallMethod · 0.45
getAllMethod · 0.45
allMethod · 0.45
getTraceNameFunction · 0.45
prependMethod · 0.45
appendMethod · 0.45
lowercasedMethod · 0.45
pushMapMethod · 0.45
sortedMapKeysMethod · 0.45
toStringMethod · 0.45
decodeStringMethod · 0.45
PathUtils.cppFile · 0.45

Calls

no outgoing calls

Tested by 8

CreateFlatMapWithReserveFunction · 0.36
TESTFunction · 0.36
TestMapMethod · 0.36
deserializeTestCasesFunction · 0.36
toGlyphVecFunction · 0.36