JSON BinPack  0.0.1
A space-efficient open-source binary JSON serialization format based on JSON Schema with both schema-driven and schema-less support.
sourcemeta::jsonbinpack::OutputStream Class Reference
Inheritance diagram for sourcemeta::jsonbinpack::OutputStream:
sourcemeta::jsonbinpack::Encoder

Public Types

using Stream = std::basic_ostream< sourcemeta::jsontoolkit::JSON::Char, sourcemeta::jsontoolkit::JSON::CharTraits >
 

Public Member Functions

 OutputStream (Stream &output)
 
 OutputStream (const OutputStream &)=delete
 
auto operator= (const OutputStream &) -> OutputStream &=delete
 
auto position () const noexcept -> std::uint64_t
 
auto put_byte (const std::uint8_t byte) -> void
 
auto put_bytes (const std::uint16_t bytes) -> void
 
auto put_varint (const std::uint64_t value) -> void
 
auto put_varint_zigzag (const std::int64_t value) -> void
 
auto put_string_utf8 (const sourcemeta::jsontoolkit::JSON::String &string, const std::uint64_t length) -> void