◆ readSegmentTo() [1/2]
Read the segment of a column into an existing
Methods to read column segments are similar to methods to read complete columns (see Example usages: // Create a new Column
auto segment = columns.readSegment<float>({10, 50}, "NAME");
// Read into an existing Column
// This is a more complex example which demonstrates the use of offsets
Segment sourceBounds = {10, 50};
long destinationRow = 20;
std::vector<float> values(100);
PtrColumn<float> segment({"NAME", "m/s", 1}, 20, &values[destinationRow]);
columns.readSegmentTo(sourceBounds, "NAME", segment);
|