i'm trying to read a large file (200kb).
(i just tested on the emulator and not the watch.)
using : let a = require("Storage").readArrayBuffer("test.map");
it loads but a.length is equal to 22053.
if i try let a = require("Storage").read("test.map", 0, 200000);
it seems to work but i get a string and i'd rather like to turn my arraybuffer into various arrays.
is there a size limit on readArrayBuffer and is there a reason for it ? do you know any kind of workaround i could use ?
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.
hi,
i'm trying to read a large file (200kb).
(i just tested on the emulator and not the watch.)
using : let a = require("Storage").readArrayBuffer("test.map");
it loads but a.length is equal to 22053.
if i try let a = require("Storage").read("test.map", 0, 200000);
it seems to work but i get a string and i'd rather like to turn my arraybuffer into various arrays.
is there a size limit on readArrayBuffer and is there a reason for it ? do you know any kind of workaround i could use ?
thanks.