How do I read data from ::capnp::MallocMessageBuilder into 
inputStreamReader.? I am trying to do :

[code]

   kj::Array<::capnp::word> array = messageToFlatArray(message);
   kj::ArrayInputStream stream(array);  // this need kj::ArrayPtr
   ::capnp::InputStreamMessageReader message1(stream);
   auto msg_reader = message1.getRoot<A>();

[/code]

I do not want to use `WriteMessageToFd". I want to achieve it using streams.

-- 
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 [email protected].
Visit this group at https://groups.google.com/group/capnproto.

Reply via email to