(obj, memberName, str)
| 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 |
no test coverage detected