Re: looking for a crc code

2008-06-16 Thread Jens Alfke
On 15 Jun '08, at 2:09 PM, Ilan Volow wrote: Python's zlib module has crc32 Thanks, but we've already had at least a dozen redundant answers to this question. How many references to CRC32 implementations and zlib do we need? In any case I'm pretty sure the OP was looking for native code

Re: looking for a crc code

2008-06-15 Thread Chris Suter
On 15/06/2008, at 3:49 AM, Michael Hall wrote: On Jun 14, 2008, at 10:25 AM, Jens Alfke wrote: On 14 Jun '08, at 4:59 AM, Ilan Volow wrote: No mention at all I can find (in the 20 seconds I scanned the first two result pages) of any cocoa CRC implementations. If a newbie were to do a sea

Re: looking for a crc code

2008-06-15 Thread Ilan Volow
Python's zlib module has crc32 e.g. import zlib zlib.crc32("Wish things were this easy in Cocoa") -- Ilan On Jun 15, 2008, at 3:19 AM, Jason Coco wrote: There is: uLong crc32(uLong crc, const Bytef *buf, uInt len); On Jun 14, 2008, at 20:04 , Michael Vannorsdel wrote: I thought I saw a

Re: looking for a crc code

2008-06-15 Thread Andreas Mayer
I've got some old CRC code lying around. Don't know if it's Intel/64bit clean though. Maybe someone want's to check? :) // // NSData_CRC.h // // CRC algorithms for 16, 32 and 64 bit widths // // Put together by Arne Schween, Peter N. Lewis, Matthew Dillon and Thomas Tempelmann // // Be aw

Re: looking for a crc code

2008-06-15 Thread Jason Coco
There is: uLong crc32(uLong crc, const Bytef *buf, uInt len); On Jun 14, 2008, at 20:04 , Michael Vannorsdel wrote: I thought I saw a CRC32 implementation in zlib at one time. On Jun 14, 2008, at 9:25 AM, Jens Alfke wrote: On 14 Jun '08, at 4:59 AM, Ilan Volow wrote: No mention at all I c

Re: looking for a crc code

2008-06-14 Thread Michael Vannorsdel
I thought I saw a CRC32 implementation in zlib at one time. On Jun 14, 2008, at 9:25 AM, Jens Alfke wrote: On 14 Jun '08, at 4:59 AM, Ilan Volow wrote: No mention at all I can find (in the 20 seconds I scanned the first two result pages) of any cocoa CRC implementations. If a newbie were

Re: looking for a crc code

2008-06-14 Thread Tommy Nordgren
On 14 jun 2008, at 19.49, Michael Hall wrote: ...snip #import # include #include int main(int argc, const char * argv[]) { NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; unsigned long crc = crc32(0L, Z_NULL, 0); char * test = "TEST"; crc = crc32(crc,test,

Re: looking for a crc code

2008-06-14 Thread Michael Hall
--- Andrew Farmer <[EMAIL PROTECTED]> wrote: > > Yep. There was recently a discussion of this on the > list, actually. > Missed that, sorry. > > fprintf(stdout,"crc=%i\n",crc); > > Note that this'll print out the CRC as a signed > integer, which is > almost certainly not what you want

Re: looking for a crc code

2008-06-14 Thread Andrew Farmer
On 14 Jun 08, at 10:49, Michael Hall wrote: I googled up this one. Might of taken more than a minute I'm afraid. Checksum, Please http://yamacdev.blogspot.com/2006/12/checksum-please.html It suggests zlib which should always be available, shouldn't it? Yep. There was recently a discussion of t

Re: looking for a crc code

2008-06-14 Thread Michael Hall
On Jun 14, 2008, at 10:25 AM, Jens Alfke wrote: On 14 Jun '08, at 4:59 AM, Ilan Volow wrote: No mention at all I can find (in the 20 seconds I scanned the first two result pages) of any cocoa CRC implementations. If a newbie were to do a search like this and turned up such a fruitless l

Re: looking for a crc code

2008-06-14 Thread Steven Noyes
hi Angelo. This is a trickier question than it sounds. The first thing is you really have to understand is what you are after: 1) do you have an 8 bit, 16 bit or 32 bit CRC? 2) are you constrained to match someone else or is this just for your comms? 3) are you going table driven (recom

Re: looking for a crc code

2008-06-14 Thread Jens Alfke
On 14 Jun '08, at 4:59 AM, Ilan Volow wrote: No mention at all I can find (in the 20 seconds I scanned the first two result pages) of any cocoa CRC implementations. If a newbie were to do a search like this and turned up such a fruitless list of leads, I wouldn't be surprised in the least

Re: looking for a crc code

2008-06-14 Thread Ilan Volow
http://www.google.com/search?num=50&hl=en&safe=off&client=safari&rls=en-us&q=crc+cocoa&btnG=Search No mention at all I can find (in the 20 seconds I scanned the first two result pages) of any cocoa CRC implementations. If a newbie were to do a search like this and turned up such a fruitless l

Re: looking for a crc code

2008-06-13 Thread Graham Cox
No, but this was turned up on Google in about a third of a second: http://www.programmersheaven.com/download/13761/download.aspx Then, read this: http://catb.org/~esr/faqs/smart-questions.html hth, Graham On 14 Jun 2008, at 2:34 pm, Angelo Chen wrote: Hi, Is there a crc code that can be

looking for a crc code

2008-06-13 Thread Angelo Chen
Hi, Is there a crc code that can be used directly in Objective-C? any tips? Thanks. Angelo Yahoo! Mail具備一流的網上安全保護功能,請前往 http://hk.antispam.yahoo.com/ 了解更多相關資訊! ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin req