mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-29 06:50:01 +00:00
Remove max_message_size arg, which is not passed to Deserialize func.
Change-Id: Icc7b4c1cf626f49d0529ff4f66503ea8381bf67c
This commit is contained in:
@@ -43,9 +43,7 @@ class SerializationTraits<T, typename std::enable_if<std::is_base_of<
|
|||||||
|
|
||||||
// There is no de-serialization step in FlatBuffers, so we just receive
|
// There is no de-serialization step in FlatBuffers, so we just receive
|
||||||
// the data from GRPC.
|
// the data from GRPC.
|
||||||
static grpc::Status Deserialize(grpc_byte_buffer *buffer,
|
static grpc::Status Deserialize(grpc_byte_buffer *buffer, T *msg) {
|
||||||
T *msg,
|
|
||||||
int max_message_size) {
|
|
||||||
// TODO(wvo): make this more efficient / zero copy when possible.
|
// TODO(wvo): make this more efficient / zero copy when possible.
|
||||||
auto len = grpc_byte_buffer_length(buffer);
|
auto len = grpc_byte_buffer_length(buffer);
|
||||||
msg->buf = reinterpret_cast<uint8_t *>(malloc(len));
|
msg->buf = reinterpret_cast<uint8_t *>(malloc(len));
|
||||||
|
|||||||
Reference in New Issue
Block a user