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

Method GetHash

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

Source from the content-addressed store, hash-verified

177
178
179void URLImpl::GetHash(v8::Local<v8::String> property,
180 const v8::PropertyCallbackInfo<v8::Value> &info) {
181 URLImpl *ptr = GetPointer(info.This());
182 if (ptr == nullptr) {
183 info.GetReturnValue().SetEmptyString();
184 return;
185 }
186 auto isolate = info.GetIsolate();
187
188 auto value = ptr->GetURL()->get_hash();
189 info.GetReturnValue().Set(
190 ArgConverter::ConvertToV8String(isolate, value.data(), value.length()));
191}
192
193void URLImpl::SetHash(v8::Local<v8::String> property,
194 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_hashMethod · 0.60
GetIsolateMethod · 0.45
SetMethod · 0.45
dataMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected