Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
E
ECSS Services
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AcubeSat-OBC
ECSS Services
Commits
834c813c
Unverified
Commit
834c813c
authored
6 years ago
by
Dimitrios Stoupis
Browse files
Options
Downloads
Patches
Plain Diff
Added a byte skipping method. Fixes #21
parent
e2d6b355
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
inc/Message.hpp
+10
-0
10 additions, 0 deletions
inc/Message.hpp
with
10 additions
and
0 deletions
inc/Message.hpp
+
10
−
0
View file @
834c813c
...
...
@@ -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
*/
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment