GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — ShellcodeCompiler/ShellcodeCompiler/Utils.h at master · DevilBot000/ShellcodeCompiler Expand file tree/ Copy pathUtils.hMore file actions 35 lines (26 loc) · 904 Bytes / Copy pathUtils.hFile metadata and controls35 lines (26 loc) · 904 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 #ifndef UTILS_H #define UTILS_H #define _CRT_SECURE_NO_WARNINGS #include <cstdio> #include <string> #include <iostream> #include <sstream> using namespace std; // A class containing functions for access to files and conversions class Utils { public: // All utilities static bool FileExists(string p_sPath); static bool DeleteSourceFile(string p_sFile); static string ReadSourceFile(string p_sFilename); static size_t GetSize(string p_sFilename); static unsigned char* ReadBinaryFile(string p_sFilename, size_t *p_rSize); static size_t WriteBinaryFile(string p_sOutputFile, unsigned char *p_pcData, size_t p_nSize); static void WriteToFile(string p_sOutputFile, string p_sData); static string CharToHexString(char p_cChar); static string IntToHexString(size_t p_iNumber); static bool IsString(char p_cCharacter); static string ToLower(string p_sString); }; #endif // !UTILS_H |
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |