foobar2000 SDK  2015-08-03
Public Member Functions | Private Attributes
pfc::format_hexdump_ex

#include <string_base.h>

Public Member Functions

template<typename TWord >
 format_hexdump_ex (const TWord *buffer, t_size bufLen, const char *spacing=" ")
 
const char * get_ptr () const
 
 operator const char * () const
 
const char * toString () const
 

Private Attributes

string_formatter m_formatter
 

Detailed Description

Definition at line 756 of file string_base.h.

Constructor & Destructor Documentation

template<typename TWord >
pfc::format_hexdump_ex::format_hexdump_ex ( const TWord *  buffer,
t_size  bufLen,
const char *  spacing = " " 
)
inline

Definition at line 758 of file string_base.h.

758  {
759  for(t_size n = 0; n < bufLen; n++) {
760  if (n > 0 && spacing != NULL) m_formatter << spacing;
761  m_formatter << format_hex(buffer[n],sizeof(TWord) * 2);
762  }
763  }
size_t t_size
Definition: int_types.h:48
string_formatter m_formatter
Definition: string_base.h:768

Member Function Documentation

const char* pfc::format_hexdump_ex::get_ptr ( ) const
inline

Definition at line 764 of file string_base.h.

764 {return m_formatter;}
string_formatter m_formatter
Definition: string_base.h:768
pfc::format_hexdump_ex::operator const char * ( ) const
inline

Definition at line 765 of file string_base.h.

765 {return m_formatter;}
string_formatter m_formatter
Definition: string_base.h:768
const char* pfc::format_hexdump_ex::toString ( ) const
inline

Definition at line 766 of file string_base.h.

766 {return m_formatter;}
string_formatter m_formatter
Definition: string_base.h:768

Field Documentation

string_formatter pfc::format_hexdump_ex::m_formatter
private

Definition at line 768 of file string_base.h.


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