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

Method GetProtocol

test-app/runtime/src/main/cpp/URLImpl.cpp:390–403  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

388}
389
390void URLImpl::GetProtocol(v8::Local<v8::String> property,
391 const v8::PropertyCallbackInfo<v8::Value> &info) {
392 URLImpl *ptr = GetPointer(info.This());
393 if (ptr == nullptr) {
394 info.GetReturnValue().SetEmptyString();
395 return;
396 }
397 auto isolate = info.GetIsolate();
398
399 auto value = ptr->GetURL()->get_protocol();
400
401 info.GetReturnValue().Set(
402 ArgConverter::ConvertToV8String(isolate, value.data(), value.length()));
403}
404
405void URLImpl::SetProtocol(v8::Local<v8::String> property,
406 v8::Local<v8::Value> value,

Callers

nothing calls this directly

Calls 9

ThisMethod · 0.80
SetEmptyStringMethod · 0.80
GetReturnValueMethod · 0.80
GetURLMethod · 0.80
get_protocolMethod · 0.60
GetIsolateMethod · 0.45
SetMethod · 0.45
dataMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected