[fpc-devel] TBytes
Martin Schreiber
mse00000 at gmail.com
Tue Feb 28 07:29:10 CET 2012
Am 28.02.2012 08:06, schrieb Michael Schnell:
> On 02/28/2012 05:04 AM, Martin Schreiber wrote:
>> I read that we should use TBytes instead of AnsiString in order to
>> implement combined binary/character buffers with automatic memory
>> management.
>
> Why ?
>
Because of Delphi compatibility and code cleanness.
> To me ("Ansi"-) strings seem a lot more convenient in many cases (e.g.
> when implementing a kind of protocol on a Byte Stream.
>
Me too. :-)
Often we need to combine buffer data from binary pieces and character
data/strings.
Martin
More information about the fpc-devel
mailing list