Re: Reading binary files
Re: Reading binary files
- Subject: Re: Reading binary files
- From: Ricky Sharp <email@hidden>
- Date: Fri, 15 Oct 2004 12:30:32 -0500
On Friday, October 15, 2004, at 11:22AM, Peter Schols <email@hidden> wrote:
>
I'm trying to read the header of a shape (.shp) file (containing
>
geographical information). This works as expected for reading an
>
integer, but it does not work for reading a double. The data is in
>
little endian format. Any ideas what's going on here?
As was hinted to in another reply, there is indeed a special function for working with doubles:
double NSSwapLittleDoubleToHost(NSSwappedDouble x);
--
Rick Sharp
Instant Interactive(tm)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden