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

Method EncodeTo

tensorflow/core/lib/io/format.cc:30–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28namespace table {
29
30void BlockHandle::EncodeTo(string* dst) const {
31 // Sanity check that all fields have been set
32 assert(offset_ != ~static_cast<uint64>(0));
33 assert(size_ != ~static_cast<uint64>(0));
34 core::PutVarint64(dst, offset_);
35 core::PutVarint64(dst, size_);
36}
37
38Status BlockHandle::DecodeFrom(StringPiece* input) {
39 if (core::GetVarint64(input, &offset_) && core::GetVarint64(input, &size_)) {

Callers 2

AddMethod · 0.80
FinishMethod · 0.80

Calls 4

PutVarint64Function · 0.85
PutFixed32Function · 0.85
sizeMethod · 0.45
resizeMethod · 0.45

Tested by

no test coverage detected