C/C++ API Reference
Loading...
Searching...
No Matches
pw::multibuf::MultiBufAllocationFuture Class Reference

Overview

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 &&)
 
MultiBufAllocationFutureoperator= (MultiBufAllocationFuture &&)
 
void SetDesiredSize (size_t min_size)
 
void SetDesiredSizes (size_t min_size, size_t desired_size, ContiguityRequirement contiguity_requirement)
 
async2::PollOptional< MultiBufPend (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
 

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