Skip to content

Generalize uses of LinearBufferBase to SerialBufferBase where possible#4995

Open
odacindy-fprime wants to merge 4 commits intonasa:develfrom
odacindy-fprime:issue-4985-pick-Linear-vs-Serial-BufferBase
Open

Generalize uses of LinearBufferBase to SerialBufferBase where possible#4995
odacindy-fprime wants to merge 4 commits intonasa:develfrom
odacindy-fprime:issue-4985-pick-Linear-vs-Serial-BufferBase

Conversation

@odacindy-fprime
Copy link
Copy Markdown
Collaborator

Related Issue(s) #4985
Has Unit Tests (y/n) y
Documentation Included (y/n) y
Generative AI was used in this contribution (y/n) y

Change Description

Reduce ues of LinearBufferBase to SerialBufferBase where possible (excluding UTs and updates that would require updates to FPP)

Rationale

To use the more general SerialBufferBase vs the more restrictive LinearBufferBase when appropriate.

Testing/Review Recommendations

Re-ran existing unit tests

Future Work

In the original issue #4985, I documented in a comment, what updates could be made that would require a change to FPP, since this pull-request does NOT include any renames that would require a change to FPP.

AI Usage (see policy)

I used both Claude and Devin AI to help identify which changes should be made, along with rationale about why it chose to make those changes, and the ability to review changes step by step, and implementation of those changes upon review, and documentation for reference.

@thomas-bc thomas-bc changed the title Issue 4985 pick linear vs serial buffer base Generalize uses of LinearBufferBase to SerialBufferBase where possible Apr 10, 2026
}

void AosFramer ::serialize_idle_spp_packet(Fw::LinearBufferBase& serializer, U16 length) {
void AosFramer ::serialize_idle_spp_packet(Fw::SerialBufferBase& serializer, U16 length) {
}

void TmFramer ::fill_with_idle_packet(Fw::LinearBufferBase& serializer) {
void TmFramer ::fill_with_idle_packet(Fw::SerialBufferBase& serializer) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants