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

Method GetPort

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

Source from the content-addressed store, hash-verified

360}
361
362void URLImpl::GetPort(v8::Local<v8::String> property,
363 const v8::PropertyCallbackInfo<v8::Value> &info) {
364 URLImpl *ptr = GetPointer(info.This());
365 if (ptr == nullptr) {
366 info.GetReturnValue().SetEmptyString();
367 return;
368 }
369 auto isolate = info.GetIsolate();
370
371 auto value = ptr->GetURL()->get_port();
372
373 info.GetReturnValue().Set(
374 ArgConverter::ConvertToV8String(isolate, value.data(), value.length()));
375}
376
377void URLImpl::SetPort(v8::Local<v8::String> property,
378 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_portMethod · 0.60
GetIsolateMethod · 0.45
SetMethod · 0.45
dataMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected