TMemoryStream deprecation

TMemoryStream deprecation

I used to use TMemoryStream class but now I see following comment on it in System.Classes.pas

end; // deprecated 'Use TBytesStream';

So it sends mixed signals if it is deprecated then why is it commented out and if it is not deprecated then why is this comment even there?

Can someone clarify?

Comments

  1. Not deprecated. Feel free to use TMemoryStream as you please.

    ReplyDelete
  2. nonsense.

    TBytesStream derives from TMemoryStream BTW.

    Someone is putting TBytes everywhere, but this thing stills far from an efficient type; it does not have any advenced feature...it's just a kind of binary string with less features. than the pre-2009 string

    ReplyDelete

Post a Comment