MCPcopy Create free account
hub / github.com/SickleSec/GhostWolf / ConvertToByteArray

Function ConvertToByteArray

Ghostwolf/Helper.cpp:5–10  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3#include <format>
4
5void ConvertToByteArray(uintptr_t value, BYTE* byteArray, size_t size) {
6 for (size_t i = 0; i < size; ++i) {
7 byteArray[i] = static_cast<BYTE>(value & 0xFF);
8 value >>= 8;
9 }
10}
11void PrintMessageA(char const* const Message, ...) {
12 printf(Message);
13}

Callers 2

PatchBaseAddressFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected