Re: [capnproto] Writing to a boost gzip filter stream

2020-07-20 Thread 'Kenton Varda' via Cap'n Proto
Hi Emyr, You can use capnp::writeMessage() to write to any kind of stream. https://github.com/capnproto/capnproto/blob/7e2f70f354e2ca3d9de73ddaf974408ddbd98866/c++/src/capnp/serialize.h#L162 This function writes to a `kj::OutputStream`, which is an abstract interface that you can implement any w

[capnproto] Writing to a boost gzip filter stream

2020-07-19 Thread emyrjames1
Hi, I have an application that is currently using gzipped tab seperated fields file. The fields are a mix of strings and ints (it's the lstat info for every file in a filesystem). To store the full path in this file I base64 encode it so that the TSV format doesn't break when paths contain unp