xlprotips / xl

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Reading from bytes

KivalM opened this issue · comments

Is there a way to implement reading from a Vec of the bytes from the file?
For context I am working in a wasm32-unknown-unknown platform that does not have access to the fs types and I have my data sent as a Vec

Ideally there could a constructor that accepts Read + Seek so we can just wrap the content in a io::Cursor and provide it like that.

I've made the changes myself so that the crate can be run quite conveniently from webassembly.
If it interests anybody its available here https://github.com/KivalM/xl