A Chunk-oriented view of a MultiBuf that mimics v1::MultiBufChunks.
This type mimics the public API of v1::MultiBuf that derives from the privately inherited v1::MultiBufChunks, rather than the API of v1::MultiBufChunks itself.
This function can be used as a drop-in replacement for v1::MultiBuf while migrating to using pw_multibuf/v2.
|
|
using | iterator = Iterator< Mutability::kMutable > |
| |
|
using | const_iterator = Iterator< Mutability::kConst > |
| |
◆ size()
| constexpr size_t pw::multibuf::v1_adapter::MultiBufChunks::size |
( |
| ) |
const |
|
constexpr |
Returns the number of Chunks in this MultiBuf, including empty chunks.
◆ v2()
Returns the v2 MultiBuf used to implement both the v1 and v2 APIs.
This can be useful for methods that are only in the v1 API of this type due to name collisions, such as empty(), size(), and Chunks().
for (auto chunk : mb.Chunks() {
}
for (auto chunk : mb.v2().Chunks() {
}
The documentation for this class was generated from the following file:
- pw_multibuf/v1_adapter/public/pw_multibuf/v1_adapter/multibuf.h