Change to_bytes_packed() to be more efficient

This commit is contained in:
Jason Paryani
2014-01-15 22:43:19 -08:00
parent 8c0e80529b
commit aa317e7324
4 changed files with 33 additions and 1 deletions

View File

@@ -716,6 +716,9 @@ cdef extern from "kj/array.h" namespace " ::kj":
cdef cppclass WordArray " ::kj::Array< ::capnp::word>":
word* begin()
size_t size()
cdef cppclass ByteArray " ::kj::Array< ::capnp::byte>":
char* begin()
size_t size()
cdef extern from "kj/array.h" namespace " ::kj":
cdef cppclass InputStream: