Let's say I have an array:
struct UUID
{
char data[16];
};
And I have it like so in the schema:
struct UUID
{
value @0 : Data;
}
What's the proper way to read and write this field? It looks like I should be able to wrap a capnp::Data::Reader around the array and use the builder's setValue(), but the syntax is really non-obvious.
The other way is also somewhat mysterious. How do I populate the array when deserializing? My current approach involves a memcpy, but I assume there's a Cap'n Proto way to do it.