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