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

Class BufferPtr

cpp/gdb_arrow.py:643–668  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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

Callers 2

to_stringMethod · 0.85
to_stringMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected