1
0
forked from fsfw/fsfw

removed swappers for arraylist for now

This commit is contained in:
2020-05-26 00:01:07 +02:00
parent 3fd306356a
commit 242ca355f5
2 changed files with 3 additions and 25 deletions

View File

@ -250,25 +250,6 @@ protected:
* true if the array was allocated and needs to be deleted in the destructor.
*/
bool allocated;
/**
* Swap the endianness of the Array list (not the length field !)
* Useful if the case the buffer type is larger than uint8_t
* @param list
*/
void swapArrayListEndianness() {
ReturnValue_t result = HasReturnvaluesIF::RETURN_OK;
count_t i = 0;
// uint8_t buffer does not require swapping of entries.
if(sizeof(T) == 1) {
return;
}
while ((result == HasReturnvaluesIF::RETURN_OK) && (i < size)) {
T newEntry = EndianSwapper::swap(entries[i]);
entries[i] = newEntry;
++i;
}
}
};
#endif /* ARRAYLIST_H_ */