[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 Change-Id: I33179c41c3c39027a941f19511b01f2bab895195 |