Store Builders by value rather than allocate them separately on the heap (matches treatment of Readers). v0.3 fixes the bug that made this not work.

This commit is contained in:
Kenton Varda
2013-08-31 17:22:11 -07:00
parent 86b742e91d
commit 6731d7eb7d
2 changed files with 12 additions and 15 deletions

View File

@@ -99,6 +99,7 @@ cdef extern from "capnp/dynamic.h" namespace " ::capnp":
StructSchema getSchema()
Maybe[StructSchema.Field] which()
cppclass Builder:
Builder()
Builder(Builder &)
DynamicValueForward.Builder get(char *)
bint has(char *) except +ValueError
@@ -125,6 +126,7 @@ cdef extern from "capnp/dynamic.h" namespace " ::capnp":
DynamicValueForward.Reader operator[](uint) except +ValueError
uint size()
cppclass Builder:
Builder()
Builder(Builder &)
DynamicValueForward.Builder operator[](uint)
uint size()
@@ -167,6 +169,7 @@ cdef extern from "capnp/dynamic.h" namespace " ::capnp":
Data.Reader asData"as< ::capnp::Data>"()
cppclass Builder:
Builder()
Type getType()
int64_t asInt"as<int64_t>"()
uint64_t asUint"as<uint64_t>"()