Reading a structured binary file?
Gary Willoughby
dev at nomad.so
Sat Aug 3 11:14:43 PDT 2013
On Friday, 2 August 2013 at 22:13:28 UTC, Jonathan M Davis wrote:
> I'd probably use std.mmfile and std.bitmanip to do it. MmFile
> will allow you to
> efficiently operate on the file as a ubyte[] in memory thanks
> to mmap, and
> std.bitmanip's peek and read functions make it easy to convert
> multiple bytes
> into integral values.
>
> - Jonathan M Davis
This sounds a great idea but once the file has been opened as a
MmFile how to i convert this to a ubyte[] so the std.bitmanip
functions work with it?
More information about the Digitalmars-d-learn
mailing list