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

DataView and BufReader should either default to LittleEndian or require explicit endianness

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Internal Code
    • Labels:
    • Service Arch
    • Service Arch 2022-05-02

      It is way too easy to forget the annotations, and they are incompatible with some forms of the methods. Since LittleEndian is almost always what we want and NativeEndian is almost never, it seems like LittleEndian is the better implict default. Either way, I think we should never implicitly default to Native and require making it explicit.

            Assignee:
            backlog-server-servicearch [DO NOT USE] Backlog - Service Architecture
            Reporter:
            mathias@mongodb.com Mathias Stearn
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated: