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

Method _buffer

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

Source from the content-addressed store, hash-verified

1571 f"{format_null_count(self.val['null_count'])}")
1572
1573 def _buffer(self, index, type_id=None):
1574 buffers = StdVector(self.val['buffers'])
1575 bufptr = SharedPtr(buffers[index]).get()
1576 if int(bufptr) == 0:
1577 return None
1578 if type_id is not None:
1579 return TypedBuffer.from_type_id(bufptr.dereference(), type_id)
1580 else:
1581 return Buffer(bufptr.dereference())
1582
1583 def _buffer_values(self, index, type_id, length=None):
1584 """

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