Pass options correctly through from_bytes to FlatArrayMessageReader

This commit is contained in:
Christian Plesner Hansen
2017-02-15 12:02:41 +01:00
parent 455ffdf4ab
commit 34385afbbd
2 changed files with 26 additions and 1 deletions

View File

@@ -3783,7 +3783,9 @@ cdef class _FlatArrayMessageReader(_MessageReader):
else:
self._object_to_pin = buf
self.thisptr = new schema_cpp.FlatArrayMessageReader(schema_cpp.WordArrayPtr(<schema_cpp.word*>ptr, sz//8))
self.thisptr = new schema_cpp.FlatArrayMessageReader(
schema_cpp.WordArrayPtr(<schema_cpp.word*>ptr, sz//8),
opts)
def __dealloc__(self):
del self.thisptr