[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [libredwg] CRC?

From: Till Heuschmann
Subject: Re: [libredwg] CRC?
Date: Thu, 16 Sep 2010 19:04:40 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv: Gecko/20100711 Thunderbird/3.0.6

You can read the crc like this (classes section):

//ckr = bit_read_CRC(dat);
bit_check_CRC(dat, dwg->header.section[1].address + 16, 0xC0C1);

The function will read the crc but the comparison will fail due to an error in the function:
Just flip the bytes of one crc and the two crc are the same!

The magic thing is the bit_check_CRC functions parameter "seed" which must be in most sections 0xC0C1
but 0 in the SectionLocator!

Am 16.09.2010 00:34, schrieb Ivan:
2010/9/15 Till Heuschmann<address@hidden>:
What version are you talking of?

I tried dwg R13, R14 and R15


reply via email to

[Prev in Thread] Current Thread [Next in Thread]