feat: add additional cython types to marshaller (#48)
This commit is contained in:
@@ -6,7 +6,7 @@ import cython
|
|||||||
cdef class Marshaller:
|
cdef class Marshaller:
|
||||||
|
|
||||||
cdef object signature_tree
|
cdef object signature_tree
|
||||||
cdef object _buf
|
cdef bytearray _buf
|
||||||
cdef object body
|
cdef object body
|
||||||
|
|
||||||
|
|
||||||
@@ -25,10 +25,23 @@ cdef class Marshaller:
|
|||||||
@cython.locals(
|
@cython.locals(
|
||||||
array_len=cython.uint,
|
array_len=cython.uint,
|
||||||
written=cython.uint,
|
written=cython.uint,
|
||||||
|
array_len_packed=cython.bytes,
|
||||||
)
|
)
|
||||||
cpdef write_array(self, object array, object type)
|
cpdef write_array(self, object array, object type)
|
||||||
|
|
||||||
|
@cython.locals(
|
||||||
|
written=cython.uint,
|
||||||
|
)
|
||||||
|
cpdef write_struct(self, object array, object type)
|
||||||
|
|
||||||
@cython.locals(
|
@cython.locals(
|
||||||
written=cython.uint,
|
written=cython.uint,
|
||||||
)
|
)
|
||||||
cpdef write_single(self, object type_, object body)
|
cpdef write_single(self, object type_, object body)
|
||||||
|
|
||||||
|
cpdef marshall(self)
|
||||||
|
|
||||||
|
@cython.locals(
|
||||||
|
offset=cython.ulong,
|
||||||
|
)
|
||||||
|
cpdef _construct_buffer(self)
|
||||||
|
|||||||
Reference in New Issue
Block a user