Add method for reading contents of a File object as a buffer

As a Roblox plugin developer, it is currently impossible to read the contents of a file above 100 MBs when using File:GetBinaryContents()

I’m attempting to effectively mount an uncompressed zip file to my plugin so I can parse and work with the files contained within it. Because of this hard cap, I can’t even begin to read any of these files. Having a mechanism to read the file piece-meal would hopefully work around this 100k character limit.

11 Likes