[fpc-pascal] TMemoryStream.SetSize question.

gabor gabor at poczta.onet.pl
Mon Jun 14 20:59:07 CEST 2021

Why does TMemoryStream only implement one version of SetSize method?


The TStream class has two versions of SetSize method (virtual, overload) 
- one with a parameter of LongInt type and the other with the Int64 
type. Since function is virtual, child classes can override it and can 
be called from code, but then a version of the SetSize function not 
implemented for a given platform in the TMemoryStream class can be called.


More information about the fpc-pascal mailing list