Is there a streaming version of readFile
function? (as in, read N numbers of bytes at a time in a range
loop or something).
Reason for asking: currently developing a WASM embedding partial function and is very concerned with current readFile
function due to its “read entire file” nature when user accidentally provided a very large file. Moreover, WASM can be a large file depending on how user develops it.
Related issue: Hugo's ReadFile Function Crash Due to Non-streaming Nature · Issue #3 · ZORALab/Hestia · GitHub