mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-02 04:04:19 +00:00
[C++] Add grpc_slice_unref(slice) (#4294)
This commit is contained in:
committed by
Wouter van Oortmerssen
parent
86777bd66b
commit
8f8a27d6e5
@@ -37,6 +37,7 @@ class SerializationTraits<T, typename std::enable_if<std::is_base_of<
|
||||
auto slice = gpr_slice_from_copied_buffer(
|
||||
reinterpret_cast<const char *>(msg.buf), msg.len);
|
||||
*buffer = grpc_raw_byte_buffer_create(&slice, 1);
|
||||
grpc_slice_unref(slice);
|
||||
*own_buffer = true;
|
||||
return grpc::Status();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user