MCPcopy Create free account
hub / github.com/csound/csound / writeToFS

Function writeToFS

Emscripten/module/src/CsoundScriptProcessorNode.js:267–273  ·  view source on GitHub ↗

* * Writes data to a file in the WASM filesystem for * use with csound. * * @param {string} filePath A string containing the path to write to. * @param {blob} blobData The data to write to file. * @memberof CsoundMixin

(filePath, blobData)

Source from the content-addressed store, hash-verified

265 */
266
267 writeToFS(filePath, blobData) {
268 let FS = CSMOD["FS"];
269 let stream = FS.open(filePath, "w+");
270 let buf = new Uint8Array(blobData);
271 FS.write(stream, buf, 0, buf.length, 0);
272 FS.close(stream);
273 },
274
275 /**
276 *

Callers

nothing calls this directly

Calls 3

openMethod · 0.80
closeMethod · 0.80
writeMethod · 0.45

Tested by

no test coverage detected