MCPcopy Create free account
hub / github.com/Pagghiu/SaneCppLibraries / __init__

Method __init__

Support/DebugVisualizers/GDB/SCGDB.py:205–210  ·  view source on GitHub ↗
(self, val)

Source from the content-addressed store, hash-verified

203
204class SpanPrettyPrinter:
205 def __init__(self, val):
206 self.val = val
207 self.data_type = self.val.type.template_argument(0)
208 self.item_size = self.data_type.sizeof
209 self.size = int(self.val['sizeElements'])
210 self.items = self.val['items']
211
212 def to_string(self):
213 return f"size={self.size}"

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected