Exemple #1
0
 internal MethodIL(
     bool localVariablesInited,
     ushort maxStack,
     uint localSignatureToken,
     MemoryBlock encodedILMemoryBlock,
     SEHTableEntry[]/*?*/ sehTable
     )
 {
     this.LocalVariablesInited = localVariablesInited;
       this.MaxStack = maxStack;
       this.LocalSignatureToken = localSignatureToken;
       this.EncodedILMemoryBlock = encodedILMemoryBlock;
       this.SEHTable = sehTable;
 }
 internal static SEHTableEntry[] GetFatSEHEntries(
   MemoryReader memReader,
   int numEntries
 ) {
   SEHTableEntry[] retSEHEntries = new SEHTableEntry[numEntries];
   for (int i = 0; i < numEntries; ++i) {
     SEHFlags sehFlags = (SEHFlags)memReader.ReadUInt32();
     uint tryOffset = memReader.ReadUInt32();
     uint tryLength = memReader.ReadUInt32();
     uint handlerOffset = memReader.ReadUInt32();
     uint handlerLength = memReader.ReadUInt32();
     uint classTokenOrFilterOffset = memReader.ReadUInt32();
     retSEHEntries[i] = new SEHTableEntry(sehFlags, tryOffset, tryLength, handlerOffset, handlerLength, classTokenOrFilterOffset);
   }
   return retSEHEntries;
 }