@Tek I'd say in some cases the
fread
or
istream::read
are perfect candidates. However, I'm a big proponent of
coding intent (
what do you want happening) over
coding steps (
how you think that should be achieved). In particular, Spirit will give you the means to just flip the switch and specify the endianness of the input, should you ever run into such a need. You know, that kind of stuff often becomes important in binary protocols —
sehe 10 secs ago