| 639 | } |
| 640 | |
| 641 | size_t buffer_size(const Sample& sample) const |
| 642 | { |
| 643 | const SerializedSizeBound bound = sample.key_only() ? key_only_bound_ : bound_; |
| 644 | return header_size_ + (bound ? bound.get() : sample.serialized_size(encoding_)); |
| 645 | } |
| 646 | |
| 647 | private: |
| 648 | bool valid_; |
no test coverage detected