serialize changes. #35
|
@ -7,6 +7,7 @@
|
||||||
/**
|
/**
|
||||||
* @brief This adapter provides an interface for SerializeIF to serialize and
|
* @brief This adapter provides an interface for SerializeIF to serialize and
|
||||||
* deserialize buffers with a header containing the buffer length.
|
* deserialize buffers with a header containing the buffer length.
|
||||||
|
* Parses the length field automatically.
|
||||||
* @details
|
* @details
|
||||||
* Can be used by SerialLinkedListAdapter by declaring
|
* Can be used by SerialLinkedListAdapter by declaring
|
||||||
* as a linked element with SerializeElement<SerialFixedArrayListAdapter<...>>.
|
* as a linked element with SerializeElement<SerialFixedArrayListAdapter<...>>.
|
||||||
|
@ -47,7 +48,7 @@ public:
|
||||||
buffer, size, max_size, bigEndian);
|
buffer, size, max_size, bigEndian);
|
||||||
}
|
}
|
||||||
|
|
||||||
size_t getSerializedSize() const {
|
size_t getSerializedSize() const override{
|
||||||
return SerialArrayListAdapter<BUFFER_TYPE, count_t>::
|
return SerialArrayListAdapter<BUFFER_TYPE, count_t>::
|
||||||
getSerializedSize(this);
|
getSerializedSize(this);
|
||||||
}
|
}
|
||||||
|
@ -58,10 +59,6 @@ public:
|
||||||
buffer, size, bigEndian);
|
buffer, size, bigEndian);
|
||||||
}
|
}
|
||||||
|
|
||||||
void swapArrayListEndianness() {
|
|
||||||
SerialArrayListAdapter<BUFFER_TYPE, count_t>::
|
|
||||||
swapArrayListEndianness(this);
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user