MCPcopy Create free account
hub / github.com/cinder/Cinder / prepare

Method prepare

include/asio/basic_streambuf.hpp:214–219  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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 /**

Callers 1

prepareMethod · 0.45

Calls 3

reserveFunction · 0.85
bufferFunction · 0.85
mutable_bufferClass · 0.70

Tested by

no test coverage detected