#include <memory_allocator.h>
◆ ~MemoryAllocatorFactory()
virtual grpc_event_engine::experimental::MemoryAllocatorFactory::~MemoryAllocatorFactory |
( |
| ) |
|
|
virtualdefault |
◆ CreateMemoryAllocator()
virtual MemoryAllocator grpc_event_engine::experimental::MemoryAllocatorFactory::CreateMemoryAllocator |
( |
absl::string_view |
name | ) |
|
|
pure virtual |
On Endpoint creation, call CreateMemoryAllocator to create a new allocator for the endpoint.
name is used to label the memory allocator in debug logs. Typically we'll want to: auto allocator = factory->CreateMemoryAllocator(peer_address_string); auto* endpoint = allocator->New<MyEndpoint>(std::move(allocator), ...);
The documentation for this class was generated from the following file: