boost::capy::const_buffer
A reference to a contiguous region of read‐only memory.
Synopsis
Declared in <boost/capy/buffers.hpp>
class const_buffer;
Description
Represents a pointer and size pair for a non‐modifiable byte range. Does not own, allocate, or copy the memory: copying a buffer copies the pointer and size only. The memory must stay valid until every operation using the buffer completes. Satisfies ConstBufferSequence (as a single‐element sequence). Implicitly constructible from mutable_buffer.
Member Functions
Name |
Description |
|
Constructors |
Assign by copying. |
|
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 the first const buffer, or an empty buffer. |
|
Return a buffer referring to a region of memory, clamped to a maximum size. |
|
Return the buffer, clamped to a maximum size. |
|
Return a buffer from a |
|
Return a buffer referring to a region of memory. |
|
Return a buffer from a const contiguous range. |
|
Return a buffer from a const contiguous range, clamped to a maximum size. |
|
Return the buffer unchanged. |
|
Return a buffer from a |
See Also
Created with MrDocs