Open sgammon opened 10 months ago
cc / @dwrensha
I'm curious if this package has yet adopted the v2 branch of capnproto upstream.
The capnproto-c++ v2 branch may have breaking changes in its C++ API, but it does not change the wire protocol. So it might make the schema compiler plugin capnpc-java fail to compile (I haven't checked, but we can always stick to v1), but it won't make the generated java code nor the capnproto-java runtime obsolete.
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?
Yes, you can put those bytes into an ArrayInputStream
and then call Serialize.read()
on it.
Thanks for the quick response, I'll give it a try.
I'm curious if this package has yet adopted the
v2
branch ofcapnproto
upstream. Say you have a message you have created in C++, like: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?