[#absl-HexStringToBytes-02] = xref:absl.adoc[absl]::HexStringToBytes :relfileprefix: ../ :mrdocs: Converts an ASCII hex string into bytes, returning binary data of length `from.size()/2`. The input must be valid hexadecimal data, otherwise the return value is unspecified. == Synopsis Declared in `<absl/strings/escaping.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[deprecated("Use the HexStringToBytes() that returns a bool")]] std::string HexStringToBytes(std::string_view from); ---- [WARNING] ==== https://en.cppreference.com/cpp/language/attributes/deprecated[Deprecated^]: Use the HexStringToBytes() that returns a bool. Use of this entity is allowed but discouraged. ==== == Return Value The decoded binary data. == Parameters [cols="1,4"] |=== | Name| Description | *from* | The hexadecimal‐encoded string to decode. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#