What is best way to read and interpret binary files?
Neia Neutuladh
neia at ikeran.org
Tue Nov 20 03:08:33 UTC 2018
On Mon, 19 Nov 2018 14:32:55 -0800, H. S. Teoh wrote:
>> Standard caveats about byte order and alignment.
>
> Alignment shouldn't be a problem, since local variables should already
> be properly aligned.
Right, and the IO layer probably doesn't need to read to aligned memory
anyway.
Struct fields, however, need to have the same relative alignment as the
file.
More information about the Digitalmars-d-learn
mailing list