MCPcopy Create free account
hub / github.com/PDAL/PDAL / setPackedData

Function setPackedData

pdal/PointRef.hpp:252–259  ·  view source on GitHub ↗

Load the point buffer from memory whose arrangement is specified by the dimension list. \param[in] dims Dimension/types of data in packed order \param[in] idx Index of point to write. \param[in] buf Packed data buffer.

Source from the content-addressed store, hash-verified

250 /// \param[in] idx Index of point to write.
251 /// \param[in] buf Packed data buffer.
252 void setPackedData(const DimTypeList& dims, const char *buf)
253 {
254 for (auto di = dims.begin(); di != dims.end(); ++di)
255 {
256 setField(di->m_id, di->m_type, (const void *)buf);
257 buf += Dimension::size(di->m_type);
258 }
259 }
260
261 bool compare(Dimension::Id dim, const PointRef& r) const
262 {

Callers

nothing calls this directly

Calls 4

setFieldFunction · 0.70
sizeFunction · 0.70
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected