예제 #1
0
        public static HLECache GetHLECacheReport(DebuggerThread Context, uint[] Data)
        {
            HLECache Report = new HLECache();

            StringType Type = (StringType)Data[0];

            if (Type != StringType.CHAR)
            {
                throw new Exception("GetHLECacheReport expects a string message");
            }

            uint   Length     = Data[1];
            IntPtr MessagePtr = new IntPtr(Data[2]);

            Report.FileName = Context.OwningProcess.ReadString(MessagePtr, Length);

            return(Report);
        }
예제 #2
0
        public static HLECache GetHLECacheReport(DebuggerThread Context, DataProcessor Data)
        {
            HLECache Report = new HLECache();

            var Type = (StringType)Data.Pop();

            if (Type != StringType.CHAR)
            {
                throw new Exception("GetHLECacheReport expects a string message");
            }

            var Length     = Data.Pop();;
            var MessagePtr = new IntPtr(Data.Pop());

            Report.FileName = Context.OwningProcess.ReadString(MessagePtr, Length);

            return(Report);
        }