#include <secstwo_serialize.h>
Public Types | |
typedef uint8_t | data_t |
Binary data type define. | |
Public Member Functions | |
binary_deserializer_t (data_t *begin, data_t *end) | |
Binary deserializer ctor Ctor throws an empty exception if deserialization goes wrong. Data passed to the ctor must remain valid until the type cast operator is called and thus actual deserialization is done. | |
pdata_item_t | operator() (data_t **next_item) |
Deserialization operator. Deserializes exactly one item from the data array. If there's more items to deserialize and. |
Definition at line 43 of file secstwo_serialize.h.
Binary deserializer ctor Ctor throws an empty exception if deserialization goes wrong. Data passed to the ctor must remain valid until the type cast operator is called and thus actual deserialization is done.
begin | Start address of binary data | |
end | The byte after the last data byte |
Definition at line 86 of file secstwo_serialize.cpp.
pdata_item_t binary_deserializer_t::operator() | ( | data_t ** | next_item | ) |
Deserialization operator. Deserializes exactly one item from the data array. If there's more items to deserialize and.
Non-empty | pointer (pter.get() != NULL) if deserialization went OK. |
next_item | Ptr to the start byte of the next data item in binary data array. |
Definition at line 163 of file secstwo_serialize.cpp.
References freesecs::secstwo::list_item_t::_data.