Template Class CSerdes< sdv::XTimeout >#
Defined in File core_types_serdes.h
Class Documentation#
-
template<>
class CSerdes<sdv::XTimeout># Specialization of serializer/deserializer class for sdv::XTimeout.
Public Static Functions
-
static inline void CalcSize([[maybe_unused]] const sdv::XTimeout &rVar, [[maybe_unused]] size_t &rnSize)#
Calculate the size of the value in serialized form.
Remark
Dependable on the size value, padding is added to align data.
- Parameters:
rVar – [in] Reference to the variable.
rnSize – [inout] Reference to the variable containing the current size and increased by the size of the value.
-
template<sdv::EEndian eTargetEndianess, typename TCRC>
static inline sdv::serializer<eTargetEndianess, TCRC> &Serialize(sdv::serializer<eTargetEndianess, TCRC> &rSerializer, [[maybe_unused]] const sdv::XTimeout &rVar)# Stream the variable into the serializer.
- Template Parameters:
eTargetEndianess – The target endianness determines whether to swap the bytes before storing them into the buffer.
TCRC – The CRC type to use for the checksum calculation.
- Parameters:
rSerializer – [in] Reference to the serializer.
rVar – [in] Reference to the variable.
- Returns:
Reference to the serializer.
-
template<sdv::EEndian eSourceEndianess, typename TCRC>
static inline sdv::deserializer<eSourceEndianess, TCRC> &Deserialize(sdv::deserializer<eSourceEndianess, TCRC> &rDeserializer, [[maybe_unused]] sdv::XTimeout &rVar)# Stream the variable from the deserializer.
- Template Parameters:
eSourceEndianess – The source endianness determines whether to swap the bytes after retrieving them from the buffer.
TCRC – The CRC type to use for the checksum calculation.
- Parameters:
rDeserializer – [in] Reference to the deserializer.
rVar – [out] Reference to the variable to be filled.
- Returns:
Reference to the deserializer.
-
static inline void CalcSize([[maybe_unused]] const sdv::XTimeout &rVar, [[maybe_unused]] size_t &rnSize)#