-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Begin SystemPacketBuffer.h cleanup (#4096)
* Begin SystemPacketBuffer.h cleanup #### Problem Code should use `PacketBufferHandle` rather than `PacketBuffer *`. Some existing methods should be removed or made private so that code does not have unnecessary access to the raw pointer. #### Summary of Changes - Consolidated PacketBuffer and PacketBufferHeader method descriptions into the header; clarified which are in transition. - Most uses of Next(), which returns a raw pointer, only checked existence; added PacketBuffer::HasChainedBuffer() to replace these. - Removed DetachTail_ForNow(), as it has no remaining callers. - Converted TestSystemPacketBuffer to friended class, so that it can continue to use and test private methods. (Refactoring to focus on the PacketBufferHandle interface will follow.) Part of issue #2707 - Figure out a way to express PacketBuffer ownership in the type system * Fix Doxygen * Fix Doxygen ONCE AND FOR ALL * Fix description * Description proofreading
- Loading branch information
1 parent
eb8217f
commit 548b71a
Showing
10 changed files
with
497 additions
and
319 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.