|
microfmt
Zero-allocation C++ formatting for constrained environments
|
Fixed-capacity, zero-allocation registry of ELF images. More...
#include <elf_enumerator.hpp>
Public Member Functions | |
| constexpr | multi_elf_registry_context () noexcept=default |
| Constructs an empty registry. | |
| constexpr bool | register_image (const elf_image_info &info) noexcept |
| Registers an image, failing when the table is full. | |
| constexpr bool | enumerate (span< elf_image_info > out_buffer, size_t &out_count) const noexcept |
| Copies registered images into a caller buffer. | |
| constexpr bool | find_by_pc (uintptr_t pc, elf_image_info &out_info) const noexcept |
Locates the registered image containing pc. | |
| constexpr size_t | size () const noexcept |
| Returns the number of registered images. | |
Fixed-capacity, zero-allocation registry of ELF images.
| MaxImages | Maximum number of registered images. |
|
constexprdefaultnoexcept |
Constructs an empty registry.
|
inlineconstexprnoexcept |
Copies registered images into a caller buffer.
| out_buffer | Destination buffer. |
| out_count | Receives the number of images stored. |
true.
|
inlineconstexprnoexcept |
Locates the registered image containing pc.
| pc | Code address to look up. |
| out_info | Receives the owning image record. |
true when an owning image was found.
|
inlineconstexprnoexcept |
Registers an image, failing when the table is full.
| info | Image record to append. |
true on success, false when at capacity.
|
inlineconstexprnoexcept |
Returns the number of registered images.