Get a list of buffers that represents the output sequence, with the given size. * Ensures that the output sequence can accommodate @c n characters, * reallocating character array objects as necessary. * * @returns An object of type @c mutable_buffers_type that satisfies * MutableBufferSequence requirements, representing character array objects * at the start of the output sequence s
| 212 | * function that modifies the input sequence or output sequence. |
| 213 | */ |
| 214 | mutable_buffers_type prepare(std::size_t n) |
| 215 | { |
| 216 | reserve(n); |
| 217 | return asio::buffer(asio::mutable_buffer( |
| 218 | pptr(), n * sizeof(char_type))); |
| 219 | } |
| 220 | |
| 221 | /// Move characters from the output sequence to the input sequence. |
| 222 | /** |
no test coverage detected