[GODRIVER-717] IntEncodeValue should encode int's within 32bits as int32s Created: 17/Dec/18  Updated: 28/Oct/23  Resolved: 23/Jan/19

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

Type: Improvement Priority: Major - P3
Reporter: Eric Daniels (Inactive) Assignee: Divjot Arora (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

This will better preserve a default behavior of the more commonly used int being encoded as an int32 instead of being encoded as an int64 right now. This will make it easier to not pass around an EncodeContext with MinSize set. This should cover negative and positive values.

It might be worth decoding ints in the same vein as well.



 Comments   
Comment by Githook User [ 23/Jan/19 ]

Author:

{'email': 'divjot.arora@10gen.com', 'name': 'Divjot Arora', 'username': 'divjotarora'}

Message: Encode ints within 32 bits as int32 by default

GODRIVER-717

Change-Id: I33179c41c3c39027a941f19511b01f2bab895195
Branch: master
https://github.com/mongodb/mongo-go-driver/commit/deab33233abb95edcb77491cae47fc6f7b9c4f8d

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