Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.lang.c++.moderated    |    Moderated discussion of C++ superhackery    |    33,346 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 33,026 of 33,346    |
|    =?ISO-8859-1?Q?=D6=F6_Tiib?= to Jack Adrian Zappa    |
|    Re: compilers, endianness and padding    |
|    09 May 13 16:06:39    |
      26dafd6c       From: ootiib@hot.ee              On Thursday, 9 May 2013 16:30:02 UTC+3, Jack Adrian Zappa wrote:       > The rational is to be able to transfer binary data efficiently across       > a medium.              You can read C++ FAQ, it has section about serialization. Then       you can study various libraries that support binary serialization       to various formats. Then you can come up with some more       useful suggestion how C++ can support or simplify writing such       libraries more efficiently. Right now it feels that you have some       misconceptions about serialization.              > One can enforce byte order using shifts and masks, but it       > is inefficient.              It is inefficient to keep data in memory in some file format. It is       inefficient and non-portable to keep data in file in memory       layout of particular platform. So something what you request       feels to be doomed to be fundamentally inefficient.                     --        [ See http://www.gotw.ca/resources/clcm.htm for info about ]        [ comp.lang.c++.moderated. First time posters: Do this! ]              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca