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
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to