[fpc-pascal] Array clearing
pascaldragon at googlemail.com
Tue Apr 4 13:52:09 CEST 2017
Am 04.04.2017 12:52 schrieb "Mark Morgan Lloyd" <
markMLl.fpc-pascal at telemetry.co.uk>:
> On 02/04/17 10:00, Jonas Maebe wrote:
>> Allocating new memory via setlength also clears the memory (+ the
>> overhead of allocating the memory).
> Jonas, is it still the case that if SetLength() results in existing data
being moved that the original- which might be e.g. an unencrypted password-
The reallocation is delegated to the memory manager, thus SetLength() can
not know what is really done with the data area.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the fpc-pascal