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

Method _buffer

cpp/gdb_arrow.py:1590–1598  ·  view source on GitHub ↗
(self, index, type_id=None)

Source from the content-addressed store, hash-verified

1588 f"{format_null_count(self.val['null_count'])}")
1589
1590 def _buffer(self, index, type_id=None):
1591 buffers = StdVector(self.val['buffers'])
1592 bufptr = SharedPtr(buffers[index]).get()
1593 if int(bufptr) == 0:
1594 return None
1595 if type_id is not None:
1596 return TypedBuffer.from_type_id(bufptr.dereference(), type_id)
1597 else:
1598 return Buffer(bufptr.dereference())
1599
1600 def _buffer_values(self, index, type_id, length=None):
1601 """

Callers 5

_buffer_valuesMethod · 0.95
_null_bitmapMethod · 0.95
childrenMethod · 0.80
childrenMethod · 0.80
childrenMethod · 0.80

Calls 5

StdVectorClass · 0.85
SharedPtrClass · 0.85
from_type_idMethod · 0.80
BufferClass · 0.70
getMethod · 0.45

Tested by

no test coverage detected