Instead of substrings the best workaround is probably to combine Storage.read with offset,length parameters and wrap the result by E.toArrayBuffer
As for Inline C it may not work as you expect with storage in SPI flash (Bangle watches), the 200K string is not directly in memory but read over SPI by JS interpreter on demand when iterating over it.
It might work with Storage in internal flash but there is not much space for big files there.
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.
Instead of substrings the best workaround is probably to combine
Storage.read
with offset,length parameters and wrap the result byE.toArrayBuffer
As for Inline C it may not work as you expect with storage in SPI flash (Bangle watches), the 200K string is not directly in memory but read over SPI by JS interpreter on demand when iterating over it.
It might work with Storage in internal flash but there is not much space for big files there.