MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / writeArgument

Method writeArgument

tools/ffi.js:98–100  ·  view source on GitHub ↗
(file, i)

Source from the content-addressed store, hash-verified

96class PointerType extends Type {
97 get tsType() { return "ArrayBuffer"; }
98 writeArgument(file, i) {
99 file.write(`(${ this.name })*arg${ i }`);
100 }
101 writeArgumentConversion(file, i) {
102 file.line(`void** arg${ i } = XS->toArrayBufferHandle(the, mxArgv(${ i }), 0);`);
103 }

Callers

nothing calls this directly

Calls 1

writeMethod · 0.65

Tested by

no test coverage detected