[GODRIVER-175] Create necessary helper functions for reading int32's and other numbers Created: 14/Dec/17  Updated: 23/Apr/18  Resolved: 23/Apr/18

Status: Closed
Project: Go Driver
Component/s: Internal
Affects Version/s: None
Fix Version/s: None

Type: New Feature Priority: Minor - P4
Reporter: Kristofer Brandow (Inactive) Assignee: Unassigned
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Epic Link: GODRIVER Refactoring

 Description   

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.


Generated at Thu Feb 08 08:33:41 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.