Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #873, allow nullptr as an input with buffer constructor with an a… #883

Merged

Conversation

zachar1a
Copy link
Contributor

@zachar1a zachar1a commented Aug 2, 2021

|Affected Component| |
Fw::Buffer
|Related Issue(s)| |
#873
|Has Unit Tests (y/n)| |
y
|Builds Without Errors (y/n)| |
y
|Unit Tests Pass (y/n)| |
y
|Documentation Included (y/n)| |
n


Description

Allows data=nullptr and size=0 in Fw::Buffer

Rationale

#873

Testing/Review Recommendations

I added an assert inside the Buffer ut

Copy link
Collaborator

@LeStarch LeStarch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor implementation change.

UT looks good!

Fw/Buffer/Buffer.cpp Outdated Show resolved Hide resolved
@zachar1a zachar1a force-pushed the fix#873-fw_buffer_allow_nullptr_as_input branch from 69c6dda to ef7da74 Compare August 3, 2021 03:53
@LeStarch LeStarch merged commit ba57967 into nasa:devel Aug 3, 2021
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