--
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/67493bb0-5396-4eb0-a5f8-5c05c8b9cd4c%40googlegroups.com.
Like this (broken into three lines with full types for illustrative purposes):kj::ArrayPtr<const capnp::word> segment = segments[i];kj::ArrayPtr<const char> chars = segment.asChars();const char* ptr = chars.begin();size_t charCount = chars.size();-Kenton
On Sun, Sep 29, 2019 at 8:28 AM 张小 <7745...@qq.com> wrote:
capnp::MallocMessageBuilder message;--kj::ArrayPtr<const kj::ArrayPtr<const capnp::word>> segments = message.getSegmentsForOutput();and I want get char* from segments how can i do ?
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 capn...@googlegroups.com.
I hava do this ,how can I get the Message from char* val_bufkj::ArrayPtr<capnp::word> capn_buf = kj::arrayPtr(reinterpret_cast<capnp::word*>(val_buf), data_file_size);
在 2019年9月30日星期一 UTC+8上午11:07:19,张小写道:
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/2666e0d4-cd04-4baa-9cad-f173be03ca44%40googlegroups.com.