TMemoryStream vs. TKbmMWMemoryStream

Home Forums kbmMW TMemoryStream vs. TKbmMWMemoryStream

This topic contains 1 reply, has 2 voices, and was last updated by  kimbomadsen 2 months, 3 weeks ago.

  • Author
    Posts
  • #53501

    mrluigi2017
    Participant

    Hi Kim,

    In the standalone ORM demo a TMemoryStream is used for an image blob. Is this the way to go? If I remeber it well there was a TKbmmwMemoryStream as well? Which one should I use?

    Thanks in advance!

  • #53503

    kimbomadsen
    Keymaster

    TkbmMWMemoryStream is an optimized TMemoryStream with some more endian features and such. Both are children of TStream.

    kbmMW’s ORM supports both TkbmMWMemoryStream and TMemoryStream, and if you are marshalling (json/xml/etc) then those also supports both.

    Internally kbmMW use TkbmMWMemoryStream in many places, but not everywhere. It mostly is when there is specific focus on performance or there is a need for its special endian support.

You must be logged in to reply to this topic.