TStream.ReadBuffer should take an 'out' parameter instead of 'var' parameter
Original Reporter info from Mantis: szali
-
Reporter name: szali
Original Reporter info from Mantis: szali
- Reporter name: szali
Description:
FPC always complains if I use TStream.ReadBuffer to initialize a variable, saying that e.g. 'i' has not been initialized when writing:
s.ReadBuffer(i, 4);
Therefore this method should take the first parameter as 'out' and not 'var' if possible, because this would prevent these compiler warnings, and would make more logical sense anyway.
Steps to reproduce:
use TStream.ReadBuffer to initialize a variable
Mantis conversion info:
- Mantis ID: 20989
- OS: all
- OS Build: all
- Platform: all
- Version: 2.4.4