berry-lang / berry

A ultra-lightweight embedded scripting language optimized for microcontrollers.
https://berry-lang.github.io
MIT License
812 stars 97 forks source link

load bytecode from file pointer #401

Closed s-hadinger closed 6 months ago

s-hadinger commented 7 months ago

Add ability to load bytecode from a file pointer in addition to a filename. This allows to stream bytecode from a URL.

bclosure* be_bytecode_load_from_fs(bvm *vm, void *fp);