| 328 | } |
| 329 | |
| 330 | char* ByteOutputStream::writePosition() { |
| 331 | if (ranges_.empty()) { |
| 332 | return nullptr; |
| 333 | } |
| 334 | return reinterpret_cast<char*>(current_->buffer) + current_->position; |
| 335 | } |
| 336 | |
| 337 | void ByteOutputStream::extend(int32_t bytes) { |
| 338 | if (current_ && current_->position != current_->size) { |
no test coverage detected