What is the D way to map a binary file to a structure?

drug via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Aug 29 07:52:50 PDT 2015


29.08.2015 17:17, cym13 пишет:
> On Saturday, 29 August 2015 at 13:56:10 UTC, drug wrote:
>> Try, for example, MessagePack https://github.com/msgpack/msgpack-d.git
>
> Thanks, but it isn't answering the question at all. I'm not looking for a
> serialization method, I'm looking for the best way to read a binary file.
>
It depends on what is the best for you. But using MessagePack you can 
easily read the file and fill a structure with it.


More information about the Digitalmars-d-learn mailing list