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

Method mergeMaps

valdi_core/src/valdi_core/cpp/Utils/Marshaller.cpp:94–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92}
93
94int Marshaller::mergeMaps(int leftIndex, int rightIndex) {
95 auto newMapIndex = pushMap(0);
96
97 copyMap(leftIndex, newMapIndex);
98 if (!_exceptionTracker) {
99 return 0;
100 }
101
102 copyMap(rightIndex, newMapIndex);
103 if (!_exceptionTracker) {
104 return 0;
105 }
106
107 return newMapIndex;
108}
109
110void Marshaller::copyMap(int mapIndex, int intoMapIndex) {
111 auto iterator = pushMapIterator(mapIndex);

Callers 1

TESTFunction · 0.80

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.64