#include <slice_allocator.h>
◆ AllocateCallback
◆ SliceAllocator() [1/3]
grpc_event_engine::experimental::SliceAllocator::SliceAllocator |
( |
grpc_resource_user * |
user | ) |
|
|
explicit |
◆ SliceAllocator() [2/3]
grpc_event_engine::experimental::SliceAllocator::SliceAllocator |
( |
SliceAllocator & |
other | ) |
|
|
delete |
◆ SliceAllocator() [3/3]
grpc_event_engine::experimental::SliceAllocator::SliceAllocator |
( |
SliceAllocator && |
other | ) |
|
|
noexcept |
◆ ~SliceAllocator()
grpc_event_engine::experimental::SliceAllocator::~SliceAllocator |
( |
| ) |
|
◆ Allocate()
Requests size bytes from gRPC, and populates dest with the allocated slices.
Ownership of the SliceBuffer is not transferred.
gRPC provides a ResourceQuota system to cap the amount of memory used by the library. When a memory limit has been reached, slice allocation is interrupted to attempt to reclaim memory from participating gRPC internals. When there is sufficient memory available, slice allocation proceeds as normal.
◆ operator=() [1/2]
◆ operator=() [2/2]
The documentation for this class was generated from the following file: