You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, We Does NOT support chained buffers clone in PacketBufferHandle.
PacketBufferHandle CloneData(uint16_t aAdditionalSize = 0, uint16_t aReservedSize = PacketBuffer::kDefaultHeaderReserve);
Proposed Solution
Support CloneData with chained buffers in PacketBufferHandle
The text was updated successfully, but these errors were encountered:
#### Problem
It's sometimes useful to clone an entire packet buffer chain (e.g. project-chip#5309).
(If cloning only a single buffer is necessary,
`NewWithData(buffer->Start(), buffer->DataLength(), 0, buffer->ReservedSize())`
will do the job.)
#### Summary of Changes
Support chained buffers in `PacketBufferHandle::CloneData()`.
Fixesproject-chip#5348 - Support CloneData with chained buffers in PacketBufferHandle
* Support chained buffers in PacketBufferHandle::CloneData()
#### Problem
It's sometimes useful to clone an entire packet buffer chain (e.g. #5309).
(If cloning only a single buffer is necessary,
`NewWithData(buffer->Start(), buffer->DataLength(), 0, buffer->ReservedSize())`
will do the job.)
#### Summary of Changes
Support chained buffers in `PacketBufferHandle::CloneData()`.
Fixes#5348 - Support CloneData with chained buffers in PacketBufferHandle
* Restyled by clang-format
* review fix
Co-authored-by: Restyled.io <commits@restyled.io>
Problem
Currently, We Does NOT support chained buffers clone in PacketBufferHandle.
PacketBufferHandle CloneData(uint16_t aAdditionalSize = 0, uint16_t aReservedSize = PacketBuffer::kDefaultHeaderReserve);
Proposed Solution
Support CloneData with chained buffers in PacketBufferHandle
The text was updated successfully, but these errors were encountered: