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

Method close

LASlib/src/laswaveform13writer.cpp:333–356  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

331}
332
333void LASwaveform13writer::close()
334{
335 if (stream->isSeekable())
336 {
337 I64 record_length_after_header = stream->tell();
338 record_length_after_header -= 60;
339 stream->seek(18);
340 if (!stream->put64bitsLE((U8*)&record_length_after_header))
341 {
342 laserror("updating EVLR record_length_after_header");
343 }
344 stream->seekEnd();
345 }
346 if (stream)
347 {
348 delete stream;
349 stream = 0;
350 }
351 if (file)
352 {
353 fclose(file);
354 file = 0;
355 }
356}

Callers

nothing calls this directly

Calls 6

laserrorFunction · 0.85
isSeekableMethod · 0.45
tellMethod · 0.45
seekMethod · 0.45
put64bitsLEMethod · 0.45
seekEndMethod · 0.45

Tested by

no test coverage detected