MCPcopy Create free account
hub / github.com/Tracktion/choc / v8StringToStd

Method v8StringToStd

choc/javascript/choc_javascript_V8.h:456–463  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

454 return o;
455 }
456
457 CHOC_ASSERT (v.isVoid());
458 return v8::Undefined (isolate);
459 }
460
461 v8::Local<v8::String> stringToV8 (std::string_view s, v8::NewStringType type = v8::NewStringType::kNormal)
462 {
463 return v8::String::NewFromUtf8 (isolate, s.data(), type, static_cast<int> (s.length())).ToLocalChecked();
464 }
465
466 std::string v8StringToStd (v8::String& s)

Callers

nothing calls this directly

Calls 2

resizeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected