On 04/12/2014 02:24 PM, Michael Van Canneyt wrote:

> 
> Attached is an implementation that allows you to specify:
> 

A few comments:
- allocmem already zeros the memory. No need to do it a second time
- Getmem and Allocmem can return nil (dependent on mem manager,
sometimes on ReturnNilIfGrowHeapfails). A test in ZeroMem and RandomMem
on nil would be "Safe".
- SafeReAllocMem doesn't clear/scramble the memory in case a realloc
moves the memory block to a different place.

Cheers

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to