PERWAPI.Local.GetSig C# (CSharp) Method

GetSig() public method

Gets the signature for this local variable.
public GetSig ( ) : byte[]
return byte[]
        public byte[] GetSig()
        {
            MemoryStream str = new MemoryStream();
            type.TypeSig(str);
            return str.ToArray();
        }

Usage Example

コード例 #1
0
ファイル: PERWAPI.cs プロジェクト: nomit007/f4
 /// <summary>
 /// Get the debug signature for a local.
 /// </summary>
 /// <param name="loc">The local.</param>
 /// <returns>The signature.</returns>
 internal DebugLocalSig GetDebugSig(Local loc)
 {
     byte[] b = loc.GetSig();
     string s = BitConverter.ToString(b);
     DebugLocalSig sig = (DebugLocalSig)debugsigs[s];
     if (sig != null) return sig;
     sig = new DebugLocalSig(b);
     debugsigs.Add(s, sig);
     return sig;
 }