[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: |
|
||||||||
| 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: Allows BufReader to use DataType primitives to read little endian. |