14 #ifndef GRPC_EVENT_ENGINE_SLICE_ALLOCATOR_H
15 #define GRPC_EVENT_ENGINE_SLICE_ALLOCATOR_H
21 #include "absl/status/status.h"
29 namespace experimental {
51 std::function<void(absl::Status,
SliceBuffer* buffer)>;
Definition: slice_allocator.h:67
SliceAllocatorFactory(SliceAllocatorFactory &other)=delete
~SliceAllocatorFactory()
Definition: slice_allocator.cc:63
SliceAllocatorFactory & operator=(const SliceAllocatorFactory &other)=delete
SliceAllocator CreateSliceAllocator(absl::string_view peer_name)
On Endpoint creation, call CreateSliceAllocator with the name of the endpoint peer (a URI string,...
Definition: slice_allocator.cc:82
SliceAllocatorFactory(grpc_resource_quota *quota)
Definition: slice_allocator.cc:58
Definition: slice_allocator.h:38
absl::Status Allocate(size_t size, SliceBuffer *dest, SliceAllocator::AllocateCallback cb)
Requests size bytes from gRPC, and populates dest with the allocated slices.
Definition: slice_allocator.cc:49
SliceAllocator(SliceAllocator &other)=delete
SliceAllocator & operator=(const SliceAllocator &other)=delete
std::function< void(absl::Status, SliceBuffer *buffer)> AllocateCallback
Definition: slice_allocator.h:51
SliceAllocator(grpc_resource_user *user)
Definition: slice_allocator.cc:27
~SliceAllocator()
Definition: slice_allocator.cc:32
Definition: slice_allocator.h:32
SliceBuffer()
Definition: slice_allocator.h:34
SliceBuffer(grpc_slice_buffer *)
Definition: slice_allocator.h:35
Definition: endpoint_config.h:24
Definition: resource_quota.cc:127
Definition: resource_quota.cc:65
Represents an expandable array of slices, to be interpreted as a single item.
Definition: slice.h:78