Memory layout of a data structure: Difference between revisions

Content added Content deleted
m (→‎{{header|D}}: +libhdr)
(formatting)
Line 112: Line 112:
Since as stated before the order of bits can't be assured '''but''' it could be important if we need to interact with hardware, the best way is to define ''bit masks''; of course actual writing/reading to/from an hardware "register" greater than a single byte must be done taking care of endianness.
Since as stated before the order of bits can't be assured '''but''' it could be important if we need to interact with hardware, the best way is to define ''bit masks''; of course actual writing/reading to/from an hardware "register" greater than a single byte must be done taking care of endianness.


=={{omit from|Clojure}}==
{{omit from|Clojure}}


=={{header|D}}==
=={{header|D}}==