Changeset 69864 in vbox
- Timestamp:
- Nov 28, 2017 7:06:52 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/formats/ntfs.h
r69861 r69864 76 76 /** MFT record reuse sequence number (for catching dangling references). */ 77 77 uint64_t uRecReuseSeqNo : 16; 78 } RT_UNION_NM(s);78 } s; 79 79 } NTFSMFTREF; 80 80 AssertCompileSize(NTFSMFTREF, 8); … … 95 95 * Sets the values of a MFT reference. */ 96 96 #ifdef RT_LITTLE_ENDIAN 97 # define NTFSMFTREF_GET_IDX(a_pMftRef) ((a_pMftRef)-> RT_UNION_NM(s.)idxMft)98 # define NTFSMFTREF_GET_SEQ(a_pMftRef) ((a_pMftRef)-> RT_UNION_NM(s.)uRecReuseSeqNo)99 # define NTFSMFTREF_SET_SEQ(a_pMftRef, a_uValue) do { (a_pMftRef)-> RT_UNION_NM(s.)uRecReuseSeqNo = (a_uValue); } while (0)100 # define NTFSMFTREF_SET_IDX(a_pMftRef, a_uValue) do { (a_pMftRef)-> RT_UNION_NM(s.)idxMft = (a_uValue); } while (0)97 # define NTFSMFTREF_GET_IDX(a_pMftRef) ((a_pMftRef)->s.idxMft) 98 # define NTFSMFTREF_GET_SEQ(a_pMftRef) ((a_pMftRef)->s.uRecReuseSeqNo) 99 # define NTFSMFTREF_SET_SEQ(a_pMftRef, a_uValue) do { (a_pMftRef)->s.uRecReuseSeqNo = (a_uValue); } while (0) 100 # define NTFSMFTREF_SET_IDX(a_pMftRef, a_uValue) do { (a_pMftRef)->s.idxMft = (a_uValue); } while (0) 101 101 # define NTFSMFTREF_SET(a_pMftRef, a_idx, a_uSeq) \ 102 102 do { \ 103 (a_pMftRef)-> RT_UNION_NM(s.)idxMft = (a_idx); \104 (a_pMftRef)-> RT_UNION_NM(s.)uRecReuseSeqNo = (a_uSeq); \103 (a_pMftRef)->s.idxMft = (a_idx); \ 104 (a_pMftRef)->s.uRecReuseSeqNo = (a_uSeq); \ 105 105 } while (0) 106 106 #else
Note:
See TracChangeset
for help on using the changeset viewer.