You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using a header, to identify what communication is done. So I thought, when I use "fixed32" for all of my header data, my header should have the same size (3x4byte = 12bytes) all the time, independet of the values.
Hi there,
I am using a header, to identify what communication is done. So I thought, when I use "fixed32" for all of my header data, my header should have the same size (3x4byte = 12bytes) all the time, independet of the values.
Cargo.toml:
So my idea is, that every message has the "MsgHeader" so, I know on every message which type it is.
So here is my definition of the header:
backend.proto
So my generated rust file looks like:
In my understanding, the struct PkgHeader must have a minimum of 3x4bytes but also a constant size.
So when I use the code in my main:
Perhaps a noob question, sorry for that, but I have no idea whats wrong.
Also the definitions says alway 4bytes:
https://stackoverflow.com/questions/59195191/when-to-use-fixed-value-protobuf-type-or-under-what-scenarios
The text was updated successfully, but these errors were encountered: