DDS  ver. 3.4
Public Member Functions | Friends | List of all members
MiscCommon::CHexView< _T > Class Template Reference

This class helps to represent a given container's data as in a HEX viewer. More...

#include <HexView.h>

Public Member Functions

 CHexView (const _T &_Val, size_t _nElementsInRaw=16)
 

Friends

std::ostream & operator<< (std::ostream &_ostream, const CHexView< _T > &_this)
 

Detailed Description

template<class _T>
class MiscCommon::CHexView< _T >

This class helps to represent a given container's data as in a HEX viewer.

Note
Example:
int main()
{
vec.push_back(125);
vec.push_back(525);
vec.push_back(325);
vec.push_back(123);
vec.push_back(154);
vec.push_back(125);
vec.push_back(125);
..
..
vec.push_back(167);
cout << BYTEVectorHexView_t( vec ) << endl;
}
Output:
0x00000000 | 7D 0D 45 7B 9A 7D 7D 7D 7D 7D 7D 7D 7D 7D A7 7D | }.E{.}}}}}}}}}.}
0x00000010 | 7D 7D 0D 45 7B 9A 7D 7D 7D 7D 7D 7D 7D 7D 7D A7 | }}.E{.}}}}}}}}}.
0x00000020 | 7D 7D 0D 45 7B 9A 7D 7D 7D 7D 7D 7D 7D 7D 7D A7 | }}.E{.}}}}}}}}}.
0x00000030 | 7D 7D A7 | }}.

Constructor & Destructor Documentation

◆ CHexView()

template<class _T>
MiscCommon::CHexView< _T >::CHexView ( const _T _Val,
size_t  _nElementsInRaw = 16 
)
inline

Friends And Related Function Documentation

◆ operator<<

template<class _T>
std::ostream& operator<< ( std::ostream &  _ostream,
const CHexView< _T > &  _this 
)
friend

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