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::InputStream Class Reference
Inheritance diagram for sourcemeta::jsonbinpack::InputStream:
sourcemeta::jsonbinpack::Decoder

Public Types

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

Public Member Functions

 InputStream (Stream &input)
 
 InputStream (const InputStream &)=delete
 
auto operator= (const InputStream &) -> InputStream &=delete
 
auto position () const noexcept -> std::uint64_t
 
auto seek (const std::uint64_t offset) -> void
 
auto rewind (const std::uint64_t relative_offset, const std::uint64_t position) -> std::uint64_t
 
auto get_byte () -> std::uint8_t
 
auto get_word () -> std::uint16_t
 
auto get_varint () -> std::uint64_t
 
auto get_varint_zigzag () -> std::int64_t
 
auto has_more_data () const noexcept -> bool
 
auto get_string_utf8 (const std::uint64_t length) -> sourcemeta::jsontoolkit::JSON::String