We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3dd44ec commit f30c862Copy full SHA for f30c862
src/serialize.cpp
@@ -65,7 +65,8 @@ namespace sparrow_ipc
65
66
const auto body_length = static_cast<int64_t>(stream.size() - body_start);
67
const flatbuffers::uoffset_t flatbuffer_size = builder.GetSize();
68
- const auto metadata_length = static_cast<int32_t>(utils::align_to_8(flatbuffer_size));
+ const size_t prefix_size = continuation.size() + sizeof(uint32_t); // 8 bytes
69
+ const auto metadata_length = static_cast<int32_t>(utils::align_to_8(prefix_size + flatbuffer_size));
70
return {.metadata_length = metadata_length, .body_length = body_length};
71
}
72
0 commit comments