boost::capy::const_buffer
A reference to a contiguous region of read‐only memory.
Synopsis
Declared in <boost/capy/buffers.hpp>
class const_buffer
: public /* implementation-defined */
Description
Represents a pointer and size pair for a non‐modifiable byte range. Does not own the memory. Satisfies ConstBufferSequence (as a single‐element sequence). Implicitly constructible from mutable_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 from a const std::basic_string with a maximum size. |
|
Return a buffer with a maximum size. |
|
Return a buffer from a const std::span. |
|
Return a buffer with a maximum size. |
|
Return a buffer from a const std::vector with a maximum size. |
|
Return a buffer from a const std::vector. |
|
Return a buffer from a const C‐style array. |
|
Return a buffer from a std::basic_string_view. |
|
Return a buffer. |
|
Return a buffer from a const contiguous range. |
|
Return a buffer from a const std::basic_string. |
|
Return a buffer from a const std::array. |
|
Return a buffer from a const contiguous range with a maximum size. |
|
Return a buffer. |
|
Return a buffer from a const std::array with a maximum size. |
|
Return a buffer from a const C‐style array with a maximum size. |
|
Return a buffer from a std::basic_string_view with a maximum size. |
|
Return a buffer from a const std::span with a maximum size. |
See Also
mutable_buffer, ConstBufferSequence
Created with MrDocs