The mongodb code base now has utilities for reading and writing data from buffers that efficiently abstracts away endianness and alignment issues. For portability among compiler implementations and hardware architectures, the storage engines should use these instead of C-style or reinterpret casts to structures.
Do not use reinterpret_cast<> to read data in storage engines
- Assignee:
-
DO NOT USE - Backlog - Platform Team
- Reporter:
-
Andy Schwerin
- Votes:
-
1 Vote for this issue - Watchers:
-
5 Start watching this issue
- Created:
- Updated:
- Resolved: