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

Method getArrayLength

valdi_core/src/valdi_core/cpp/Utils/Marshaller.cpp:316–322  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

314}
315
316int Marshaller::getArrayLength(int index) {
317 auto array = getArray(index);
318 if (!_exceptionTracker) {
319 return 0;
320 }
321 return static_cast<int>(array->size());
322}
323
324int Marshaller::getArrayItem(int index, int arrayIndex) {
325 auto array = getArray(index);

Callers 3

TESTFunction · 0.80
nativeGetArrayLengthFunction · 0.80

Calls 1

sizeMethod · 0.45

Tested by 1

TESTFunction · 0.64