Class ImportByName

    • Constructor Summary

      Constructors 
      Constructor Description
      ImportByName()
      DO NOT USE THIS CONSTRUCTOR, USE create*(GenericFactory ...) FACTORY METHODS INSTEAD.
      ImportByName​(short hint, java.lang.String name)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      short getHint()  
      java.lang.String getName()
      Returns an ASCIIZ string with the name of the imported function.
      int getSizeOf()
      Returns the actual number of bytes consumed by this structure in memory.
      byte[] toBytes​(DataConverter dc)
      Returns a byte array representing this implementor of this interface.
      DataType toDataType()
      Returns a structure datatype representing the contents of the implementor of this interface.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ImportByName

        public ImportByName()
        DO NOT USE THIS CONSTRUCTOR, USE create*(GenericFactory ...) FACTORY METHODS INSTEAD.
      • ImportByName

        public ImportByName​(short hint,
                            java.lang.String name)
        Parameters:
        hint - the import hint (ordinal)
        name - the name of the imported function.
    • Method Detail

      • getHint

        public short getHint()
        Returns:
        the export ordinal for the imported function
      • getName

        public java.lang.String getName()
        Returns an ASCIIZ string with the name of the imported function.
        Returns:
        an ASCIIZ string with the name of the imported function
      • toDataType

        public DataType toDataType()
                            throws DuplicateNameException
        Description copied from interface: StructConverter
        Returns a structure datatype representing the contents of the implementor of this interface.

        For example, given:

         class A {
             int foo;
             double bar;
         }
         

        The return value should be a structure data type with two data type components; an INT and a DOUBLE. The structure should contain field names and, if possible, field comments.

        Specified by:
        toDataType in interface StructConverter
        Returns:
        returns a structure datatype representing the implementor of this interface
        Throws:
        DuplicateNameException - when a datatype of the same name already exists
        See Also:
        StructConverter.toDataType()
      • getSizeOf

        public int getSizeOf()
        Returns the actual number of bytes consumed by this structure in memory.
        Returns:
        the actual number of bytes consumed by this structure in memory