Good morning!
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)
StorageFile
@Andreas_Rozek started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Good morning!
Somewhere I read that a statement such as
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
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)