paleolimbot commented on code in PR #391:
URL: https://github.com/apache/arrow-nanoarrow/pull/391#discussion_r1500824464
##########
python/src/nanoarrow/_lib.pyx:
##########
@@ -861,6 +867,27 @@ cdef class CSchemaView:
return _repr_utils.schema_view_repr(self)
+cdef class CLayout:
+ cdef ArrowLayout* _layout
+ cdef object _base
+
+ def __cinit__(self, base, uintptr_t ptr):
+ self._base = base
+ self._layout = <ArrowLayout*>ptr
+
+ @property
+ def buffer_data_type_id(self):
+ return tuple(self._layout.buffer_data_type[i] for i in range(3))
Review Comment:
This reminded me that I added NANOARROW_MAX_FIXED_BUFFERS a while ago (and
also that the number of buffers had already been calculated elsewhere but made
more sense here!)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]