[#absl-HexStringToBytes-02]
= xref:absl.adoc[absl]::HexStringToBytes
:relfileprefix: ../
:mrdocs:

Converts an ASCII hex string into bytes, returning binary data of length `from&period;size()&sol;2`&period; The input must be valid hexadecimal data, otherwise the return value is unspecified&period;

== Synopsis

Declared in `&lt;absl&sol;strings&sol;escaping&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;deprecated(&quot;Use the HexStringToBytes() that returns a bool&quot;)&rsqb;&rsqb;
std::string
HexStringToBytes(std::string&lowbar;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&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *from*
| The hexadecimal&hyphen;encoded string to decode&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
