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

Method AppendSegment

tensorflow/core/util/tensor_bundle/tensor_bundle.cc:1410–1417  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1408}
1409
1410Status FileOutputBuffer::AppendSegment(StringPiece data) {
1411 TF_RETURN_IF_ERROR(FlushBuffer());
1412 memcpy(&buffer_[0], data.data(), data.size());
1413 crc32c_ = crc32c::Extend(crc32c_, &buffer_[0], data.size());
1414 position_ = data.size();
1415 TF_RETURN_IF_ERROR(FlushBuffer());
1416 return Status::OK();
1417}
1418
1419Status FileOutputBuffer::Close() {
1420 TF_RETURN_IF_ERROR(FlushBuffer());

Callers 1

AppendSegmentDataMethod · 0.80

Calls 3

ExtendFunction · 0.85
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected