This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let Base64 = (function () { | |
let dic = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="; | |
let encode = (array: Int8Array | Uint8Array | number[]) => { | |
let result = []; | |
let i = 0; | |
while (i < array.length) { | |
let b0 = array[i++]; | |
let b1 = array[i++]; | |
let b2 = array[i++]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma once | |
// origin: https://github.com/illegal-instruction-co/ThreadIn | |
#ifdef _WIN64 | |
#define XIP Rip | |
#else | |
#define XIP Eip | |
#endif | |
#include <thread> |
OlderNewer