void BrotliContext::finalizeOutput(Buffer::Instance& output_buffer) {
  const size_t n_output = chunk_size_ - avail_out_;
  if (n_output > 0) {
    output_buffer.add(static_cast<void*>(chunk_ptr_.get()), n_output);
  }
}
void BrotliContext::finalizeOutput(Buffer::Instance& output_buffer) {
  const size_t n_output = chunk_size_ - avail_out_;
  if (n_output > 0) {
    output_buffer.add(static_cast<void*>(chunk_ptr_.get()), n_output);
  }
}