On Thu, Jul 10, 2025 at 8:48 AM Oleksii Hladyshko <
[email protected]> wrote:
> It functions perfectly on Windows. However, for POSIX systems (macOS and
Linux), there is a slight discrepancy between the calculated size and the
actual size of the serialized message. My calculations show that it is 2
bytes smaller for both the database and the bundle. When I comment out the
code that sets those fields, the size is accurate.
>
> What causes the difference in serialized sizes between Windows and POSIX?
Could the methods I use to calculate the sizes also differ?

I'm wondering if the differences are being caused by the default UTF-16
character encoding on Windows vs. UTF-8 on Linux.

Have you inspected the contents of the serialized message, byte by byte?

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/grpc-io/CANaTVhWmqDvT5mT_0630gyhTQQwi7e%3D-mt8ju-o79by-xbjxQw%40mail.gmail.com.

Reply via email to