Esempio n. 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));
 }
Esempio n. 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));
 }
Esempio n. 3
0
 private static CodePatternMatch FirstDataSegmentMatch(string pattern)
 {
     return(CodePattern.Parse(pattern)
            .Matches(_ctx.Data.Start, _ctx.DataBuffer)
            .First());
 }
Esempio n. 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());
 }
Esempio n. 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));
 }
Esempio n. 6
0
 private static IEnumerable <CodePatternMatch> TextSegmentMatches(string pattern)
 {
     return(CodePattern.Parse(pattern)
            .Matches(_ctx.Text.Start, _ctx.TextBuffer));
 }