MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / Reset

Method Reset

tensorflow/core/lib/io/block_builder.cc:56–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54}
55
56void BlockBuilder::Reset() {
57 buffer_.clear();
58 restarts_.clear();
59 restarts_.push_back(0); // First restart point is at offset 0
60 counter_ = 0;
61 finished_ = false;
62 last_key_.clear();
63}
64
65size_t BlockBuilder::CurrentSizeEstimate() const {
66 return (buffer_.size() + // Raw data buffer

Callers 3

GetMetadataMethod · 0.45
ReadRecordMethod · 0.45
WriteBlockMethod · 0.45

Calls 2

clearMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected