Struct StringWriter

Inheritance Relationships

Base Type

Struct Documentation

struct StringWriter : public rdf4cpp::writer::BufWriterBase<StringWriter, StringBuffer>

A serializer that serializes to a std::string

Implements BufWriter

Public Types

using Buffer = StringBuffer

Public Functions

inline constexpr StringWriter(std::string &buf) noexcept
inline bool finalize() noexcept
inline std::string_view view() const noexcept
inline constexpr void clear() noexcept

Public Static Functions

static inline void flush_impl(Buffer &buffer, char *&write_area, size_t &write_area_size, size_t additional_cap) noexcept