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

Method to_string

cpp/gdb_arrow.py:2311–2322  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2309 self.val = val
2310
2311 def to_string(self):
2312 if bool(self.val['is_mutable_']):
2313 mutable = 'mutable'
2314 else:
2315 mutable = 'read-only'
2316 size = int(self.val['size_'])
2317 if size == 0:
2318 return f"arrow::{self.name} of size 0, {mutable}"
2319 if not self.val['is_cpu_']:
2320 return f"arrow::{self.name} of size {size}, {mutable}, not on CPU"
2321 data = bytes_literal(self.val['data_'], size)
2322 return f"arrow::{self.name} of size {size}, {mutable}, {data}"
2323
2324
2325class DayMillisecondsPrinter:

Callers

nothing calls this directly

Calls 1

bytes_literalFunction · 0.85

Tested by

no test coverage detected