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

Method DecodeFrom

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

Source from the content-addressed store, hash-verified

36}
37
38Status BlockHandle::DecodeFrom(StringPiece* input) {
39 if (core::GetVarint64(input, &offset_) && core::GetVarint64(input, &size_)) {
40 return Status::OK();
41 } else {
42 return errors::DataLoss("bad block handle");
43 }
44}
45
46void Footer::EncodeTo(string* dst) const {
47#ifndef NDEBUG

Callers 3

OpenMethod · 0.80
BlockReaderMethod · 0.80
ApproximateOffsetOfMethod · 0.80

Calls 5

GetVarint64Function · 0.85
DecodeFixed32Function · 0.85
dataMethod · 0.45
okMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected