1
0
forked from fsfw/fsfw

getFreeElement implemented

This commit is contained in:
2020-08-04 01:07:59 +02:00
parent f240827bbd
commit 0ead44bea9
2 changed files with 47 additions and 5 deletions

View File

@ -64,6 +64,14 @@ public:
*/
ReturnValue_t getFreeElement(uint8_t** writePointer, size_t amount);
size_t getExcessBytes() const;
/**
* Helper functions which moves any excess bytes to the start
* of the ring buffer.
* @return
*/
void moveExcessBytesToStart();
/**
* Read from circular buffer at read pointer.
* @param data