bjornbytes / lovr

Lua Virtual Reality Framework
https://lovr.org
MIT License
2k stars 138 forks source link

Filesystem read offsets #581

Closed bjornbytes closed 1 year ago

bjornbytes commented 2 years ago

It's important to be able to read a range of bytes from a file. There are 2 ways this could be accomplished:

bjornbytes commented 2 years ago

I've also been thinking about adding Archive objects, for reading (and potentially writing) of archives like zip/tar. It's interesting to think about how File objects (and seeking) interacts with archives.

bjornbytes commented 2 years ago

Other considerations after thinking about it more:

bjornbytes commented 1 year ago

Args on .read/.write get too messy/inconsistent. I think this should be implemented as File objects. This isn't immediately planned though.

bjornbytes commented 1 year ago

File object was added in #721