[fpc-pascal] TCustomStream still using LongInt and not Int64

Graeme Geldenhuys mailinglists at geldenhuys.co.uk
Sun Dec 27 18:37:17 CET 2020


On 27/12/2020 5:02 pm, Michael Van Canneyt via fpc-pascal wrote:
> Because on 32 bit platforms, this is the maximum size of available memory for
> a program, and we like things maximally portable. You can't read more than
> 2gb in memory on a 32-bit platform.

Ha yes, it's been so long since I ran a 32bit system, I forgot about the
memory limits. :-) Thanks for the reminder.

I see that Delphi has now introduced a Read64() method into the TStream
class. So they still keep backwards compatibility too, but allow for larger
read operations.

http://docwiki.embarcadero.com/Libraries/Sydney/en/System.Classes.TStream.Read64


Regards,
  Graeme


More information about the fpc-pascal mailing list