|
microfmt
Zero-allocation C++ formatting for constrained environments
|
Length-aware view over a remote C++ string object. More...
#include <remote_basic_string.hpp>
Public Member Functions | |
| constexpr | remote_basic_string_view (uintptr_t object_address, address_space_ref space, span< char > scratch RELOCO_LIFETIMEBOUND RELOCO_LIFETIME_CAPTURE_BY_THIS, Layout layout, size_t max_limit=4096) noexcept |
| Constructs a view over a remote string object. | |
| template<size_t N> | |
| constexpr | remote_basic_string_view (uintptr_t object_address, address_space_ref space, char(&scratch RELOCO_LIFETIMEBOUND RELOCO_LIFETIME_CAPTURE_BY_THIS)[N], Layout layout, size_t max_limit=4096) noexcept |
| Constructs a view using a fixed C array as scratch storage. | |
| constexpr uintptr_t | object_address () const noexcept |
| constexpr address_space_ref | space () const noexcept |
| constexpr span< char > | scratch () const noexcept RELOCO_LIFETIMEBOUND |
| constexpr size_t | max_limit () const noexcept |
| bool | resolve (uintptr_t &data_address, size_t &size) const noexcept |
Length-aware view over a remote C++ string object.
The layout object resolves the character-data address and byte length from the remote string representation. Formatting reads exactly that many bytes in bounded chunks, so embedded NUL characters do not terminate the read.
| Layout | Object providing separate read_size and read_data_address operations. |
|
inlineconstexprnoexcept |
Constructs a view over a remote string object.
| object_address | Address of the remote string object. |
| space | Address space containing the object and character data. |
| scratch | Reusable character-read buffer. |
| layout | Layout resolver retained by value. |
| max_limit | Maximum characters to render. |
|
inlineconstexprnoexcept |
Constructs a view using a fixed C array as scratch storage.
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlinenoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |