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

Method getFieldInternal

pdal/ColumnPointTable.cpp:142–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140
141
142void ColumnPointTable::getFieldInternal(Dimension::Id dim,
143 PointId idx, void *dst) const
144{
145 const Dimension::Detail *d = m_layoutRef.dimDetail(dim);
146 const DimBlockList& dimBlocks = m_blocks[d->order()];
147 const char *buf = dimBlocks[idx / m_blockPtCnt];
148 const char *src = buf + (Dimension::size(d->type()) * (idx % m_blockPtCnt));
149
150 copy(src, reinterpret_cast<char *>(dst), d->type());
151}
152
153char *ColumnPointTable::getDimension(const Dimension::Detail *d, PointId idx)
154{

Callers

nothing calls this directly

Calls 4

copyFunction · 0.85
orderMethod · 0.80
sizeFunction · 0.70
typeMethod · 0.45

Tested by

no test coverage detected