* 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)
| 389 | * @param {number} len_int - Length of data in bytes |
| 390 | */ |
| 391 | function 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 |