1
0
forked from fsfw/fsfw

replaced getSerializedSize returnvalue with size_t

This commit is contained in:
2020-04-05 21:54:11 +02:00
parent 7079c9c56d
commit 87852e5f2a
40 changed files with 44 additions and 44 deletions

View File

@ -100,7 +100,7 @@ ReturnValue_t Fuse::serialize(uint8_t** buffer, size_t* size,
}
uint32_t Fuse::getSerializedSize() const {
uint32_t size = 0;
size_t size = 0;
for (DeviceList::const_iterator iter = devices.begin();
iter != devices.end(); iter++) {
size += (*iter)->getSerializedSize();

View File

@ -28,7 +28,7 @@ ReturnValue_t PowerComponent::serialize(uint8_t** buffer, size_t* size,
bigEndian);
}
uint32_t PowerComponent::getSerializedSize() const {
size_t PowerComponent::getSerializedSize() const {
return sizeof(min) + sizeof(max);
}

View File

@ -22,7 +22,7 @@ public:
ReturnValue_t serialize(uint8_t** buffer, size_t* size,
const size_t max_size, bool bigEndian) const;
uint32_t getSerializedSize() const;
size_t getSerializedSize() const;
ReturnValue_t deSerialize(const uint8_t** buffer, int32_t* size,
bool bigEndian);