GRPC C++  1.62.0
Public Member Functions
grpc_event_engine::experimental::MemoryAllocatorFactory Class Referenceabstract

#include <memory_allocator.h>

Public Member Functions

virtual ~MemoryAllocatorFactory ()=default
 
virtual MemoryAllocator CreateMemoryAllocator (absl::string_view name)=0
 On Endpoint creation, call CreateMemoryAllocator to create a new allocator for the endpoint. More...
 

Constructor & Destructor Documentation

◆ ~MemoryAllocatorFactory()

virtual grpc_event_engine::experimental::MemoryAllocatorFactory::~MemoryAllocatorFactory ( )
virtualdefault

Member Function Documentation

◆ 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: