MCPcopy Create free account
hub / github.com/CommE2E/comm / jsiStringArrayToRustVec

Function jsiStringArrayToRustVec

native/cpp/CommonCpp/NativeModules/JSIRust.cpp:11–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9}
10
11rust::Vec<rust::String> jsiStringArrayToRustVec(
12 const facebook::jsi::Array &jsi_array,
13 facebook::jsi::Runtime &runtime) {
14 rust::Vec<rust::String> rust_vec;
15 rust_vec.reserve(jsi_array.size(runtime));
16
17 for (size_t i = 0; i < jsi_array.size(runtime); ++i) {
18 facebook::jsi::String jsi_string =
19 jsi_array.getValueAtIndex(runtime, i).getString(runtime);
20 rust::String rust_string = jsiStringToRustString(jsi_string, runtime);
21 rust_vec.push_back(rust_string);
22 }
23
24 return rust_vec;
25}

Callers 13

registerPasswordUserMethod · 0.85
logInPasswordUserMethod · 0.85
registerWalletUserMethod · 0.85
logInWalletUserMethod · 0.85
getInboundKeysForUserMethod · 0.85
uploadOneTimeKeysMethod · 0.85
getFarcasterUsersMethod · 0.85
findUserIdentitiesMethod · 0.85

Calls 2

jsiStringToRustStringFunction · 0.85
getStringMethod · 0.45

Tested by

no test coverage detected