System.Text.RegularExpressions.PatternCompiler.PatternLinkStack.GetOffset C# (CSharp) Method

GetOffset() public method

public GetOffset ( int target_addr ) : int
target_addr int
return int
			public int GetOffset (int target_addr) {
				return target_addr - link.base_addr;
			}

Usage Example

Exemplo n.º 1
0
 public void ResolveLink(LinkRef lref)
 {
     PatternCompiler.PatternLinkStack patternLinkStack = (PatternCompiler.PatternLinkStack)lref;
     while (patternLinkStack.Pop())
     {
         this.pgm[patternLinkStack.OffsetAddress] = (ushort)patternLinkStack.GetOffset(this.CurrentAddress);
     }
 }