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

Method setup

example/laszippertest.cpp:185–198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

183 }
184
185 bool setup(unsigned int num_items, const LASitem* items)
186 {
187 unsigned int offset = 0;
188 if (point) delete [] point;
189 point = new unsigned char*[num_items];
190 if (point_data) delete [] point_data;
191 point_data = new unsigned char[point_size];
192 for (unsigned int i = 0; i < num_items; i++)
193 {
194 point[i] = &(point_data[offset]);
195 offset += items[i].size;
196 }
197 return (offset == point_size);
198 }
199
200 ~PointData()
201 {

Callers 1

run_testFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected