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

Method _buffer_values

cpp/gdb_arrow.py:1583–1595  ·  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

1581 return Buffer(bufptr.dereference())
1582
1583 def _buffer_values(self, index, type_id, length=None):
1584 """
1585 Return a typed view of values in the buffer with the given index.
1586
1587 Values are returned as tuples since some types may decode to
1588 multiple values (for example day_time_interval).
1589 """
1590 buf = self._buffer(index, type_id)
1591 if buf is None:
1592 return None
1593 if length is None:
1594 length = self.length
1595 return buf.view(self.offset, length)
1596
1597 def _unpacked_buffer_values(self, index, type_id, length=None):
1598 """

Callers 3

_values_viewMethod · 0.80
_values_viewMethod · 0.80

Calls 2

_bufferMethod · 0.95
viewMethod · 0.45

Tested by

no test coverage detected