MCPcopy Create free account
hub / github.com/WiseLibs/better-sqlite3 / SetString

Method SetString

src/util/constants.cpp:163–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

161private:
162
163 static void SetString(Napi::Env env, Napi::Reference<Napi::String>& constant, const char* str) {
164 constant = Napi::Persistent(InternalizedFromLatin1(env, str));
165 }
166
167 void SetCode(Napi::Env env, int code, const char* str) {
168 codes.emplace(code, Napi::Persistent(InternalizedFromLatin1(env, str)));

Callers

nothing calls this directly

Calls 1

InternalizedFromLatin1Function · 0.85

Tested by

no test coverage detected