-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Receive path cleanup for PacketBufferHandle conversion #4128
Receive path cleanup for PacketBufferHandle conversion #4128
Conversation
#### Problem Code should use `PacketBufferHandle` rather than `PacketBuffer *`. #### Summary of Changes Simply by using `Create` factory instead of declare-adopt-move. Part of issue project-chip#2707 - Figure out a way to express PacketBuffer ownership in the type system
Size increase report for "nrfconnect-example-build" from 548b71a
Full report output
|
Size increase report for "esp32-example-build" from 548b71a
Full report output
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking at the uses here, I wonder whether Create
should be named Import
or something... Or whether once we are done we will have no real public uses of Adopt
and can just make it private and maybe name the current Create
API Adopt
?
Yes, I do want to make the current |
Problem
Code should use
PacketBufferHandle
rather thanPacketBuffer *
.Summary of Changes
Simplify by using
Create
factory instead of declare-adopt-move.Part of issue #2707 - Figure out a way to express PacketBuffer ownership in the type system