Update SerializeAdapter #513
No reviewers
Labels
No Label
API Change
Breaking API Change
bug
build
cosmetics
Documentation
duplicate
feature
help wanted
hotfix
invalid
question
Refactor
Tests
wontfix
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: fsfw/fsfw#513
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "KSat/fsfw:mueller/serializeif-update"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
SerializerAdapter
to also take simple pointer and simply assign the serialized and deSerialized size@ -84,0 +140,4 @@
* - @c RETURN_OK Successful deserialization
*/
template<typename T>
static ReturnValue_t deSerialize(T *object, const uint8_t* const buffer,
As the Pointer can not be changed here the second const seems useless to me.
This might get rid of the const_cast
done
@ -84,0 +127,4 @@
*
* @details
* Object Must be trivially copy-able or a child of SerializeIF.
* Buffer will be moved to the current read location. Size will be decreased by the function.
The comment here is wrong. The size is no longer decreased.
done. buffer is not moved as well here
@ -84,0 +130,4 @@
* Buffer will be moved to the current read location. Size will be decreased by the function.
*
* @param[in] object: Pointer to object to deserialize
* @param[in/out] buffer: Buffer to deSerialize from
In this function the buffer is no "out" just in.
done
1899d004eb
to30217aa42b