HaxeFoundation / HaxeFoundation/haxe

Large file support

Open
#9,328 11 comments 3 reactions 0 assignees View on GitHub
Dominant language
Haxe
Stars
6.9k
Forks
715
Avg merge
2d 2h
Merged PRs (30d)
11

Description

In order to properly support files >2GB, we need to change the signature of `seek` and `tell` method for `sys.io.FileInput`, using Float instead of Int, which is more easy to handle than Int64, and provides files sizes up to 9007 TB.

seek() is not a problem, because passing Int will still work it might have 0 impact on user code, unless someone overrides it.
tell() will change the return type so it might break some code relying on it.

Alternative is to add seekLarge() tellLarge() operations but I don't like much people having to change their code once their hit 2GB limit.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.