Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
Debug::MemDump Class Reference

Helper class for performing a raw memory dump. More...

#include <rts/debug.h>

Static Public Member Functions

static MemDump Raw (const void *startPtr, unsigned numItems, unsigned bytePerItem=1)
 
static MemDump RawRel (const void *startPtr, unsigned numItems, unsigned bytePerItem=1)
 
static MemDump Char (const void *startPtr, unsigned numItems, unsigned bytePerItem=1)
 
static MemDump CharRel (const void *startPtr, unsigned numItems, unsigned bytePerItem=1)
 

Detailed Description

Helper class for performing a raw memory dump.

Can be used directly in the output stream, e.g.

DLOG( "This is 16 bytes of memory:\n" << Debug::MemDump::Raw(&somePointer,16) );
static MemDump Raw(const void *startPtr, unsigned numItems, unsigned bytePerItem=1)
#define DLOG(what)

Definition at line 82 of file debug_debug.h.

Member Function Documentation

◆ Char()

static MemDump Debug::MemDump::Char ( const void * startPtr,
unsigned numItems,
unsigned bytePerItem = 1 )
inlinestatic

Creates a memory dump descriptor that dumps out ASCII chars as well.

Parameters
startPtraddress to start dump from
numItemsnumber of items (usually bytes) to dump
bytePerItemnumber of bytes per item (usually 1)

Definition at line 132 of file debug_debug.h.

◆ CharRel()

static MemDump Debug::MemDump::CharRel ( const void * startPtr,
unsigned numItems,
unsigned bytePerItem = 1 )
inlinestatic

Creates a memory dump descriptor with relative addresses that dumps out ASCII chars as well.

Parameters
startPtraddress to start dump from
numItemsnumber of items (usually bytes) to dump
bytePerItemnumber of bytes per item (usually 1)

Definition at line 144 of file debug_debug.h.

◆ Raw()

static MemDump Debug::MemDump::Raw ( const void * startPtr,
unsigned numItems,
unsigned bytePerItem = 1 )
inlinestatic

Creates a memory dump descriptor.

Parameters
startPtraddress to start dump from
numItemsnumber of items (usually bytes) to dump
bytePerItemnumber of bytes per item (usually 1)

Definition at line 108 of file debug_debug.h.

◆ RawRel()

static MemDump Debug::MemDump::RawRel ( const void * startPtr,
unsigned numItems,
unsigned bytePerItem = 1 )
inlinestatic

Creates a memory dump descriptor with relative addresses.

Parameters
startPtraddress to start dump from
numItemsnumber of items (usually bytes) to dump
bytePerItemnumber of bytes per item (usually 1)

Definition at line 120 of file debug_debug.h.


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