[fpc-devel] TBytes

Martin Schreiber mse00000 at gmail.com
Tue Feb 28 05:04:10 CET 2012


Hi,
I read that we should use TBytes instead of AnsiString in order to 
implement combined binary/character buffers with automatic memory 
management. With AnsiString we used setlength() in order to allocate not 
initialized  memory.
TBytes is defined as
"
    TBytes = array of Byte;
"
where setlength() fills the buffer with zeros. What should we use instead?

Thanks, Martin



More information about the fpc-devel mailing list