29template <
typename Field_type>
31 static constexpr auto value_size = Field_type::value_size;
37 if (bytes_read == 0) {
39 __FILE__, __LINE__,
"Unable to read data from the stream",
48template <
class Field_type>
51 this->
operator>>(std::forward<Field_type>(field));
bool is_good() const
Definition: archive.h:190
Serialization_error m_error
Holds information about error.
Definition: archive.h:197
Binary, read only archive implementation based on vector of bytes.
Definition: read_archive_binary.h:43
std::size_t read_pos
Read position.
Definition: read_archive_binary.h:92
Read_archive_binary & operator>>(Field_type &&arg)
Reads argument from this archive.
Definition: read_archive_binary_impl.hpp:30
std::size_t m_stream_size
Definition: read_archive_binary.h:93
void peek(Field_type &&field)
Peeks selected field wrapper (reads data without updating read stream position)
Definition: read_archive_binary_impl.hpp:49
const unsigned char * m_stream
Internal data stream.
Definition: read_archive_binary.h:91
Error used internally in serialization framework.
Definition: serialization_error.h:43
uint16_t value_type
Definition: vt100.h:184
@ archive_read_error
Cannot read data from the stream.
Definition: sql_resultset.h:36
This class is to provide functionality to encode/decode the primitive types into/out of defined strea...
Definition: primitive_type_codec.h:113