Ejemplo n.º 1
0
        VariableReference ReadVariableReference(System.IO.BinaryReader br)
        {
            VariableReference res = null;

            if (br.ReadBoolean())
            {
                res         = new Debugger.VariableReference();
                res.Address = br.ReadInt64();
                res.Type    = (VariableTypes)br.ReadByte();
                res.Offset  = br.ReadInt32();
                res.Parent  = ReadVariableReference(br);
            }
            return(res);
        }
Ejemplo n.º 2
0
        VariableReference ReadVariableReference(System.IO.BinaryReader br)
        {
            VariableReference res = null;

            if (br.ReadBoolean())
            {
                res         = new Debugger.VariableReference();
                res.Address = br.ReadInt64();
                res.Type    = (VariableTypes)br.ReadByte();
                res.Offset  = br.ReadInt32();
                res.Name    = br.ReadString();
                res.Parent  = ReadVariableReference(br);
                int cnt = br.ReadInt32();
                res.Parameters = new VariableReference[cnt];
                for (int i = 0; i < cnt; i++)
                {
                    res.Parameters[i] = ReadVariableReference(br);
                }
            }
            return(res);
        }