
On Fri, Nov 21, 2008 at 7:54 AM, Rutger ter Borg <rutger@terborg.net> wrote:
Dear Beman,
In my recent work on the zoneinfo database for the date_time library, I have tried the current endian-0.8 from sandbox in order read big endian data.
I had partial success. Although I see a working example based on the cstdio function calls, I am primarily using an ifstream to read a binary file. I haven't been able to figure out on how to get ifstreams working in combination with big endian types. (By the way, perhaps in conjunction with iostreams, it would be nice if std::ios::big_endian would exist, and be done with it?)
Not sure I understand the request. Could you explain a bit?
Is it possible to use the endian library in combination with bniary iostreams?
Yes.
If so, would it be possible to give an example on how that should look like?
I'll try, but I'm pretty backed up right now. --Beman