Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-175

Create necessary helper functions for reading int32's and other numbers

    • Type: Icon: New Feature New Feature
    • Resolution: Won't Fix
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Internal
    • Labels:
      None

      Doing a bunch of stuff with the unsafe package doesn't make much sense, we can just copy the implementation from the binary package. We can call the package lendian for now, put it under internal, and use it across the bson, builder, and elements packages. For now implement Uint32, Uint64, Int32, Int64, Decimal128, PutUint32, PutUint64, PutInt32, PutInt64, and PutDecimal128. All implementations should be little endian.

      After the implementation is complete and tested, switch out the usage across the packages that aren't currently being worked on.

            Assignee:
            Unassigned Unassigned
            Reporter:
            kris.brandow@mongodb.com Kristofer Brandow (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: