Pigweed
 
Loading...
Searching...
No Matches
pw::multibuf::MultiBufAllocationFuture Class Reference

#include <allocator_async.h>

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 &&)
 
MultiBufAllocationFutureoperator= (MultiBufAllocationFuture &&)
 
void SetDesiredSize (size_t min_size)
 
void SetDesiredSizes (size_t min_size, size_t desired_size, ContiguityRequirement contiguity_requirement)
 
async2::Poll< std::optional< MultiBuf > > Pend (async2::Context &cx)
 
MultiBufAllocatorallocator ()
 Returns the allocator associated with this future.
 
size_t min_size () const
 
size_t desired_size () const
 
bool needs_contiguous () const
 

Friends

class MultiBufAllocator
 

Detailed Description

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.


The documentation for this class was generated from the following file: