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

Method copy_point_from_buffer

LASlib/src/lasreaderbuffered.cpp:558–573  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

556}
557
558BOOL LASreaderBuffered::copy_point_from_buffer()
559{
560 if (point_count >= buffered_points)
561 {
562 return FALSE;
563 }
564 U32 point_count_in_buffer = (point_count % points_per_buffer);
565 if (point_count_in_buffer == 0)
566 {
567 U32 buffer_count = (point_count / points_per_buffer);
568 current_buffer = buffers[buffer_count];
569 }
570 point.copy_from(&(current_buffer[point_count_in_buffer*point.total_point_size]));
571 point_count++;
572 return TRUE;
573}
574
575LASreaderBuffered::LASreaderBuffered(LASreadOpener* opener): LASreader(opener), points_per_buffer(10000)
576{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected