MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / array_index

Function array_index

Source/Wasm/WasmRuntime.cpp:1784–1786  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1782 return r_cast<Array*>(array)->contains(Value_To(*r_cast<dora_val_t*>(item)).get()) ? 1 : 0;
1783}
1784DORA_EXPORT int32_t array_index(int64_t array, int64_t item) {
1785 return r_cast<Array*>(array)->index(Value_To(*r_cast<dora_val_t*>(item)).get());
1786}
1787DORA_EXPORT int64_t array_remove_last(int64_t array) {
1788 auto arr = r_cast<Array*>(array);
1789 if (arr->isEmpty()) return 0;

Callers 1

indexMethod · 0.85

Calls 3

Value_ToFunction · 0.85
getMethod · 0.65
indexMethod · 0.45

Tested by

no test coverage detected