Merge branch 'mueller/expand-serialize-if' into mueller/refactor-tmtc-stack
This commit is contained in:
commit
9ccd9fd775
@ -34,7 +34,7 @@ class SerializeIF {
|
|||||||
static const ReturnValue_t TOO_MANY_ELEMENTS =
|
static const ReturnValue_t TOO_MANY_ELEMENTS =
|
||||||
MAKE_RETURN_CODE(3); // !< There are too many elements to be deserialized
|
MAKE_RETURN_CODE(3); // !< There are too many elements to be deserialized
|
||||||
|
|
||||||
virtual ~SerializeIF() {}
|
virtual ~SerializeIF() = default;
|
||||||
/**
|
/**
|
||||||
* @brief
|
* @brief
|
||||||
* Function to serialize the object into a buffer with maxSize. Size represents the written
|
* Function to serialize the object into a buffer with maxSize. Size represents the written
|
||||||
@ -99,7 +99,8 @@ class SerializeIF {
|
|||||||
* @param streamEndianness
|
* @param streamEndianness
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
virtual ReturnValue_t serialize(uint8_t* buffer, size_t maxSize, Endianness streamEndianness) const {
|
virtual ReturnValue_t serialize(uint8_t *buffer, size_t maxSize,
|
||||||
|
Endianness streamEndianness) const {
|
||||||
size_t tmpSize = 0;
|
size_t tmpSize = 0;
|
||||||
return serialize(&buffer, &tmpSize, maxSize, streamEndianness);
|
return serialize(&buffer, &tmpSize, maxSize, streamEndianness);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user