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

#include <string_base.h>

Public Member Functions

 format_hexdump_lowercase (const void *p_buffer, t_size p_bytes, const char *p_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 630 of file string_base.h.

Constructor & Destructor Documentation

pfc::format_hexdump_lowercase::format_hexdump_lowercase ( const void *  p_buffer,
t_size  p_bytes,
const char *  p_spacing = " " 
)

Definition at line 644 of file string_base.cpp.

645 {
646  t_size n;
647  const t_uint8 * buffer = (const t_uint8*)p_buffer;
648  for(n=0;n<p_bytes;n++)
649  {
650  if (n > 0 && p_spacing != 0) m_formatter << p_spacing;
651  m_formatter << format_hex_lowercase(buffer[n],2);
652  }
653 }
uint8_t t_uint8
Definition: int_types.h:9
size_t t_size
Definition: int_types.h:48
string_formatter m_formatter
Definition: string_base.h:640

Member Function Documentation

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

Definition at line 635 of file string_base.h.

635 {return m_formatter;}
string_formatter m_formatter
Definition: string_base.h:640
pfc::format_hexdump_lowercase::operator const char * ( ) const
inline

Definition at line 636 of file string_base.h.

636 {return m_formatter;}
string_formatter m_formatter
Definition: string_base.h:640
const char* pfc::format_hexdump_lowercase::toString ( ) const
inline

Definition at line 637 of file string_base.h.

637 {return m_formatter;}
string_formatter m_formatter
Definition: string_base.h:640

Field Documentation

string_formatter pfc::format_hexdump_lowercase::m_formatter
private

Definition at line 640 of file string_base.h.


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