Transitional v1-compatible interface backed by the v2 implementation.
Learn more: Why are there three versions?
Functions | |
| std::optional< v1_adapter::MultiBuf > | pw::multibuf::v1_adapter::FromSpan (Allocator &metadata_allocator, ByteSpan region, Function< void(ByteSpan)> &&deleter) |
| std::optional< v1_adapter::MultiBuf > pw::multibuf::v1_adapter::FromSpan | ( | Allocator & | metadata_allocator, |
| ByteSpan | region, | ||
| Function< void(ByteSpan)> && | deleter | ||
| ) |
Creates a multibuf from an existing span and a deleter callback.
This function can be used as a drop-in replacement for v1::FromSpan while migrating to using pw_multibuf/v2.