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

Method SaveBinaryToFile

src/io/sparse_bin.hpp:325–329  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

323 }
324
325 void SaveBinaryToFile(const VirtualFileWriter* writer) const override {
326 writer->Write(&num_vals_, sizeof(num_vals_));
327 writer->Write(deltas_.data(), sizeof(uint8_t) * (num_vals_ + 1));
328 writer->Write(vals_.data(), sizeof(VAL_T) * num_vals_);
329 }
330
331 size_t SizesInByte() const override {
332 return sizeof(num_vals_) + sizeof(uint8_t) * (num_vals_ + 1)

Callers

nothing calls this directly

Calls 2

dataMethod · 0.80
WriteMethod · 0.45

Tested by

no test coverage detected