• 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: problem encoding large float* matrix
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: problem encoding large float* matrix


  • Subject: Re: problem encoding large float* matrix
  • From: Jens Alfke <email@hidden>
  • Date: Tue, 1 Dec 2009 12:26:26 -0800


On Dec 1, 2009, at 12:03 PM, James Maxwell wrote:

erm... actually, just using:

[aCoder encodeBytes:coincidences length:coincsSize forKey:@"coincidences"];

fails with a complaint about getting a float* when it expects a uint8_t const.
In fact, I know remember that's why I used the NSData in the first place... any thoughts?

aCoder encodeBytes:(uint8_t*)coincidences length:coincsSize forKey:@"coincidences"];


I have no idea why they typed encodeBytes: as a const uint8_t* instead of just const void*, but they did, so you almost always have to cast.

—Jens_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >problem encoding large float* matrix (From: James Maxwell <email@hidden>)
 >Re: problem encoding large float* matrix (From: Sherm Pendley <email@hidden>)
 >Re: problem encoding large float* matrix (From: James Maxwell <email@hidden>)
 >Re: problem encoding large float* matrix (From: James Maxwell <email@hidden>)

  • Prev by Date: Re: problem encoding large float* matrix
  • Next by Date: Re: problem encoding large float* matrix
  • Previous by thread: Re: problem encoding large float* matrix
  • Next by thread: Re: problem encoding large float* matrix
  • Index(es):
    • Date
    • Thread