Class FactoryStructureDataType

    • Constructor Detail

      • FactoryStructureDataType

        protected FactoryStructureDataType​(java.lang.String name,
                                           DataTypeManager dtm)
        Constructs a new DynamicStructureDataType with the given name
        Parameters:
        name - the name of this dataType
    • Method Detail

      • clone

        public abstract DataType clone​(DataTypeManager dtm)
        Description copied from interface: DataType
        Returns a new instance of this DataType with its universalID and SourceArchive identity retained. Note: for built-in DataType's, clone and copy should have the same affect.
        Specified by:
        clone in interface DataType
        Parameters:
        dtm - the data-type manager instance whose data-organization should apply.
      • getLength

        public int getLength()
        Description copied from interface: DataType
        Get the length (number of 8-bit bytes) of this DataType.
        Specified by:
        getLength in interface DataType
        Returns:
        the length of this DataType
        See Also:
        DataType.getLength()
      • getDescription

        public java.lang.String getDescription()
        Description copied from interface: DataType
        Get a String briefly describing this DataType.
        Specified by:
        getDescription in interface DataType
        Returns:
        a one-liner describing this DataType.
        See Also:
        DataType.getDescription()
      • getDataType

        public DataType getDataType​(MemBuffer buf)
        Description copied from interface: FactoryDataType
        Returns the appropriate DataType which corresponds to the specified memory location.
        Specified by:
        getDataType in interface FactoryDataType
        Parameters:
        buf - memory location
      • setCategoryPath

        protected Structure setCategoryPath​(Structure struct,
                                            MemBuffer buf)
        Set the category of this data type.
        Parameters:
        struct -
        buf -
        Returns:
        Returns a new structure with the correct category.
      • populateDynamicStructure

        protected abstract void populateDynamicStructure​(MemBuffer buf,
                                                         Structure es)