40 std::enable_if_t<std::is_same_v<Document, document_type>,
bool> =
true>
44 throw std::system_error(
46 "raw_binary_transcoder expects document to have BINARY common flags, flags=" +
47 std::to_string(encoded.flags));
54#ifndef COUCHBASE_CXX_CLIENT_DOXYGEN
56struct is_transcoder<raw_binary_transcoder> :
public std::true_type {
Definition raw_binary_transcoder.hxx:30
std::vector< std::byte > document_type
Definition raw_binary_transcoder.hxx:32
static auto encode(document_type document) -> encoded_value
Definition raw_binary_transcoder.hxx:34
static auto decode(const encoded_value &encoded) -> Document
Definition raw_binary_transcoder.hxx:41
constexpr std::uint32_t binary_common_flags
Definition codec_flags.hxx:146
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
Definition analytics_options.hxx:35
@ decoding_failure
Returned when decoding of the data into the user object failed.
Definition encoded_value.hxx:27