| 318 | |
| 319 | |
| 320 | void BpfWriter::writeDimMajor(const PointView* data) |
| 321 | { |
| 322 | // We're going to pretend for now that we only ever have one point buffer. |
| 323 | BpfCompressor compressor(m_stream, data->size() * sizeof(float)); |
| 324 | |
| 325 | for (auto & bpfDim : m_dims) |
| 326 | { |
| 327 | if (m_header.m_compression) |
| 328 | compressor.startBlock(); |
| 329 | for (PointId idx = 0; idx < data->size(); ++idx) |
| 330 | { |
| 331 | double d = getAdjustedValue(data, bpfDim, idx); |
| 332 | m_stream << (float)d; |
| 333 | } |
| 334 | if (m_header.m_compression) |
| 335 | { |
| 336 | compressor.compress(); |
| 337 | compressor.finish(); |
| 338 | } |
| 339 | } |
| 340 | } |
| 341 | |
| 342 | |
| 343 | void BpfWriter::writeByteMajor(const PointView* data) |
nothing calls this directly
no test coverage detected