Пример #1
0
        public SSLToken Alloc(string retVal, string id, int bytes, int clear = -1)
        {
            var args = new List <string>();

            args.Add(id);
            args.Add(bytes.ToString());
            if (clear != -1)
            {
                args.Add(clear.ToString());
            }

            return(SSL.Function("VOODOO_Alloc", retVal, args.ToArray()));
        }
Пример #2
0
 public static SSLToken Debug(string str) => SSL.UseMacro("debug", str);
Пример #3
0
 protected void DeclareVar(string name) => code.Lines.Add(SSL.DeclareVariable(name).ToLine());
Пример #4
0
 public SSLToken GetHookFuncOffset(string retVar, string address, string offset) => SSL.Function("VOODOO_GetHookFuncOffset", retVar, address, offset);
Пример #5
0
 public SSLToken Write32(string address, string value) => SSL.OP("write_int", null, address, value);
Пример #6
0
 public SSLToken Write16(string address, string value) => SSL.OP("write_short", null, address, value);
Пример #7
0
 // Underlying methods might change.
 public SSLToken Write8(string address, string value) => SSL.OP("write_byte", null, address, value);
Пример #8
0
 public SSLToken GetAddressOf(string retVar, string var) => SSL.Function("VOODOO_GetAddressOf", retVar, var);
Пример #9
0
 public SSLToken SetLookupData(MallocVar var, string value, int size) => SSL.Function("VOODOO_SetLookupData", null, var.Name, value, size.ToString());
Пример #10
0
 public SSLToken MakeCall(string address, int func) => SSL.Function("VOODOO_MakeCall", null, address, "0x" + func.ToString("x"));
Пример #11
0
 public SSLToken MakeCall(string address, string func) => SSL.Function("VOODOO_MakeCall", null, address, func);
Пример #12
0
 public SSLToken memset(string address, int val, int size) => SSL.Function("VOODOO_memset", null, address, "0x" + val.ToString("x"), size.ToString());
Пример #13
0
 public SSLToken nmalloc(string retVal, int bytes)
 => SSL.Function("VOODOO_nmalloc", retVal, bytes.ToString());
Пример #14
0
 public SSLToken BlockCall(string address, string length) => SSL.Function(null, address, length);
Пример #15
0
 public SSLToken AssertByte(string retVar, string addressName, string address, string expected)
 {
     return(SSL.Function("VOODOO_AssertByte", retVar, addressName, address, expected));
 }