34 #ifndef GRPC_INTERNAL_CPP_PROTO_PROTO_UTILS_H
35 #define GRPC_INTERNAL_CPP_PROTO_PROTO_UTILS_H
37 #include <type_traits>
39 #include <grpc/grpc.h>
50 grpc_byte_buffer** buffer);
54 int max_message_size);
58 grpc::protobuf::Message, T>::value>::type> {
61 grpc_byte_buffer** buffer,
bool* own_buffer) {
67 int max_message_size) {
69 grpc_byte_buffer_destroy(buffer);
76 #endif // GRPC_INTERNAL_CPP_PROTO_PROTO_UTILS_H
static Status Serialize(const grpc::protobuf::Message &msg, grpc_byte_buffer **buffer, bool *own_buffer)
Definition: proto_utils.h:60
static Status Deserialize(grpc_byte_buffer *buffer, grpc::protobuf::Message *msg, int max_message_size)
Definition: proto_utils.h:65
Status DeserializeProto(grpc_byte_buffer *buffer, grpc::protobuf::Message *msg, int max_message_size)
Definition: proto_utils.cc:165
Defines how to serialize and deserialize some type.
Definition: serialization_traits.h:64
Status SerializeProto(const grpc::protobuf::Message &msg, grpc_byte_buffer **buffer)
Definition: proto_utils.cc:157
::google::protobuf::Message Message
Definition: config_protobuf.h:60