MCPcopy Create free account
hub / github.com/LAStools/LAStools / check_end

Method check_end

LASzip/src/lasreadpoint.cpp:539–563  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

537}
538
539BOOL 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
565BOOL LASreadPoint::done()
566{

Callers 1

read_point_defaultMethod · 0.80

Calls 2

doneMethod · 0.45
tellMethod · 0.45

Tested by

no test coverage detected