MCPcopy Create free account
hub / github.com/GoogleChrome/samples / __setMemberCString

Function __setMemberCString

sqlite-wasm-cos/sqlite3-node.mjs:10258–10267  ·  view source on GitHub ↗
(obj, memberName, str)

Source from the content-addressed store, hash-verified

10256 memberSuffix settings.
10257 */
10258 const __setMemberCString = function(obj, memberName, str){
10259 const m = __lookupMember(obj.structInfo, memberName, true);
10260 __affirmCStringSignature(m);
10261 /* Potential TODO: if obj.ondispose contains obj[m.key] then
10262 dealloc that value and clear that ondispose entry */
10263 const mem = __allocCString(str);
10264 obj[m.key] = mem;
10265 __addOnDispose(obj, mem);
10266 return obj;
10267 };
10268
10269 /**
10270 Prototype for all StructFactory instances (the constructors

Callers 1

sqlite3InitModuleFunction · 0.70

Calls 4

__lookupMemberFunction · 0.70
__affirmCStringSignatureFunction · 0.70
__allocCStringFunction · 0.70
__addOnDisposeFunction · 0.70

Tested by

no test coverage detected