| 331 | } |
| 332 | |
| 333 | void 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 | } |
nothing calls this directly
no test coverage detected