Class SomSpace

java.lang.Object
ghidra.app.util.bin.format.som.SomSpace
All Implemented Interfaces:
StructConverter

public class SomSpace extends Object implements StructConverter
Represents a SOM space_dictionary_record structure
See Also:
  • Field Details

  • Constructor Details

    • SomSpace

      public SomSpace(BinaryReader reader, long spaceStringsLocation) throws IOException
      Creates a new SomSpace
      Parameters:
      reader - A BinaryReader positioned at the start of the record
      spaceStringsLocation - The starting index of the space strings
      Throws:
      IOException - if there was an IO-related error
  • Method Details

    • getName

      public String getName()
      Returns the space name.
      Returns:
      the space name
    • isLoadable

      public boolean isLoadable()
      Returns whether or not the space is loadable.
      Returns:
      whether or not the space is loadable
    • isDefined

      public boolean isDefined()
      Returns whether or not the space is defined within the file.
      Returns:
      whether or not the space is defined within the file
    • isPrivate

      public boolean isPrivate()
      Returns whether or not the space is not sharable.
      Returns:
      whether or not the space is not sharable
    • hasIntermediateCode

      public boolean hasIntermediateCode()
      Returns whether or not the space contains intermediate code.
      Returns:
      whether or not the space contains intermediate code
    • isThreadSpecific

      public boolean isThreadSpecific()
      Returns whether or not the space is thread specific.
      Returns:
      whether or not the space is thread specific
    • getReserved

      public int getReserved()
      Returns the first reserved value.
      Returns:
      the first reserved value
    • getSortKey

      public int getSortKey()
      Returns the sort key for the space.
      Returns:
      the sort key for the space
    • getReserved2

      public int getReserved2()
      Returns the second reserved value.
      Returns:
      the second reserved value
    • getSpaceNumber

      public int getSpaceNumber()
      Returns the space index.
      Returns:
      the space index
    • getSubspaceIndex

      public int getSubspaceIndex()
      Returns the index into the subspace dictionary.
      Returns:
      the index into the subspace dictionary
    • getSubspaceQuantity

      public long getSubspaceQuantity()
      Returns the number of subspaces in the space.
      Returns:
      the number of subspaces in the space
    • getLoaderFixIndex

      public int getLoaderFixIndex()
      Returns the load fix index.
      Returns:
      the load fix index
    • getLoaderFixQuantity

      public long getLoaderFixQuantity()
      Returns the load fix quantity.
      Returns:
      the load fix quantity
    • getInitPonterIndex

      public int getInitPonterIndex()
      Returns the index into data (init) pointer array.
      Returns:
      the index into data (init) pointer array
    • getInitPointerQuantity

      public long getInitPointerQuantity()
      Returns the number of data (init) pointers.
      Returns:
      the number of data (init) pointers
    • toDataType

      public DataType toDataType() throws DuplicateNameException, IOException
      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
      IOException - if an IO-related error occurs
      See Also: