MCPcopy Create free account
hub / github.com/apache/arrow / _buffer_values

Method _buffer_values

cpp/gdb_arrow.py:1600–1612  ·  view source on GitHub ↗

Return a typed view of values in the buffer with the given index. Values are returned as tuples since some types may decode to multiple values (for example day_time_interval).

(self, index, type_id, length=None)

Source from the content-addressed store, hash-verified

1598 return Buffer(bufptr.dereference())
1599
1600 def _buffer_values(self, index, type_id, length=None):
1601 """
1602 Return a typed view of values in the buffer with the given index.
1603
1604 Values are returned as tuples since some types may decode to
1605 multiple values (for example day_time_interval).
1606 """
1607 buf = self._buffer(index, type_id)
1608 if buf is None:
1609 return None
1610 if length is None:
1611 length = self.length
1612 return buf.view(self.offset, length)
1613
1614 def _unpacked_buffer_values(self, index, type_id, length=None):
1615 """

Callers 3

_values_viewMethod · 0.80
_values_viewMethod · 0.80

Calls 2

_bufferMethod · 0.95
viewMethod · 0.45

Tested by

no test coverage detected