Base class for serializable objects.
More...
|
virtual std::vector< uint8_t > | ToByteVector () |
| Generate byte representation of the object.
|
|
virtual bool | FromByteVector (const std::vector< uint8_t > &korBytes) |
| Create (assign) an object from its byte representation.
|
|
Base class for serializable objects.
◆ FromByteVector()
virtual bool NLibCommon::CSerializable::FromByteVector |
( |
const std::vector< uint8_t > & |
korBytes | ) |
|
|
inlinevirtual |
Create (assign) an object from its byte representation.
- Parameters
-
korBytes | Byte sequence to create the object from. |
- Returns
- True on success, false on failure.
◆ ToByteVector()
virtual std::vector< uint8_t > NLibCommon::CSerializable::ToByteVector |
( |
| ) |
|
|
inlinevirtual |
Generate byte representation of the object.
- Returns
- Empty byte vector on failure, otherwise representation of the objects in the form of byte sequence.
The documentation for this class was generated from the following file: