diff options
author | 2015-06-05 07:48:27 -0700 | |
---|---|---|
committer | 2015-06-05 07:48:27 -0700 | |
commit | 4beef422642144fdfbf0afa892ebef659d156d00 (patch) | |
tree | 67744d9c655eb705627390366a17a402e2a7d81f /include/grpc++/impl/proto_utils.h | |
parent | b73856916ac97efa9ec8091ba339e82e52b5a694 (diff) |
Clarify ownership
Diffstat (limited to 'include/grpc++/impl/proto_utils.h')
-rw-r--r-- | include/grpc++/impl/proto_utils.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/grpc++/impl/proto_utils.h b/include/grpc++/impl/proto_utils.h index ee19859198..bf82f2b23d 100644 --- a/include/grpc++/impl/proto_utils.h +++ b/include/grpc++/impl/proto_utils.h @@ -59,7 +59,8 @@ class SerializationTraits<T, typename std::enable_if<std::is_base_of< grpc::protobuf::Message, T>::value>::type> { public: static bool Serialize(const grpc::protobuf::Message& msg, - grpc_byte_buffer** buffer) { + grpc_byte_buffer** buffer, bool* own_buffer) { + *own_buffer = true; return SerializeProto(msg, buffer); } static Status Deserialize(grpc_byte_buffer* buffer, |