mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 18:27:35 +00:00
Everywhere: Replace the multiple impls of print_buffer() with :hex-dump
This commit is contained in:
parent
7eda164c25
commit
2fe9c81b30
3 changed files with 6 additions and 37 deletions
|
@ -24,10 +24,7 @@ namespace TLS {
|
|||
|
||||
inline void print_buffer(ReadonlyBytes buffer)
|
||||
{
|
||||
StringBuilder builder(buffer.size() * 2);
|
||||
for (auto b : buffer)
|
||||
builder.appendff("{:02x} ", b);
|
||||
dbgln("{}", builder.string_view());
|
||||
dbgln("{:hex-dump}", buffer);
|
||||
}
|
||||
|
||||
inline void print_buffer(const ByteBuffer& buffer)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue