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

Method __getitem__

cpp/gdb_arrow.py:761–766  ·  view source on GitHub ↗
(self, index)

Source from the content-addressed store, hash-verified

759 return self.length
760
761 def __getitem__(self, index):
762 self._check_index(index)
763 index += self.offset
764 byte_index, bit_index = divmod(index, 8)
765 byte = self.view[byte_index]
766 return byte & self._masks[bit_index] != 0
767
768 @classmethod
769 def from_buffer(cls, buf, offset, length):

Callers 3

__getitem__Method · 0.45
__getitem__Method · 0.45
__getitem__Method · 0.45

Calls 1

_check_indexMethod · 0.95

Tested by

no test coverage detected