Fixed a bug in ostd::Utils::printByteStream where the last ascii line
wasn't printed
This commit is contained in:
parent
df81456588
commit
1583e72849
2 changed files with 4 additions and 3 deletions
|
|
@ -1 +1 @@
|
||||||
1960
|
1962
|
||||||
|
|
|
||||||
|
|
@ -750,7 +750,6 @@ namespace ostd
|
||||||
{
|
{
|
||||||
i = 1;
|
i = 1;
|
||||||
out.fg(ConsoleColors::BrightBlue).p("|");
|
out.fg(ConsoleColors::BrightBlue).p("|");
|
||||||
if (addr == end - 1) break;
|
|
||||||
out.nl();
|
out.nl();
|
||||||
out.fg(ConsoleColors::BrightBlue).p("|");
|
out.fg(ConsoleColors::BrightBlue).p("|");
|
||||||
out.fg(ConsoleColors::BrightGray).p(" -------- ").fg(ConsoleColors::BrightBlue).p("|").fg(ConsoleColors::BrightGray).p(" ");
|
out.fg(ConsoleColors::BrightGray).p(" -------- ").fg(ConsoleColors::BrightBlue).p("|").fg(ConsoleColors::BrightGray).p(" ");
|
||||||
|
|
@ -761,7 +760,9 @@ namespace ostd
|
||||||
}
|
}
|
||||||
out.fg(ConsoleColors::BrightBlue).p("| ");
|
out.fg(ConsoleColors::BrightBlue).p("| ");
|
||||||
tmp.clear();
|
tmp.clear();
|
||||||
out.reset().nl();
|
out.reset();
|
||||||
|
if (addr == end - 1) break;
|
||||||
|
out.nl();
|
||||||
out.fg(ConsoleColors::BrightBlue).p("| ");
|
out.fg(ConsoleColors::BrightBlue).p("| ");
|
||||||
out.fg(ConsoleColors::BrightGray).p("0x");
|
out.fg(ConsoleColors::BrightGray).p("0x");
|
||||||
out.fg(ConsoleColors::BrightCyan).p(Utils::getHexStr(addr + 1, false, 4)).fg(ConsoleColors::BrightBlue).p(" | ");
|
out.fg(ConsoleColors::BrightCyan).p(Utils::getHexStr(addr + 1, false, 4)).fg(ConsoleColors::BrightBlue).p(" | ");
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue