absl::BytesToHexString

Converts binary data into an ASCII text string, returning a string of size 2*from.size().

Synopsis

Declared in <absl/strings/escaping.h>

std::string
BytesToHexString(std::string_view from);

Return Value

The hexadecimal-encoded string.

Parameters

NameDescription
fromThe binary data to encode.