| 537 | // room in the block for in-place production (avoids a staging copy) |
| 538 | uint8_t* span(size_t& room) { room = kBlock - used_; return buf_.get() + used_; } |
| 539 | bool commit(size_t n) { used_ += n; total_ += n; return used_ < kBlock || drain(); } |
| 540 | bool write(const void* p, size_t n) { |
| 541 | const uint8_t* s = static_cast<const uint8_t*>(p); |
| 542 | while (n) { |