std::vector<char> getBytes(PointViewPtr view) { std::vector<char> bytes(view->pointSize() * view->size()); DimTypeList dimTypes = view->dimTypes(); char *p = bytes.data(); for (PointId idx = 0; idx < view->size(); ++idx) { view->getPackedPoint(dimTypes, idx, p); p += view->pointSize(); } return bytes; }
Checker(PointViewPtr v) : m_cnt(0), m_view(v), m_bulkBuf(v->pointSize()), m_buf(v->pointSize()), m_dims(v->dimTypes()) {}