Evo C++ Library v0.5.1
Public Member Functions | Public Attributes | List of all members
FmtDump Struct Reference

#include <evo/impl/str.h>

Detailed Description

Explicitly format a hex dump from buffer.

Public Member Functions

 FmtDump (const void *buf, ulong size, uint maxline=24, bool compact=false, bool upper=false)
 Explicitly format a hex dump of given buffer. More...
 

Public Attributes

const void * buf
 Buffer to dump. More...
 
bool compact
 Whether to use compact mode (no address or ASCII output) More...
 
uint maxline
 Maximum bytes per line to dump, 0 for none (all 1 line) More...
 
ulong size
 Buffer size in bytes to dump. More...
 
bool upper
 Whether to use uppercase hex, false for lowercase. More...
 

Constructor & Destructor Documentation

◆ FmtDump()

FmtDump ( const void *  buf,
ulong  size,
uint  maxline = 24,
bool  compact = false,
bool  upper = false 
)
inline

Explicitly format a hex dump of given buffer.

Parameters
bufBuffer to dump
sizeBuffer size in bytes to dump
maxlineMaximum bytes per line to dump, 0 for none (all 1 line)
compactWhether to use compact mode (no address or ASCII output)
upperWhether to use uppercase hex, false for lowercase

Member Data Documentation

◆ buf

const void* buf

Buffer to dump.

◆ compact

bool compact

Whether to use compact mode (no address or ASCII output)

◆ maxline

uint maxline

Maximum bytes per line to dump, 0 for none (all 1 line)

◆ size

ulong size

Buffer size in bytes to dump.

◆ upper

bool upper

Whether to use uppercase hex, false for lowercase.


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