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

Class BufferPtr

cpp/gdb_arrow.py:641–666  ·  view source on GitHub ↗

A arrow::Buffer* value (possibly null).

Source from the content-addressed store, hash-verified

639
640
641class BufferPtr:
642 """
643 A arrow::Buffer* value (possibly null).
644 """
645
646 def __init__(self, val):
647 self.val = val
648 ptr = int(self.val)
649 self.buf = Buffer(val.dereference()) if ptr != 0 else None
650
651 @property
652 def data(self):
653 if self.buf is None:
654 return None
655 return self.buf.data
656
657 @property
658 def size(self):
659 if self.buf is None:
660 return None
661 return self.buf.size
662
663 def bytes_literal(self):
664 if self.buf is None:
665 return None
666 return self.buf.bytes_literal()
667
668
669class TypedBuffer(Buffer):

Callers 2

to_stringMethod · 0.85
to_stringMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected