* Append buffer. */
| 33 | * Append buffer. |
| 34 | */ |
| 35 | void InPlaceBuilder::PutBuffer(std::span<const char> str) |
| 36 | { |
| 37 | auto unused = this->GetBytesUnused(); |
| 38 | if (str.size() > unused) NOT_REACHED(); |
| 39 | std::ranges::copy(str, this->dest.data() + this->position); |
| 40 | this->position += str.size(); |
| 41 | } |
| 42 | |
| 43 | /** |
| 44 | * Create coupled Consumer+Builder pair. |
no test coverage detected