本文整理匯總了C#中Mono.CompilerServices.SymbolWriter.MonoSymbolFile.GetCompileUnit方法的典型用法代碼示例。如果您正苦於以下問題:C# MonoSymbolFile.GetCompileUnit方法的具體用法?C# MonoSymbolFile.GetCompileUnit怎麽用?C# MonoSymbolFile.GetCompileUnit使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Mono.CompilerServices.SymbolWriter.MonoSymbolFile
的用法示例。
在下文中一共展示了MonoSymbolFile.GetCompileUnit方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: MethodEntry
internal MethodEntry(MonoSymbolFile file, MyBinaryReader reader, int index)
{
this.SymbolFile = file;
this.index = index;
this.Token = reader.ReadInt32();
this.DataOffset = reader.ReadInt32();
this.LineNumberTableOffset = reader.ReadInt32();
long old_pos = reader.BaseStream.Position;
reader.BaseStream.Position = (long)this.DataOffset;
this.CompileUnitIndex = reader.ReadLeb128();
this.LocalVariableTableOffset = reader.ReadLeb128();
this.NamespaceID = reader.ReadLeb128();
this.CodeBlockTableOffset = reader.ReadLeb128();
this.ScopeVariableTableOffset = reader.ReadLeb128();
this.RealNameOffset = reader.ReadLeb128();
this.flags = (MethodEntry.Flags)reader.ReadLeb128();
reader.BaseStream.Position = old_pos;
this.CompileUnit = file.GetCompileUnit(this.CompileUnitIndex);
}