/usr/share/cagefs-skeleton/usr/include/grpcpp/impl/codegen
/* * * Copyright 2015 gRPC authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * */ #ifndef GRPCPP_IMPL_CODEGEN_SERIALIZATION_TRAITS_H #define GRPCPP_IMPL_CODEGEN_SERIALIZATION_TRAITS_H // IWYU pragma: private, include <grpcpp/impl/serialization_traits.h> namespace grpc { /// Defines how to serialize and deserialize some type. /// /// Used for hooking different message serialization API's into GRPC. /// Each SerializationTraits<Message> implementation must provide the /// following functions: /// 1. static Status Serialize(const Message& msg, /// ByteBuffer* buffer, /// bool* own_buffer); /// OR /// static Status Serialize(const Message& msg, /// grpc_byte_buffer** buffer, /// bool* own_buffer); /// The former is preferred; the latter is deprecated /// /// 2. static Status Deserialize(ByteBuffer* buffer, /// Message* msg); /// OR /// static Status Deserialize(grpc_byte_buffer* buffer, /// Message* msg); /// The former is preferred; the latter is deprecated /// /// Serialize is required to convert message to a ByteBuffer, and /// return that byte buffer through *buffer. *own_buffer should /// be set to true if the caller owns said byte buffer, or false if /// ownership is retained elsewhere. /// /// Deserialize is required to convert buffer into the message stored at /// msg. max_receive_message_size is passed in as a bound on the maximum /// number of message bytes Deserialize should accept. /// /// Both functions return a Status, allowing them to explain what went /// wrong if required. template <class Message, class UnusedButHereForPartialTemplateSpecialization = void> class SerializationTraits; } // namespace grpc #endif // GRPCPP_IMPL_CODEGEN_SERIALIZATION_TRAITS_H
.
Edit
..
Edit
async_generic_service.h
Edit
async_stream.h
Edit
async_unary_call.h
Edit
byte_buffer.h
Edit
call.h
Edit
call_hook.h
Edit
call_op_set.h
Edit
call_op_set_interface.h
Edit
callback_common.h
Edit
channel_interface.h
Edit
client_callback.h
Edit
client_context.h
Edit
client_interceptor.h
Edit
client_unary_call.h
Edit
completion_queue.h
Edit
completion_queue_tag.h
Edit
config.h
Edit
config_protobuf.h
Edit
core_codegen.h
Edit
core_codegen_interface.h
Edit
create_auth_context.h
Edit
delegating_channel.h
Edit
grpc_library.h
Edit
intercepted_channel.h
Edit
interceptor.h
Edit
interceptor_common.h
Edit
message_allocator.h
Edit
metadata_map.h
Edit
method_handler.h
Edit
method_handler_impl.h
Edit
proto_buffer_reader.h
Edit
proto_buffer_writer.h
Edit
proto_utils.h
Edit
rpc_method.h
Edit
rpc_service_method.h
Edit
security
Edit
serialization_traits.h
Edit
server_callback.h
Edit
server_callback_handlers.h
Edit
server_context.h
Edit
server_interceptor.h
Edit
server_interface.h
Edit
service_type.h
Edit
slice.h
Edit
status.h
Edit
status_code_enum.h
Edit
string_ref.h
Edit
stub_options.h
Edit
sync.h
Edit
sync_stream.h
Edit
time.h
Edit