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

Method SetHash

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

Source from the content-addressed store, hash-verified

191}
192
193void URLImpl::SetHash(v8::Local<v8::String> property,
194 v8::Local<v8::Value> value,
195 const v8::PropertyCallbackInfo<void> &info) {
196 URLImpl *ptr = GetPointer(info.This());
197 if (ptr == nullptr) {
198 return;
199 }
200 auto isolate = info.GetIsolate();
201 auto context = isolate->GetCurrentContext();
202 auto val = ArgConverter::ConvertToString(value->ToString(context).ToLocalChecked());
203 ptr->GetURL()->set_hash(val.c_str());
204}
205
206
207void URLImpl::GetHost(v8::Local<v8::String> property,

Callers

nothing calls this directly

Calls 6

ThisMethod · 0.80
ToLocalCheckedMethod · 0.80
set_hashMethod · 0.80
GetURLMethod · 0.80
GetIsolateMethod · 0.45
ToStringMethod · 0.45

Tested by

no test coverage detected