[fpc-devel] Growing a memory stream

Michael Van Canneyt michael at freepascal.org
Mon Dec 11 17:42:04 CET 2006



On Mon, 11 Dec 2006, Micha Nelissen wrote:

> Vincent Snijders wrote:
> > Hi,
> > 
> > Currently the TMemoryStream grows in steps of 4096 bytes.
> 
> Very nice would be a linked list of 8KB blocks or so, and when you access
> .Memory, then it's copied into an array.

I think you can create a separate implementation for this, descended from
TCustomMemoryStream ?

Michael.



More information about the fpc-devel mailing list