Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

With adding a flag to a type: This seems simple, but how would we control this from the usage?

Chris' thoughs on this

In all cases we would simply make the "endianess" setting in the ReadBuffer and WriteBuffer writable. So we can simply read the endianess settings a buffer currently has and we can change this. This would not require us to copy and duplicate the datastructures and waste memory. Reading BE or LE has absolutely no impact on how the read/write-position is updated ... it simply controlls if the read values are returned in an inverted byte order. So it should not have any memory or performance impact, even if we keept toggling endianess after every field we read.

I would propose implementing two of these aboe scenarios:

...