• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Reading binary files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Reading binary files (From: Peter Schols <email@hidden>)

  • Prev by Date: Re: Reading binary files
  • Next by Date: Re: Reading binary files
  • Previous by thread: Re: Reading binary files
  • Next by thread: Re: Reading binary files
  • Index(es):
    • Date
    • Thread