MCPcopy Create free account
hub / github.com/axhlzy/FridaDebugger / logFieldRow

Function logFieldRow

agent/unity-fields.ts:131–143  ·  view source on GitHub ↗
(row: FieldRow, widths: ColumnWidths)

Source from the content-addressed store, hash-verified

129}
130
131function logFieldRow(row: FieldRow, widths: ColumnWidths): void {
132 const line = [
133 colorize("[lfs]", "gray"),
134 colorize(padLeft(row.offset, 7), "yellow"),
135 colorize(padRight(row.pointer, 20), "blue"),
136 colorize(padRight(fit(row.typeName, widths.typeName), widths.typeName), "cyan"),
137 colorize(padRight(fit(row.name, widths.name), widths.name), "gray"),
138 "=",
139 row.value,
140 ].join(" ");
141
142 log(row.failed ? colorize(line, "red") : line);
143}
144
145function getColumnWidths(groups: FieldGroup[]): ColumnWidths {
146 const rows = groups.flatMap(group => group.rows);

Callers 1

logIl2CppFieldsFunction · 0.85

Calls 5

colorizeFunction · 0.85
padLeftFunction · 0.85
padRightFunction · 0.85
fitFunction · 0.85
logFunction · 0.85

Tested by

no test coverage detected