MCPcopy Create free account
hub / github.com/FastLED/FastLED / jsAppendFileRaw

Function jsAppendFileRaw

src/platforms/wasm/compiler/index.ts:391–399  ·  view source on GitHub ↗

* Appends raw file data to WASM module file system * @param {Object} moduleInstance - The WASM module instance * @param {number} path_cstr - C string pointer to file path * @param {number} data_cbytes - C bytes pointer to file data * @param {number} len_int - Length of data in bytes

(moduleInstance, path_cstr, data_cbytes, len_int)

Source from the content-addressed store, hash-verified

389 * @param {number} len_int - Length of data in bytes
390 */
391function jsAppendFileRaw(moduleInstance, path_cstr, data_cbytes, len_int) {
392 // Stream this chunk
393 moduleInstance.ccall(
394 'jsAppendFile',
395 'number', // return value
396 ['number', 'number', 'number'], // argument types, not sure why numbers works.
397 [path_cstr, data_cbytes, len_int],
398 );
399}
400
401/**
402 * Appends Uint8Array file data to WASM module file system

Callers 1

jsAppendFileUint8Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected