LibSWOC++ 1.5.14
Solid Wall of C++
Loading...
Searching...
No Matches
swoc::bwf::UnHex Struct Reference

#include <bwf_ex.h>

Collaboration diagram for swoc::bwf::UnHex:
Collaboration graph

Public Member Functions

 UnHex (MemSpan< void const > const &span)
 

Public Attributes

MemSpan< void const > _span
 Source span.
 

Detailed Description

Convert from ASCII hexadecimal to raw bytes.

E.g. if the source span contains "4576696c20446176652052756c7a" then "Evil Dave Rulz" is the output. For format specifier support, on lhe max width is used. Any MemSpan compatible class can be used as the target, including std::string and std::string_view.

void f(std::string const& str) {
w.print("{}", bwf::UnHex(str));
// ...

Definition at line 222 of file bwf_ex.h.

Constructor & Destructor Documentation

◆ UnHex()

swoc::bwf::UnHex::UnHex ( MemSpan< void const > const & span)
inline

Definition at line 223 of file bwf_ex.h.

Member Data Documentation

◆ _span

MemSpan<void const> swoc::bwf::UnHex::_span

Source span.

Definition at line 224 of file bwf_ex.h.


The documentation for this struct was generated from the following file: