Package ghidra.app.util.bin.format.som
Class SomSpace
java.lang.Object
ghidra.app.util.bin.format.som.SomSpace
- All Implemented Interfaces:
StructConverter
Represents a SOM
space_dictionary_record structure- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSomSpace(BinaryReader reader, long spaceStringsLocation) Creates a newSomSpace -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the number of data (init) pointers.intReturns the index into data (init) pointer array.intReturns the load fix index.longReturns the load fix quantity.getName()Returns the space name.intReturns the first reserved value.intReturns the second reserved value.intReturns the sort key for the space.intReturns the space index.intReturns the index into the subspace dictionary.longReturns the number of subspaces in the space.booleanReturns whether or not the space contains intermediate code.booleanReturns whether or not the space is defined within the file.booleanReturns whether or not the space is loadable.booleanReturns whether or not the space is not sharable.booleanReturns whether or not the space is thread specific.Returns a structure datatype representing the contents of the implementor of this interface.
-
Field Details
-
SIZE
public static final int SIZEThe size in bytes of aSomSpace- See Also:
-
-
Constructor Details
-
SomSpace
Creates a newSomSpace- Parameters:
reader- ABinaryReaderpositioned at the start of the recordspaceStringsLocation- The starting index of the space strings- Throws:
IOException- if there was an IO-related error
-
-
Method Details
-
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
Description copied from interface:StructConverterReturns 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:
toDataTypein interfaceStructConverter- Returns:
- returns a structure datatype representing the implementor of this interface
- Throws:
DuplicateNameException- when a datatype of the same name already existsIOException- if an IO-related error occurs- See Also:
-