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

Method pushMap

valdi_core/src/valdi_core/cpp/Utils/Marshaller.cpp:361–366  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

359}
360
361int Marshaller::pushMap(int expectedCapacity) {
362 auto map = makeShared<ValueMap>();
363 map->reserve(static_cast<size_t>(expectedCapacity));
364
365 return push(Value(map));
366}
367
368int Marshaller::getMapLength(int index) {
369 auto map = getMap(index);

Callers 1

Calls 3

pushFunction · 0.85
ValueClass · 0.70
reserveMethod · 0.45

Tested by

no test coverage detected