An object that asynchronously yields a MultiBuf when Pended.
See pw::async2 for details on Pend and how it is used to build asynchronous tasks.
Inherits pw::multibuf::MultiBufAllocator::MemoryAvailableDelegate.
Public Member Functions | |
| constexpr | MultiBufAllocationFuture (MultiBufAllocator &allocator) |
| MultiBufAllocationFuture (MultiBufAllocator &allocator, size_t min_size, size_t desired_size, ContiguityRequirement contiguity_requirement) | |
| MultiBufAllocationFuture (MultiBufAllocationFuture &&) | |
| MultiBufAllocationFuture & | operator= (MultiBufAllocationFuture &&) |
| void | SetDesiredSize (size_t min_size) |
| void | SetDesiredSizes (size_t min_size, size_t desired_size, ContiguityRequirement contiguity_requirement) |
| async2::PollOptional< MultiBuf > | Pend (async2::Context &cx) |
| MultiBufAllocator & | allocator () |
Returns the allocator associated with this future. | |
| size_t | min_size () const |
| size_t | desired_size () const |
| bool | needs_contiguous () const |
Friends | |
| class | MultiBufAllocator |