oxidecomputer / idolatry

An experimental IPC interface definition language for Hubris.
Mozilla Public License 2.0
17 stars 11 forks source link

Use the size of args struct for deserializing #15

Closed mkeeter closed 2 years ago

mkeeter commented 2 years ago

ssmarshal guarantees that the serialized size is <= the size of the input type, but that's not necessarily the same as the sum of individual struct members in the input type, since we're not packing them.

We could evaluate whether packing makes sense, but for now, this makes the server match the client (which already allocated size_of::<Func_ARGS>() for serialization).