kentonv/capnproto — pull request #87 by partylemon (2014-05-07 11:44:33+00:00)
Title: Allow direct access to the memory of a primitive list via. an ArrayPtr.

Adds an `asPtr()` method to `capnp::List::Reader`/`Builder` that returns a `kj::ArrayPtr` to the underlying memory.

This makes it a little easier to perform operations on blocks of list elements, and you can pass the list to functions/store it in classes without introducing a dependency on capnp (or copying the elements).