29template <
typename Field_type>
31 static constexpr auto value_size = Field_type::value_size;
46 __FILE__, __LINE__,
"Unable to write data to the stream",
bool is_good() const
Definition: archive.h:190
Serialization_error m_error
Holds information about error.
Definition: archive.h:197
bool is_error() const
Definition: archive.h:189
Error used internally in serialization framework.
Definition: serialization_error.h:46
Binary, write only archive implementation based on vector of bytes.
Definition: write_archive_binary.h:44
Internal_type m_stream
Internal data stream.
Definition: write_archive_binary.h:94
Write_archive_binary & operator<<(Field_type &&arg)
Ingests argument into this archive.
Definition: write_archive_binary_impl.hpp:30
std::size_t m_write_pos
Write position.
Definition: write_archive_binary.h:96
bool can_write(size_t bytes) const
Internal function used to check whether writing is possible.
Definition: write_archive_binary.cpp:34
uint16_t value_type
Definition: vt100.h:184
@ archive_write_error
Cannot write data to the stream.
Definition: sql_resultset.h:36
static size_t count_write_bytes(const Type &)
Calculates bytes needed to encode the field.
Definition: primitive_type_codec.h:96
This class is to provide functionality to encode/decode the primitive types into/out of defined strea...
Definition: primitive_type_codec.h:113