Class Serializable¶
Defined in File mixins.hpp
Inheritance Relationships¶
Derived Types¶
public amdinfer::InferenceRequestInput
(Class InferenceRequestInput)public amdinfer::RequestParameters
(Class RequestParameters)
Class Documentation¶
-
class Serializable¶
This class can be inherited from to implement serialization and deserialization in a class.
Subclassed by amdinfer::InferenceRequestInput, amdinfer::RequestParameters
Public Functions
-
virtual ~Serializable() = default¶
-
virtual size_t serializeSize() const = 0¶
Returns the size of the serialized data.
- Returns
size_t
-
virtual void serialize(std::byte *data_out) const = 0¶
Serializes the object to the provided memory address. There should be sufficient space to store the serialized object.
- Parameters
data_out –
-
virtual void deserialize(const std::byte *data_in) = 0¶
Deserializes the data at the provided memory address to initialize this object. If the memory cannot be deserialized, an exception is thrown.
- Parameters
data_in – a pointer to the serialized data for this object type
-
virtual ~Serializable() = default¶