| 612 | } |
| 613 | |
| 614 | void WriterImpl::writePostscript() { |
| 615 | if (!postScript_.SerializeToZeroCopyStream(bufferedStream_.get())) { |
| 616 | throw std::logic_error("Failed to write post script."); |
| 617 | } |
| 618 | unsigned char psLength = static_cast<unsigned char>(bufferedStream_->flush()); |
| 619 | SCOPED_STOPWATCH(options_.getWriterMetrics(), IOBlockingLatencyUs, IOCount); |
| 620 | outStream_->write(&psLength, sizeof(unsigned char)); |
| 621 | } |
| 622 | |
| 623 | void WriterImpl::buildFooterType(const Type& t, proto::Footer& footer, uint32_t& index) { |
| 624 | proto::Type protoType; |
nothing calls this directly
no test coverage detected