Wonder if someone could help me out a bit. I am evaluating Crystal for a number of systems and I was wondering about large file support. Firstly - I can’t find the exact definition of
IO#seek and the size of the offset argument. It seems like it is
Int32 which effectively limits the size I can seek to to just shy of 2GB, which is really not much. I routinely need to output/proxy files which are larger. When I look at reading files, the farthest I could get to was the
PReader here: https://github.com/crystal-lang/crystal/blob/master/src/file/preader.cr and it seems that the maximum offset I can feed it is also Int32, so I won’t even be able to read from a larger file (at higher offsets) if we are going to use it. Same concern with
IO.copy where the size of the
count variable is not annotated. Can I at least seek manually (without
PReader) beyound the Int32::MAX?
How do people actually deal with larger files / larger offsets at the moment? Or is there something I am missing?