I'm curious if this package has yet adopted the v2 branch of capnproto upstream. Say you have a message you have created in C++, like:
// message = ... is a builder of some kind
VectorOutputStream stream;
capnp::MallocMessageBuilder builder;
builder.setRoot(message.asReader());
capnp::writeMessage(stream, builder.getSegmentsForOutput());
ArrayPtr<byte> p_bytes = stream.getArray();
And now, you take those p_bytes and transport them to Java, and read them. Is this supported? If so, is that the right way to do it?
I'm curious if this package has yet adopted the
v2branch ofcapnprotoupstream. Say you have a message you have created in C++, like:And now, you take those
p_bytesand transport them to Java, and read them. Is this supported? If so, is that the right way to do it?