#include <hexstr.hpp>
Class which Renders a single byte as hexadecimal
Definition at line 81 of file hexstr.hpp.
◆ RenderHexByte()
openvpn::RenderHexByte::RenderHexByte |
( |
const unsigned char |
byte, |
|
|
const bool |
caps = false |
|
) |
| |
|
inline |
Initializes a new object
- Parameters
-
byte | Unsigned char (one byte) to be processed |
caps | Boolean (default false) which sets the outout to be either lower case (false) or upper case (true). |
Definition at line 91 of file hexstr.hpp.
◆ char1()
char openvpn::RenderHexByte::char1 |
( |
| ) |
const |
|
inline |
◆ char2()
char openvpn::RenderHexByte::char2 |
( |
| ) |
const |
|
inline |
◆ str2()
const char * openvpn::RenderHexByte::str2 |
( |
| ) |
const |
|
inline |
Retrieve the hexadecimal representation of the value.
- Warning
- The result is a non-NULL terminated string.
- Returns
- Returns a non-NULL terminated 2 byte string with the hexadecimal representation of the initial value. The return value is guaranteed to always be 2 bytes.
Definition at line 115 of file hexstr.hpp.
char openvpn::RenderHexByte::c[2] |
|
private |
The documentation for this class was generated from the following file: