/*
Copyright (C) 2014-2019 de4dot@gmail.com
This file is part of dnSpy
dnSpy is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
dnSpy is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with dnSpy. If not, see .
*/
using dnSpy.Contracts.Hex.Files.PE;
namespace dnSpy.Contracts.Hex.Files.DotNet {
///
/// COR20 header
///
public abstract class DotNetCor20Data : StructureData {
const string NAME = "IMAGE_COR20_HEADER";
///
/// Constructor
///
/// Span
protected DotNetCor20Data(HexBufferSpan span)
: base(NAME, span) {
}
/// IMAGE_COR20_HEADER.cb
public abstract StructField Cb { get; }
/// IMAGE_COR20_HEADER.MajorRuntimeVersion
public abstract StructField MajorRuntimeVersion { get; }
/// IMAGE_COR20_HEADER.MinorRuntimeVersion
public abstract StructField MinorRuntimeVersion { get; }
/// IMAGE_COR20_HEADER.MetaData
public abstract StructField Metadata { get; }
/// IMAGE_COR20_HEADER.Flags
public abstract StructField Flags { get; }
/// IMAGE_COR20_HEADER.EntryPointToken / IMAGE_COR20_HEADER.EntryPointRVA
public abstract StructField EntryPointTokenOrRVA { get; }
/// IMAGE_COR20_HEADER.Resources
public abstract StructField Resources { get; }
/// IMAGE_COR20_HEADER.StrongNameSignature
public abstract StructField StrongNameSignature { get; }
/// IMAGE_COR20_HEADER.CodeManagerTable
public abstract StructField CodeManagerTable { get; }
/// IMAGE_COR20_HEADER.VTableFixups
public abstract StructField VTableFixups { get; }
/// IMAGE_COR20_HEADER.ExportAddressTableJumps
public abstract StructField ExportAddressTableJumps { get; }
/// IMAGE_COR20_HEADER.ManagedNativeHeader
public abstract StructField ManagedNativeHeader { get; }
}
}