include which was missing, pool raw access size_t replacements

This commit is contained in:
Robin Müller 2020-07-05 00:33:03 +02:00
parent 1a177d2efa
commit b86e5664c4
3 changed files with 9 additions and 5 deletions

View File

@ -204,7 +204,7 @@ void PoolRawAccess::setValid(bool valid) {
this->valid = valid;
}
uint16_t PoolRawAccess::getSizeTillEnd() const {
size_t PoolRawAccess::getSizeTillEnd() const {
return sizeTillEnd;
}
@ -233,4 +233,7 @@ ReturnValue_t PoolRawAccess::deSerialize(const uint8_t **buffer, size_t *size,
*buffer += typeSize;
return HasReturnvaluesIF::RETURN_OK;
}
else {
return SerializeIF::STREAM_TOO_SHORT;
}
}

View File

@ -133,7 +133,7 @@ public:
/**
* Getter for the remaining size.
*/
uint16_t getSizeTillEnd() const;
size_t getSizeTillEnd() const;
/**
* @brief This is a call to read the value from the global data pool.
@ -202,15 +202,15 @@ private:
/**
* @brief This value contains the size of the data pool entry type in bytes.
*/
uint8_t typeSize;
size_t typeSize;
/**
* The size of the DP array (single values return 1)
*/
uint8_t arraySize;
size_t arraySize;
/**
* The size (in bytes) from the selected entry till the end of this DataPool variable.
*/
uint16_t sizeTillEnd;
size_t sizeTillEnd;
/**
* @brief The information whether the class is read-write or read-only is stored here.
*/

View File

@ -1,6 +1,7 @@
#ifndef SERIALIZEADAPTER_H_
#define SERIALIZEADAPTER_H_
#include <framework/container/IsDerivedFrom.h>
#include <framework/returnvalues/HasReturnvaluesIF.h>
#include <framework/serialize/EndianConverter.h>
#include <framework/serialize/SerializeIF.h>