コード例 #1
0
 public DotNetHeadersImpl(PeHeaders peHeaders, DotNetCor20Data cor20, DotNetMetadataHeaders metadataHeaders, VirtualArrayData <ByteData> strongNameSignature, DotNetMethodProvider methodProvider, DotNetResourceProvider resourceProvider)
 {
     if (peHeaders == null)
     {
         throw new ArgumentNullException(nameof(peHeaders));
     }
     if (cor20 == null)
     {
         throw new ArgumentNullException(nameof(cor20));
     }
     if (methodProvider == null)
     {
         throw new ArgumentNullException(nameof(methodProvider));
     }
     if (resourceProvider == null)
     {
         throw new ArgumentNullException(nameof(resourceProvider));
     }
     PeHeaders           = peHeaders;
     Cor20               = cor20;
     MetadataHeaders     = metadataHeaders;
     StrongNameSignature = strongNameSignature;
     MethodProvider      = methodProvider;
     ResourceProvider    = resourceProvider;
 }
コード例 #2
0
 void ReadStrongNameSignature(PeHeaders peHeaders, HexSpan?span)
 {
     if (span == null)
     {
         return;
     }
     strongNameSignature = ArrayData.CreateVirtualByteArray(new HexBufferSpan(file.Buffer, span.Value), name: "STRONGNAMESIGNATURE");
 }