MCPcopy Create free account
hub / github.com/NativeScript/android / ada_get_protocol

Function ada_get_protocol

test-app/runtime/src/main/cpp/ada/ada.cpp:17173–17180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17171}
17172
17173ada_string ada_get_protocol(ada_url result) noexcept {
17174 ada::result<ada::url_aggregator>& r = get_instance(result);
17175 if (!r) {
17176 return ada_string_create(nullptr, 0);
17177 }
17178 std::string_view out = r->get_protocol();
17179 return ada_string_create(out.data(), out.length());
17180}
17181
17182uint8_t ada_get_host_type(ada_url result) noexcept {
17183 ada::result<ada::url_aggregator>& r = get_instance(result);

Callers

nothing calls this directly

Calls 4

ada_string_createFunction · 0.85
get_protocolMethod · 0.60
dataMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected