示例#1
0
 private static T FirstTextSegmentMatch <T>(string pattern, MemoryAddress start, int count, string label)
 {
     return(CodePattern.Parse(pattern)
            .Matches(_ctx.Text.Start, _ctx.TextBuffer, start, count)
            .First()
            .Read <T>(_ctx.Dump, label));
 }
示例#2
0
 private static T FirstTextSegmentMatch <T>(string pattern, string label)
 {
     return(CodePattern.Parse(pattern)
            .Matches(_ctx.Text.Start, _ctx.TextBuffer)
            .First()
            .Read <T>(_ctx.Dump, label));
 }
示例#3
0
 private static CodePatternMatch FirstDataSegmentMatch(string pattern)
 {
     return(CodePattern.Parse(pattern)
            .Matches(_ctx.Data.Start, _ctx.DataBuffer)
            .First());
 }
示例#4
0
 private static CodePatternMatch FirstTextSegmentMatch(string pattern, MemoryAddress start, int count)
 {
     return(CodePattern.Parse(pattern)
            .Matches(_ctx.Text.Start, _ctx.TextBuffer, start, count)
            .First());
 }
示例#5
0
 private static IEnumerable <CodePatternMatch> TextSegmentMatches(string pattern, MemoryAddress start, int count)
 {
     return(CodePattern.Parse(pattern)
            .Matches(_ctx.Text.Start, _ctx.TextBuffer, start, count));
 }
示例#6
0
 private static IEnumerable <CodePatternMatch> TextSegmentMatches(string pattern)
 {
     return(CodePattern.Parse(pattern)
            .Matches(_ctx.Text.Start, _ctx.TextBuffer));
 }