"... ...", , . , , / .
( ) ; " ABI", , , 32-/64- Windows, 32-/64- Linux, MacOSX.
'# pragma pack' , . , "" 64- Windows 32-, 64- - Linux MacOSX.
, , , - (RPC) / "", . "XDR" ( eXternal Data). . RFC1832.
, ; XML, XDR, google:: protobuf, boost Qt:: Variant, .
On the side of pure implementation: for simplicity, just assume that "unsigned int" is everywhere 32 bits aligned on a 32-bit boundary; if you can encode all your data in an array of 32-bit values, then the only externalization problem that you have to deal with is the statement.
source
share