| 8519 | } |
| 8520 | |
| 8521 | BOOL doesBlockExist(U32 crc, char* bytes, U32 byteLen) { |
| 8522 | U32 i; |
| 8523 | |
| 8524 | for (i=0;i<compiledBlockCount;i++) { |
| 8525 | if (compiledBlocks[i].crc==crc) { |
| 8526 | while (compiledBlocks[i].crc==crc) { |
| 8527 | if (compiledBlocks[i].byteLen == byteLen && !memcmp(bytes, compiledBlocks[i].bytes, byteLen)) { |
| 8528 | return 1; |
| 8529 | } |
| 8530 | i++; |
| 8531 | } |
| 8532 | break; |
| 8533 | } |
| 8534 | if (compiledBlocks[i].crc>crc) |
| 8535 | break; |
| 8536 | } |
| 8537 | return 0; |
| 8538 | } |
| 8539 | |
| 8540 | static struct GenData d; |
| 8541 |