|
StormByte C++ Library: Logger module 1.2.0
StormByte-Logger is the logging module of the StormByte C++ suite.
|
Dump subsequent payloads as hex bytes until nohex. More...
#include <StormByte/logger/manipulators.hxx>
Public Member Functions | |
| constexpr HexManip | operator() (std::size_t n) const noexcept |
Build a manipulator with n bytes per row. | |
Public Attributes | |
| std::size_t | columns = 16 |
| Bytes per row; 0 = single line. | |
Dump subsequent payloads as hex bytes until nohex.
The payload is converted as usual (numbers / bool to text, wide text to UTF-8) and then each byte is printed as 0xAA separated by spaces. columns is the number of bytes per continuation row; 0 disables wrapping. Continuations write a raw newline without a new header and without ending the logical line.
Encoding runs before redaction.
Usage:
|
inlineconstexprnoexcept |
Build a manipulator with n bytes per row.
| n | Bytes per continuation row; 0 disables wrapping. |
| std::size_t StormByte::Logger::HexManip::columns = 16 |
Bytes per row; 0 = single line.