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

Method GetHash

test-app/runtime/src/main/cpp/URLPatternImpl.cpp:471–483  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

469}
470
471void URLPatternImpl::GetHash(v8::Local<v8::Name> property,
472 const v8::PropertyCallbackInfo<v8::Value> &info) {
473 URLPatternImpl *ptr = GetPointer(info.This());
474 if (ptr == nullptr) {
475 info.GetReturnValue().SetEmptyString();
476 return;
477 }
478 auto isolate = info.GetIsolate();
479
480 auto value = ptr->GetPattern()->get_hash();
481 info.GetReturnValue().Set(
482 ArgConverter::ConvertToV8String(isolate, value.data(), value.length()));
483}
484
485void URLPatternImpl::GetHostName(v8::Local<v8::Name> property,
486 const v8::PropertyCallbackInfo<v8::Value> &info) {

Callers

nothing calls this directly

Calls 9

ThisMethod · 0.80
SetEmptyStringMethod · 0.80
GetReturnValueMethod · 0.80
GetPatternMethod · 0.80
get_hashMethod · 0.60
GetIsolateMethod · 0.45
SetMethod · 0.45
dataMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected