boost::capy::mutable_buffer
A reference to a contiguous region of writable memory.
Synopsis
Declared in <boost/capy/buffers.hpp>
class mutable_buffer
: public /* implementation-defined */
Description
Represents a pointer and size pair for a modifiable byte range. Does not own the memory. Satisfies MutableBufferSequence (as a single‐element sequence) and is implicitly convertible to const_buffer.
Member Functions
Name |
Description |
|
Constructors |
Copy assignment. |
|
Return a pointer to the memory region. |
|
Advance the buffer start, shrinking the region. |
|
Return the size in bytes. |
Non-Member Functions
Name |
Description |
Return a buffer. |
|
Return a buffer from a std::vector with a maximum size. |
|
Return a buffer with a maximum size. |
|
Return a buffer from a std::basic_string with a maximum size. |
|
Return a buffer from a C‐style array with a maximum size. |
|
Return a buffer from a std::array. |
|
Return a buffer from a mutable std::span with a maximum size. |
|
Return a buffer from a C‐style array. |
|
Return a buffer from a std::basic_string. |
|
Return a buffer with a maximum size. |
|
Return a buffer from a mutable std::span. |
|
Return a buffer from a std::vector. |
|
Return a buffer from a std::array with a maximum size. |
|
Return a buffer from a mutable contiguous range. |
|
Return a buffer. |
|
Return a buffer from a mutable contiguous range with a maximum size. |
See Also
const_buffer, MutableBufferSequence
Created with MrDocs