Created new SerialBufferBase as a parent of SerializeBufferBase. #4288
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Change Description
A pre-cursor to the work for #3429
This change introduces a parent class to SerializeBufferBase, named tentatively as SerialBufferBase. The intent is to have SerialBufferBase be the parent of both SerializeBufferBase (for linear buffers) and CircularBuffer.
As part of this change we will be improving the naming of some of the members of SerializeBufferBase that were confusing:
Rationale
Having a common parent allows CircularBuffer to be used in a more standard way in the future and unlock the ability to use it interchangeably with use-cases where currently only linear buffers can be passed.
Testing/Review Recommendations
This change will require a refactoring of auto-coded classes. In the mean time I have manually edited the auto-coded files in my sandbox to the updated naming and ensured that everything builds properly. Ran F' UTs and everything passed.
Future Work
Since we've renamed some core functions of SerializeBufferBase we will need to update FPP to generate classes with the new names.
Naming scheme should be improved, the current SerializeBufferBase should really be called LinearSerialBuffer.
AI Usage (see policy)
No AI usage for this change.