--
You received this message because you are subscribed to the Google Groups "Cap'n Proto" group.
To unsubscribe from this group and stop receiving emails from it, send an email to capnproto+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/capnproto/081ab20b-5eae-43d5-a4fc-8230ef39d4a5%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to capn...@googlegroups.com.
On the Java side, you need to first read the bytes into a `MessageReader`. That's typically done via one of the `Serialize.read()` methods.
To unsubscribe from this group and stop receiving emails from it, send an email to capn...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to capnproto+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/capnproto/816c3227-c2b2-4b72-8ead-e707759a257c%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/capnproto/816c3227-c2b2-4b72-8ead-e707759a257c%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to capnproto+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/capnproto/1e177ff5-e49f-4d4a-b5f3-1c096604bb29%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/capnproto/1e177ff5-e49f-4d4a-b5f3-1c096604bb29%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to capnproto+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/capnproto/222eed4a-8f6a-48e7-828e-09235b228253%40googlegroups.com.
hi Kenton Vardawhen I do this:
kj::ArrayPtr<const kj::ArrayPtr<const capnp::word>> segments = message.getSegmentsForOutput();
the segments size Always 1,so in protobuf I use bytes field to send the segments[0].asChars();Is there any problem in using it like this
在 2019年10月8日星期二 UTC+8上午12:31:10,Kenton Varda写道:
To view this discussion on the web visit https://groups.google.com/d/msgid/capnproto/222eed4a-8f6a-48e7-828e-09235b228253%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Cap'n Proto" group.
To unsubscribe from this group and stop receiving emails from it, send an email to capnproto+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/capnproto/fa2451ad-4441-4c3a-8af0-39a9b45cb7c9%40googlegroups.com.
Hi Kenton:If use repeated bytes In java client ,read capn object like this?
com.google.protobuf.ByteString capn_object_bytes = response.getCapnObject();ByteBuffer[] bytes_buffer = new ByteBuffer[1];bytes_buffer[0] = capn_object_bytes.asReadOnlyByteBuffer();MessageReader message = new MessageReader(bytes_buffer, ReaderOptions.DEFAULT_READER_OPTIONS);Display.FullInfo.Reader fullInfo = message.getRoot(Display.FullInfo.factory);System.out.println("goodsId:" + fullInfo.getGoodsId());
or use org.capnproto.Serialize.read(byteBuffer)?thankswhutbd------------------ 原始邮件 ------------------发件人: "Kenton Varda"<ken...@cloudflare.com>;发送时间: 2019年11月16日(星期六) 凌晨5:53收件人: "张钊"<7745...@qq.com>;抄送: "Cap'n Proto"<capn...@googlegroups.com>;主题: Re: [capnproto] C++ Server Send capnp segments to java_client by rpc_call, In java_client how can I get the message in Correct