28template<
typename Serializer>
32 template<
typename Document>
38 template<
typename Document>
41 if (encoded.flags != 0 &&
44 "json_transcoder expects document to have JSON common flags, flags=" +
45 std::to_string(encoded.flags));
48 return Serializer::template deserialize<Document>(encoded.data);
Definition json_transcoder.hxx:30
static auto decode(const encoded_value &encoded) -> Document
Definition json_transcoder.hxx:39
static auto encode(Document document) -> encoded_value
Definition json_transcoder.hxx:33
constexpr auto has_common_flags(std::uint32_t flags) -> bool
Checks whether the upper 8 bits are set, indicating common flags presence.
Definition codec_flags.hxx:95
constexpr std::uint32_t json_common_flags
Definition codec_flags.hxx:145
Definition analytics_options.hxx:35
@ decoding_failure
Returned when decoding of the data into the user object failed.
Definition encoded_value.hxx:27