Buffer to kj::VectorOutputStream

31 views
Skip to first unread message

Erich Foster

unread,
Jan 11, 2020, 10:10:32 AM1/11/20
to Cap'n Proto
I have a logger that I have given my serialized output from capnp. Now, I have 
used this same logger to read the data back in, which gives me a void* buffer. 
It should be the same data that I gave it originally. 

My question is how do I go from the void* to  kj::VectorOutputStream?

Erich Foster

unread,
Jan 12, 2020, 8:14:04 AM1/12/20
to Cap'n Proto
It looks as though the link below covers the portion where I was stuck. If there are any caveats or extra details to get to the kj::VectorOutputStream I would be happy to hear about that.

https://stackoverflow.com/questions/49722870/capn-proto-de-serialize-struct-to-from-stdstring-for-storing-in-leveldb

Reply all
Reply to author
Forward
Message has been deleted
Message has been deleted
0 new messages