| 362 | } |
| 363 | |
| 364 | Result<int64_t> FileWriter::GetBytesWritten() const { |
| 365 | if (bytes_written_.has_value()) { |
| 366 | return bytes_written_.value(); |
| 367 | } else { |
| 368 | return Status::Invalid("Cannot retrieve bytes written before calling Finish()"); |
| 369 | } |
| 370 | } |
| 371 | |
| 372 | namespace { |
| 373 |