MCPcopy Create free account
hub / github.com/IChooseYou/Reclass / fmtPointerHeader

Function fmtPointerHeader

src/format.cpp:174–186  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

172// ── Pointer header (merged pointer + struct header) ──
173
174QString fmtPointerHeader(const Node& node, int depth, bool collapsed,
175 const Provider& prov, uint64_t addr,
176 const QString& ptrTypeName, int colType, int colName) {
177 QString ind = indent(depth);
178 QString type = fit(ptrTypeName, colType);
179 if (collapsed) {
180 // Collapsed: show pointer value instead of brace (name padded for value alignment)
181 QString name = fit(node.name, colName);
182 QString val = fit(readValue(node, prov, addr, 0), COL_VALUE);
183 return ind + type + SEP + name + SEP + val;
184 }
185 return ind + type + SEP + node.name + SEP + QStringLiteral("{");
186}
187
188// ── Hex / ASCII preview ──
189

Callers 1

composeNodeFunction · 0.85

Calls 3

indentFunction · 0.85
fitFunction · 0.85
readValueFunction · 0.85

Tested by

no test coverage detected