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

Allow null data pointers for writes. #2481

Merged
merged 1 commit into from
Sep 6, 2021

Conversation

KiterLuc
Copy link
Contributor

@KiterLuc KiterLuc commented Sep 6, 2021

As a minor follow up to #2476 we expand the empty attribute writes to allow the data buffer to be null. This is useful for C++ users who might be using std::vector for their underlying data buffer where the vector's std::vector::data() will return nullptr when the vector is empty.


TYPE: IMPROVEMENT
DESC: Allow null data pointers for writes.

---
TYPE: IMPROVEMENT
DESC: Allow null data pointers for writes.
@shortcut-integration
Copy link

This pull request has been linked to Clubhouse Story #10151: Allow passing nullptr for data buffer if size is zero.

Copy link
Member

@Shelnutt2 Shelnutt2 left a comment

Choose a reason for hiding this comment

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

Works great, thanks!

@Shelnutt2 Shelnutt2 merged commit c101af6 into dev Sep 6, 2021
@Shelnutt2 Shelnutt2 deleted the lr/write-allow-null-data-ptr/ch10151 branch September 6, 2021 15:44
github-actions bot pushed a commit that referenced this pull request Sep 6, 2021
As a minor follow up to #2476 we expand the empty attribute writes to allow the data buffer to be null. This is useful for C++ users who might be using `std::vector` for their underlying data buffer where the vector's `std::vector::data()` will return `nullptr` when the vector is empty.

---
TYPE: IMPROVEMENT
DESC: Allow null data pointers for writes.
Shelnutt2 pushed a commit that referenced this pull request Sep 7, 2021
As a minor follow up to #2476 we expand the empty attribute writes to allow the data buffer to be null. This is useful for C++ users who might be using `std::vector` for their underlying data buffer where the vector's `std::vector::data()` will return `nullptr` when the vector is empty.

---
TYPE: IMPROVEMENT
DESC: Allow null data pointers for writes.

Co-authored-by: KiterLuc <67824247+KiterLuc@users.noreply.github.com>
bekadavis9 pushed a commit that referenced this pull request Oct 13, 2021
As a minor follow up to #2476 we expand the empty attribute writes to allow the data buffer to be null. This is useful for C++ users who might be using `std::vector` for their underlying data buffer where the vector's `std::vector::data()` will return `nullptr` when the vector is empty.

---
TYPE: IMPROVEMENT
DESC: Allow null data pointers for writes.
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.

None yet

2 participants