• 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: zlib works in Dubug, not in Release
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: zlib works in Dubug, not in Release


  • Subject: Re: zlib works in Dubug, not in Release
  • From: Wim Lewis <email@hidden>
  • Date: Tue, 31 Aug 2010 10:20:59 -0700

On Aug 30, 2010, at 7:51 PM, Trygve Inda wrote:
>> I am uncompressing data with zlib:
>>
>> err = uncompress( buffer, &bufferLength, (const Bytef*)data + sizeof( uLongf
>> ), [self length] - sizeof( uLongf ) );
>>
> [....]
> Just as a follow-up. More research revels that the data was compressed on a
> 32bit zlib, but I need to uncompress it when running on a 64bit machine.
>
> I have replaced the "sizeof( uLongf )" with 4 (as it is on 32bit machines,
> but internally zlib on 64bit seems to choke on the data.
>
> Can I force zlib to work with 32bit compressed data on a 64 bit app?

Zlib should behave identically on both architectures, as long as you're passing it the same stream of bytes. In what way does it choke? Are you passing an appropriate value as the initial value of bufferLength?


_______________________________________________

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: 
 >Re: zib works in Dubug, not in Release (From: Trygve Inda <email@hidden>)

  • Prev by Date: Re: can you autorelease toll-free bridged types
  • Next by Date: where are the CALayer struts and springs on iPhone?
  • Previous by thread: Re: zib works in Dubug, not in Release
  • Next by thread: Finding Core Data objects in Instruments
  • Index(es):
    • Date
    • Thread