HyperDbg Debugger
Loading...
Searching...
No Matches
routines.h File Reference

header for testing routines More...

Go to the source code of this file.

Functions

BOOLEAN TestCase (std::vector< std::string > &TestCase)
 
void AsmTest ()
 
VOID TestCreateLookupTable (HANDLE PipeHandle, PVOID KernelInformation, UINT32 KernelInformationSize)
 
std::string Uint64ToString (UINT64 value)
 
BOOLEAN StringReplace (std::string &str, const std::string &from, const std::string &to)
 
std::string ConvertToString (char *Str)
 

Detailed Description

header for testing routines

Author
Sina Karvandi (sina@.nosp@m.hype.nosp@m.rdbg..nosp@m.org)
Version
0.1
Date
2020-09-16

Function Documentation

◆ AsmTest()

void AsmTest ( )
externinline

◆ ConvertToString()

std::string ConvertToString ( char * Str)
34{
35 string s(Str);
36
37 return s;
38}

◆ StringReplace()

BOOLEAN StringReplace ( std::string & str,
const std::string & from,
const std::string & to )
24{
25 size_t start_pos = str.find(from);
26 if (start_pos == string::npos)
27 return FALSE;
28 str.replace(start_pos, from.length(), to);
29 return TRUE;
30}
#define TRUE
Definition BasicTypes.h:55
#define FALSE
Definition BasicTypes.h:54

◆ TestCase()

BOOLEAN TestCase ( std::vector< std::string > & TestCase)

◆ TestCreateLookupTable()

VOID TestCreateLookupTable ( HANDLE PipeHandle,
PVOID KernelInformation,
UINT32 KernelInformationSize )

◆ Uint64ToString()

std::string Uint64ToString ( UINT64 value)
16{
17 ostringstream Os;
18 Os << setw(16) << setfill('0') << hex << value;
19 return Os.str();
20}