|
moddef-cpp
Idiomatic C++ runtime for ModDef
|
A parsed ModDef document. More...
#include <document.hpp>
Public Member Functions | |
| std::string_view | doc_id () const noexcept |
| const md_doc_t * | c_doc () const noexcept |
| Document (Document &&o) noexcept | |
| Document & | operator= (Document &&o) noexcept |
| Document (const Document &)=delete | |
| Document & | operator= (const Document &)=delete |
Static Public Member Functions | |
| static Result< Document > | view (std::span< const std::uint8_t > bytes) |
| View over external bytes (no copy). | |
| static Result< Document > | own (std::vector< std::uint8_t > bytes) |
| Take ownership of a byte buffer (host-side convenience). | |
A parsed ModDef document.
Non-copyable; movable (the owned buffer, if any, keeps its address across a move).
|
inlinenoexcept |
|
delete |
|
inlinestatic |
View over external bytes (no copy).
The bytes must outlive the Document.
Take ownership of a byte buffer (host-side convenience).
|
inlinenoexcept |
|
inlinenoexcept |