Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
113
void ByteBuffer::reserve(size_t capacity) {
114
if (capacity > _capacity) {
115
reallocate(capacity);
116
}
117
}
118
119
static unsigned long nextPowerOfTwo(unsigned long v) {
120
v--;
Callers
15
marshall
Method · 0.45
getAll
Method · 0.45
all
Method · 0.45
getTraceName
Function · 0.45
prepend
Method · 0.45
append
Method · 0.45
lowercased
Method · 0.45
pushMap
Method · 0.45
sortedMapKeys
Method · 0.45
toString
Method · 0.45
decodeString
Method · 0.45
PathUtils.cpp
File · 0.45
Calls
no outgoing calls
Tested by
8
CreateUnorderedMapWithReserve
Function · 0.36
CreateFlatMapWithReserve
Function · 0.36
CreateMapWithRegularStrings
Function · 0.36
CreateMapWithInternedStrings
Function · 0.36
TEST
Function · 0.36
TestMap
Method · 0.36
deserializeTestCases
Function · 0.36
toGlyphVec
Function · 0.36