示例#1
0
文件: Dex.cs 项目: rfcclub/dot42
 public static Dex Read(Stream stream)
 {
     using (var binaryReader = new BinaryReader(stream))
     {
         var reader = new DexReader();
         return reader.ReadFrom(binaryReader);
     }
 }
示例#2
0
 public InstructionReader(DexReader dexReader, MethodDefinition mdef)
 {
     this.dexReader = dexReader;
     methodDefinition = mdef;
     Lookup = new Dictionary<int, Instruction>();
     LookupLast = new Dictionary<int, Instruction>();
     lazyInstructionsSetters = new List<Action>();
     Ip = 0;
 }
示例#3
0
 public InstructionReader(DexReader dexReader, MethodDefinition mdef)
 {
     this.dexReader          = dexReader;
     methodDefinition        = mdef;
     Lookup                  = new Dictionary <int, Instruction>();
     LookupLast              = new Dictionary <int, Instruction>();
     lazyInstructionsSetters = new List <Action>();
     Ip = 0;
 }