[SERVER-21466] Ensure BufReader reads numeric values in little-endian order Created: 15/Nov/15  Updated: 16/Mar/16  Resolved: 02/Mar/16

Status: Closed
Project: Core Server
Component/s: Portability
Affects Version/s: None
Fix Version/s: 3.3.3

Type: Bug Priority: Major - P3
Reporter: Bryan Chan Assignee: Mira Carey
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by SERVER-17945 Fully upgrade bufReader to use new da... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Platforms 10 (02/19/16), Platforms 11 (03/11/16)
Participants:

 Description   

BufReader has templated read and peak methods which can be used to return numeric values from a buffer (e.g. a BSON object). For portability, these methods should read numeric values in little-endian order and transparently return native-endian results.

Writing structs to buffers and reading structs from buffers will need additional consideration (or perhaps should be avoided).



 Comments   
Comment by Githook User [ 02/Mar/16 ]

Author:

{u'username': u'hanumantmk', u'name': u'Jason Carey', u'email': u'jcarey@argv.me'}

Message: SERVER-21466 Upgrade BufReader to use dataX

Allows BufReader to use DataType primitives to read little endian.
Branch: master
https://github.com/mongodb/mongo/commit/0e137710ae7338fab2b085f0f59a60c3ca3b6bb1

Generated at Thu Feb 08 03:57:26 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.