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

Method close

LASlib/src/laswriter_txt.cpp:555–578  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

553}
554
555I64 LASwriterTXT::close(BOOL update_header)
556{
557 I64 bytes = ftell_las(file);
558
559 if (file)
560 {
561 if (close_file)
562 {
563 fclose(file);
564 close_file = FALSE;
565 }
566 file = 0;
567 }
568 if (parse_string)
569 {
570 free(parse_string);
571 parse_string = 0;
572 }
573
574 npoints = p_count;
575 p_count = 0;
576
577 return bytes;
578}
579
580LASwriterTXT::LASwriterTXT()
581{

Callers

nothing calls this directly

Calls 1

ftell_lasFunction · 0.85

Tested by

no test coverage detected