Exemplo n.º 1
0
        public void SvX86Ps_Serialize()
        {
            Given_ProcedureSerializer();

            mr.ReplayAll();

            var sig = new FunctionType(
                new Identifier("eax", PrimitiveType.Word32, arch.GetRegister("rbx")),
                new Identifier[] {
                new Identifier("arg04", PrimitiveType.Word32, new StackArgumentStorage(4, PrimitiveType.Int32))
            });

            SerializedSignature ssig = ser.Serialize(sig);

            Assert.IsNotNull(ssig.ReturnValue);
            Assert.AreEqual("eax", ssig.ReturnValue.Name);
            var sArg = (StackVariable_v1)ssig.Arguments[0].Kind;
        }