Expose _StructSchema's raw node
This commit is contained in:
@@ -380,6 +380,11 @@ cdef class _StructSchema:
|
|||||||
for i in xrange(nfields))
|
for i in xrange(nfields))
|
||||||
return self.__fieldnames
|
return self.__fieldnames
|
||||||
|
|
||||||
|
property node:
|
||||||
|
"""The raw schema node"""
|
||||||
|
def __get__(self):
|
||||||
|
return _DynamicStructReader()._init(self.thisptr.getProto(), None)
|
||||||
|
|
||||||
cdef class _ParsedSchema:
|
cdef class _ParsedSchema:
|
||||||
cdef C_ParsedSchema thisptr
|
cdef C_ParsedSchema thisptr
|
||||||
cdef _init(self, C_ParsedSchema other):
|
cdef _init(self, C_ParsedSchema other):
|
||||||
|
|||||||
@@ -43,7 +43,6 @@ cdef extern from "capnp/schema.h" namespace " ::capnp":
|
|||||||
uint size()
|
uint size()
|
||||||
Field operator[](uint index)
|
Field operator[](uint index)
|
||||||
|
|
||||||
Node.Reader getProto()
|
|
||||||
FieldList getFields()
|
FieldList getFields()
|
||||||
Field getFieldByName(char * name)
|
Field getFieldByName(char * name)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user