Skip to content
Snippets Groups Projects
Unverified Commit 834c813c authored by Dimitrios Stoupis's avatar Dimitrios Stoupis
Browse files

Added a byte skipping method. Fixes #21

parent e2d6b355
No related branches found
No related tags found
No related merge requests found
......@@ -466,6 +466,16 @@ public:
return size; // Return the string size
}
/**
* @brief Skip read bytes in the read string
* @details Skips the provided number of bytes, by incrementing the readPosition and this is
* done to avoid accessing the `readPosition` variable directly
* @param numberOfBytes The number of bytes to be skipped
*/
void skipBytes(uint16_t numberOfBytes) {
readPosition += numberOfBytes;
}
/**
* Reset the message reading status, and start reading data from it again
*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment