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

Method OctantInMemory

src/lascopcindex.cpp:288–296  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

286struct OctantInMemory : public Octant
287{
288 OctantInMemory(const U32 size)
289 {
290 point_size = size;
291 point_count = 0;
292 point_capacity = 25000;
293
294 point_buffer = (U8*)malloc_las((size_t)point_capacity * (size_t)point_size);
295 occupancy.reserve(point_capacity);
296 };
297
298 // No copy constructor. We don't want any copy of dynamically allocated U8* point_buffer.
299 // Desallocation is performed manually with clean() at appropriate places.

Callers

nothing calls this directly

Calls 1

malloc_lasFunction · 0.85

Tested by

no test coverage detected