MCPcopy Create free account
hub / github.com/LASzip/LASzip / chunk

Method chunk

src/laswritepoint.cpp:361–390  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

359}
360
361BOOL LASwritePoint::chunk()
362{
363 if (chunk_start_position == 0 || chunk_size != U32_MAX)
364 {
365 return FALSE;
366 }
367 if (layered_las14_compression)
368 {
369 U32 i;
370 // write how many points are in the chunk
371 outstream->put32bitsLE((U8*)&chunk_count);
372 // write all layers
373 for (i = 0; i < num_writers; i++)
374 {
375 ((LASwriteItemCompressed*)writers[i])->chunk_sizes();
376 }
377 for (i = 0; i < num_writers; i++)
378 {
379 ((LASwriteItemCompressed*)writers[i])->chunk_bytes();
380 }
381 }
382 else
383 {
384 enc->done();
385 }
386 add_chunk_to_table();
387 init(outstream);
388 chunk_count = 0;
389 return TRUE;
390}
391
392BOOL LASwritePoint::done()
393{

Callers

nothing calls this directly

Calls 5

initFunction · 0.85
put32bitsLEMethod · 0.45
chunk_sizesMethod · 0.45
chunk_bytesMethod · 0.45
doneMethod · 0.45

Tested by

no test coverage detected