namespace SabreTools.Data.Models.COFF.SymbolTableEntries
{
///
/// Auxiliary Format 1: Function Definitions
///
/// A symbol table record marks the beginning of a function definition if it
/// has all of the following: a storage class of EXTERNAL (2), a Type value
/// that indicates it is a function (0x20), and a section number that is
/// greater than zero. Note that a symbol table record that has a section
/// number of UNDEFINED (0) does not define the function and does not have
/// an auxiliary record. Function-definition symbol records are followed by
/// an auxiliary record in the format described below:
///
///
public class FunctionDefinition : BaseEntry
{
///
/// The symbol-table index of the corresponding .bf (begin function)
/// symbol record.
///
public uint TagIndex { get; set; }
///
/// The size of the executable code for the function itself. If the function
/// is in its own section, the SizeOfRawData in the section header is greater
/// or equal to this field, depending on alignment considerations.
///
public uint TotalSize { get; set; }
///
/// The file offset of the first COFF line-number entry for the function, or
/// zero if none exists.
///
public uint PointerToLinenumber { get; set; }
///
/// The symbol-table index of the record for the next function. If the function
/// is the last in the symbol table, this field is set to zero.
///
public uint PointerToNextFunction { get; set; }
///
/// Unused
///
public ushort Unused { get; set; }
}
}