GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — ShellcodeCompiler/ShellcodeCompiler/Utils.h at master · DevilBot000/ShellcodeCompiler

Expand file tree

/

Utils.h

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
35 lines (26 loc) · 904 Bytes
/

Utils.h

Copy path

File metadata and controls

35 lines (26 loc) · 904 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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.