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

Function getIndex

valdi/src/valdi/runtime/JavaScript/Modules/ProtobufModule.cpp:82–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80}
81
82static size_t getIndex(JSFunctionNativeCallContext& callContext, size_t index) {
83 auto parameter = callContext.getParameter(index);
84 return jsValueToIndex(callContext, parameter);
85}
86
87static JSValueRef toJSIndex(JSFunctionNativeCallContext& callContext, size_t index) {
88 return callContext.getContext().newNumber(static_cast<int32_t>(index));

Callers 12

arenaCreateMessageMethod · 0.85
arenaDecodeMessageMethod · 0.85
arenaEncodeMessageMethod · 0.85
arenaSetMessageFieldMethod · 0.85
arenaGetMessageFieldsMethod · 0.85
arenaCopyMessageMethod · 0.85
getNamespaceEntriesMethod · 0.85

Calls 2

jsValueToIndexFunction · 0.85
getParameterMethod · 0.80

Tested by

no test coverage detected