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

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

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Internal Code
    • Service Arch
    • Service Arch 2022-05-02

    Description

      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.

      Attachments

        Activity

          People

            backlog-server-servicearch Backlog - Service Architecture
            mathias@mongodb.com Mathias Stearn
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated: