diff options
author | 2016-01-25 18:22:28 -0800 | |
---|---|---|
committer | 2016-01-25 18:22:28 -0800 | |
commit | b523c732d121fad251edcd06ef6db70a9668d3c7 (patch) | |
tree | 0efc817cdd1e9c530f5aed452dd03b85a9318903 /include/grpc++/impl/serialization_traits.h | |
parent | 3452ae27c107aa583cbbb0ae01399b597b1bac4c (diff) |
async_stream.h done. Compiles
Diffstat (limited to 'include/grpc++/impl/serialization_traits.h')
-rw-r--r-- | include/grpc++/impl/serialization_traits.h | 31 |
1 files changed, 1 insertions, 30 deletions
diff --git a/include/grpc++/impl/serialization_traits.h b/include/grpc++/impl/serialization_traits.h index 3ea66a3405..53538299dd 100644 --- a/include/grpc++/impl/serialization_traits.h +++ b/include/grpc++/impl/serialization_traits.h @@ -34,35 +34,6 @@ #ifndef GRPCXX_IMPL_SERIALIZATION_TRAITS_H #define GRPCXX_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 implementation must provide the following -/// functions: -/// static Status Serialize(const Message& msg, -/// grpc_byte_buffer** buffer, -// bool* own_buffer); -/// static Status Deserialize(grpc_byte_buffer* buffer, -/// Message* msg, -/// int max_message_size); -/// -/// Serialize is required to convert message to a grpc_byte_buffer, and -/// to store a pointer to that byte buffer at *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_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 +#include <grpc++/impl/codegen/serialization_traits.h> #endif // GRPCXX_IMPL_SERIALIZATION_TRAITS_H |