Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-21466

Ensure BufReader reads numeric values in little-endian order

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.3.3
    • Affects Version/s: None
    • Component/s: Portability
    • None
    • Fully Compatible
    • ALL
    • Platforms 10 (02/19/16), Platforms 11 (03/11/16)

      BufReader has templated read and peak methods which can be used to return numeric values from a buffer (e.g. a BSON object). For portability, these methods should read numeric values in little-endian order and transparently return native-endian results.

      Writing structs to buffers and reading structs from buffers will need additional consideration (or perhaps should be avoided).

            Assignee:
            mira.carey@mongodb.com Mira Carey
            Reporter:
            bryanpkc Bryan Chan
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: