| 537 | } |
| 538 | |
| 539 | BOOL LASreadPoint::check_end() |
| 540 | { |
| 541 | if (readers == readers_compressed) |
| 542 | { |
| 543 | if (dec) |
| 544 | { |
| 545 | dec->done(); |
| 546 | current_chunk++; |
| 547 | // check integrity |
| 548 | if (current_chunk < tabled_chunks) |
| 549 | { |
| 550 | I64 here = instream->tell(); |
| 551 | if (chunk_starts[current_chunk] != here) // then last chunk was corrupt |
| 552 | { |
| 553 | // create error string |
| 554 | if (last_error == 0) last_error = new CHAR[128]; |
| 555 | // report error |
| 556 | snprintf(last_error, 128, "chunk with index %u of %u is corrupt", current_chunk, tabled_chunks); |
| 557 | return FALSE; |
| 558 | } |
| 559 | } |
| 560 | } |
| 561 | } |
| 562 | return TRUE; |
| 563 | } |
| 564 | |
| 565 | BOOL LASreadPoint::done() |
| 566 | { |
no test coverage detected