Interface FactoryDataType

All Superinterfaces:
BuiltInDataType, DataType, ExtensionPoint
All Known Implementing Classes:
ElfDataType, FactoryStructureDataType, PeDataType

public interface FactoryDataType extends BuiltInDataType
A DataType class that creates data types dynamically should implement this interface. This prevents them being directly referred to by a data instance within the listing or within a composite (e.g., added to a composite using the structure editor). FactoryDataType's should never be parented (e.g., Pointer, Structure component, Typedef, etc.).
  • Method Details

    • getDataType

      DataType getDataType(MemBuffer buf)
      Returns the appropriate DataType which corresponds to the specified memory location.
      Parameters:
      buf - memory location
      Returns:
      fabricated datatype based upon memory data
    • getLength

      default int getLength()
      All implementations must return a length of -1.
      Specified by:
      getLength in interface DataType
      Returns:
      length of -1