Somewhere I read that a statement such as
let fullFile = Storage.read('DataSet');
would just copy a reference to the data in flash - and not transfer the whole file.
However, when doing so on my device, I get a LOW_MEMORY error. Am I wrong with my assumption?
If so, it would be nice to get an extended read operation with the following signature
Storage.read(file-name, offset, length)
in order to read just parts of a file (similar to Storage.write)
Using StorageFile instead is not an option as such files do not support binary data (because 0xFF is used internally)
© Espruino, powered by microcosm.
Report a problem