6#include <bond/core/config.h>
8#include "simple_binary.h"
10#include <bond/core/detail/protocol_visitors.h>
15template <
typename BufferT,
typename MarshaledBondedProtocolsT>
17inline void SimpleBinaryReader<BufferT, MarshaledBondedProtocolsT>::Skip(
const bonded<T, SimpleBinaryReader&>& bonded)
23template <
typename BufferT>
24inline void SimpleBinaryWriter<BufferT>::WriteFieldOmitted(BondDataType type, uint16_t ,
const Metadata& metadata)
27 BOOST_ASSERT(!metadata.default_value.nothing);
32 Write(!!metadata.default_value.uint_value);
35 Write(
static_cast<uint8_t
>(metadata.default_value.uint_value));
38 Write(
static_cast<uint16_t
>(metadata.default_value.uint_value));
41 Write(
static_cast<uint32_t
>(metadata.default_value.uint_value));
44 Write(
static_cast<uint64_t
>(metadata.default_value.uint_value));
47 Write(
static_cast<float>(metadata.default_value.double_value));
50 Write(metadata.default_value.double_value);
53 Write(metadata.default_value.string_value);
61 WriteContainerBegin(0, type);
64 Write(
static_cast<int8_t
>(metadata.default_value.int_value));
67 Write(
static_cast<int16_t
>(metadata.default_value.int_value));
70 Write(
static_cast<int32_t
>(metadata.default_value.int_value));
73 Write(
static_cast<int64_t
>(metadata.default_value.int_value));
76 Write(metadata.default_value.wstring_value);
namespace bond
Definition: apply.h:17