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; }
void ReadStrongNameSignature(PeHeaders peHeaders, HexSpan?span) { if (span == null) { return; } strongNameSignature = ArrayData.CreateVirtualByteArray(new HexBufferSpan(file.Buffer, span.Value), name: "STRONGNAMESIGNATURE"); }