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

Method __getitem__

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

Source from the content-addressed store, hash-verified

757 return self.length
758
759 def __getitem__(self, index):
760 self._check_index(index)
761 index += self.offset
762 byte_index, bit_index = divmod(index, 8)
763 byte = self.view[byte_index]
764 return byte & self._masks[bit_index] != 0
765
766 @classmethod
767 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