Go to the documentation of this file.
19 #ifndef GRPCPP_IMPL_CODEGEN_MESSAGE_ALLOCATOR_H
20 #define GRPCPP_IMPL_CODEGEN_MESSAGE_ALLOCATOR_H
23 #ifndef GRPC_CALLBACK_API_NONEXPERIMENTAL
24 namespace experimental {
41 template <
typename RequestT,
typename ResponseT>
65 template <
typename RequestT,
typename ResponseT>
72 #ifndef GRPC_CALLBACK_API_NONEXPERIMENTAL
77 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
78 namespace experimental {
80 using ::grpc::RpcAllocatorState;
82 template <
typename RequestT,
typename ResponseT>
83 using MessageHolder = ::grpc::MessageHolder<RequestT, ResponseT>;
85 template <
typename RequestT,
typename ResponseT>
86 using MessageAllocator = ::grpc::MessageAllocator<RequestT, ResponseT>;
93 #endif // GRPCPP_IMPL_CODEGEN_MESSAGE_ALLOCATOR_H
virtual ~RpcAllocatorState()=default
void set_request(RequestT *request)
Definition: message_allocator.h:52
This header provides an object that reads bytes directly from a grpc::ByteBuffer, via the ZeroCopyInp...
Definition: alarm.h:24
Definition: message_allocator.h:66
virtual ~MessageAllocator()=default
virtual void FreeRequest()
Definition: message_allocator.h:35
Definition: message_allocator.h:29
void set_response(ResponseT *response)
Definition: message_allocator.h:53
ResponseT * response()
Definition: message_allocator.h:49
virtual MessageHolder< RequestT, ResponseT > * AllocateMessages()=0
Definition: message_allocator.h:42
RequestT * request()
Definition: message_allocator.h:48