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

Method SizesInByte

src/io/bin.cpp:606–615  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

604 }
605
606 size_t BinMapper::SizesInByte() const {
607 size_t ret = sizeof(num_bin_) + sizeof(missing_type_) + sizeof(is_trivial_) + sizeof(sparse_rate_)
608 + sizeof(bin_type_) + sizeof(min_val_) + sizeof(max_val_) + sizeof(default_bin_);
609 if (bin_type_ == BinType::NumericalBin) {
610 ret += sizeof(double) * num_bin_;
611 } else {
612 ret += sizeof(int) * num_bin_;
613 }
614 return ret;
615 }
616
617 template class DenseBin<uint8_t>;
618 template class DenseBin<uint16_t>;

Callers 3

SaveBinaryFileMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected