Cogito.Reflection.PortableExecutable/PEReaderExtensions.cs
/// <summary>
/// Reads the entries from the export directory.
/// </summary>
/// <param name="reader"></param>
/// <returns></returns>
Reads the entries from the export directory.
Reads the entries from the export directory .
public static ExportTableDirectory ReadExportTableDirectory(this PEReader reader)
        {
            if (reader is null)
                throw new ArgumentNullException(nameof(reader));
            if (reader.PEHeaders.PEHeader.ExportTableDirectory.Size > 0 &&
                reader.PEHeaders.TryGetDirectoryOffset(reader.PEHeaders.PEHeader.ExportTableDirectory, out var offset))
                return new ExportTableDirectory(reader, offset, 1);
            else
                return new ExportTableDirectory(reader, 0, 0);
        }
public static ExportTableDirectory ReadExportTableDirectory ( this PEReader reader ) { if ( reader is null ) throw new ArgumentNullException ( nameof ( reader ) ) ; if ( reader . PEHeaders . PEHeader . ExportTableDirectory . Size > 0 && reader . PEHeaders . TryGetDirectoryOffset ( reader . PEHeaders . PEHeader . ExportTableDirectory , out var offset ) ) return new ExportTableDirectory ( reader , offset , 1 ) ; else return new ExportTableDirectory ( reader , 0 , 0 ) ; }
Reads the entries from the export directory.
Reads the entries from the export directory .
// return directory table if possible
None
PEReader
this
reader
None