1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 11:37:34 +00:00

Everywhere: Replace the multiple impls of print_buffer() with :hex-dump

This commit is contained in:
Ali Mohammad Pur 2021-06-17 13:12:58 +04:30 committed by Ali Mohammad Pur
parent 7eda164c25
commit 2fe9c81b30
3 changed files with 6 additions and 37 deletions

View file

@ -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)