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

Method Append

tensorflow/core/platform/s3/s3_file_system.cc:218–230  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

216 std::ios_base::out)) {}
217
218 Status Append(StringPiece data) override {
219 if (!outfile_) {
220 return errors::FailedPrecondition(
221 "The internal temporary file is not writable.");
222 }
223 sync_needed_ = true;
224 outfile_->write(data.data(), data.size());
225 if (!outfile_->good()) {
226 return errors::Internal(
227 "Could not append to the internal temporary file.");
228 }
229 return Status::OK();
230 }
231
232 Status Close() override {
233 if (outfile_) {

Callers 3

WriteStringMethod · 0.45
TEST_FFunction · 0.45
NewAppendableFileMethod · 0.45

Calls 5

FailedPreconditionFunction · 0.85
InternalFunction · 0.85
writeMethod · 0.45
dataMethod · 0.45
sizeMethod · 0.45

Tested by 2

WriteStringMethod · 0.36
TEST_FFunction · 0.36