MCPcopy Create free account
hub / github.com/antmachineintelligence/mtgbmcode / CopySubset

Method CopySubset

src/io/dense_bin.hpp:303–308  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

301 }
302
303 void CopySubset(const Bin* full_bin, const data_size_t* used_indices, data_size_t num_used_indices) override {
304 auto other_bin = dynamic_cast<const DenseBin<VAL_T>*>(full_bin);
305 for (int i = 0; i < num_used_indices; ++i) {
306 data_[i] = other_bin->data_[used_indices[i]];
307 }
308 }
309
310 void SaveBinaryToFile(const VirtualFileWriter* writer) const override {
311 writer->Write(data_.data(), sizeof(VAL_T) * num_data_);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected