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

Method setFieldInternal

pdal/ColumnPointTable.cpp:130–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128
129
130void ColumnPointTable::setFieldInternal(Dimension::Id dim,
131 PointId idx, const void *src)
132{
133 const Dimension::Detail *d = m_layoutRef.dimDetail(dim);
134 const DimBlockList& dimBlocks = m_blocks[d->order()];
135 char *buf = dimBlocks[idx / m_blockPtCnt];
136 char *dst = buf + (Dimension::size(d->type()) * (idx % m_blockPtCnt));
137
138 copy (reinterpret_cast<const char *>(src), dst, d->type());
139}
140
141
142void ColumnPointTable::getFieldInternal(Dimension::Id dim,

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