Class VS_VERSION_INFO
- java.lang.Object
-
- ghidra.app.util.bin.format.pe.resource.VS_VERSION_INFO
-
- All Implemented Interfaces:
StructConverter
public class VS_VERSION_INFO extends java.lang.Object implements StructConverter
A class to represent the VS_VERSION_INFO data structure.
-
-
Constructor Summary
Constructors Constructor Description VS_VERSION_INFO(FactoryBundledWithBinaryReader reader, int index)Constructs a new VS_VERSION_INFO object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VS_VERSION_CHILD[]getChildren()Returns the array of VS_VERSION_CHILD defined in this VS_VERSION_INFO object.intgetFileFlags()Returns the file flags.java.lang.StringgetFileFlagsMask()Returns the file flags mask.intgetFileOS()Returns the file OS.intgetFileSubtype()Returns the file sub-type.intgetFileTimestamp()Returns the file timestamp.intgetFileType()Returns the file type.java.lang.StringgetFileVersion()Returns the file version.java.lang.StringgetInfo()Returns the info.java.lang.String[]getKeys()Returns the array of keys in this version child.java.lang.StringgetProductVersion()Returns the product version.intgetSignature()Returns the signature.shortgetStructLength()Returns the structure length.shortgetStructType()Returns the structure type.java.lang.StringgetStructVersion()Returns the structure version.java.lang.StringgetValue(java.lang.String key)Returns the value for the specified key.shortgetValueLength()Returns the value length.DataTypetoDataType()Returns a structure datatype representing the contents of the implementor of this interface.
-
-
-
Field Detail
-
NAME
public static final java.lang.String NAME
- See Also:
- Constant Field Values
-
SIZEOF
public static final int SIZEOF
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
VS_VERSION_INFO
public VS_VERSION_INFO(FactoryBundledWithBinaryReader reader, int index) throws java.io.IOException
Constructs a new VS_VERSION_INFO object.- Parameters:
reader- the binary readerindex- the index where the VS_VERSION_INFO begins- Throws:
java.io.IOException- if an I/O error occurs
-
-
Method Detail
-
toDataType
public DataType toDataType() throws DuplicateNameException
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 exists- See Also:
StructureDataType
-
getChildren
public VS_VERSION_CHILD[] getChildren()
Returns the array of VS_VERSION_CHILD defined in this VS_VERSION_INFO object.- Returns:
- the array of VS_VERSION_CHILD defined in this VS_VERSION_INFO object
-
getFileFlags
public int getFileFlags()
Returns the file flags.- Returns:
- the file flags
-
getFileFlagsMask
public java.lang.String getFileFlagsMask()
Returns the file flags mask.- Returns:
- the file flags mask
-
getFileOS
public int getFileOS()
Returns the file OS.- Returns:
- the file OS
-
getFileSubtype
public int getFileSubtype()
Returns the file sub-type.- Returns:
- the file sub-type
-
getFileTimestamp
public int getFileTimestamp()
Returns the file timestamp.- Returns:
- the file timestamp
-
getFileType
public int getFileType()
Returns the file type.- Returns:
- the file type
-
getFileVersion
public java.lang.String getFileVersion()
Returns the file version.- Returns:
- the file version
-
getInfo
public java.lang.String getInfo()
Returns the info.- Returns:
- the info
-
getProductVersion
public java.lang.String getProductVersion()
Returns the product version.- Returns:
- the product version
-
getSignature
public int getSignature()
Returns the signature.- Returns:
- the signature
-
getStructLength
public short getStructLength()
Returns the structure length.- Returns:
- the structure length
-
getStructType
public short getStructType()
Returns the structure type.- Returns:
- the structure type
-
getStructVersion
public java.lang.String getStructVersion()
Returns the structure version.- Returns:
- the structure version
-
getValueLength
public short getValueLength()
Returns the value length.- Returns:
- the value length
-
getKeys
public java.lang.String[] getKeys()
Returns the array of keys in this version child.- Returns:
- the array of keys in this version child
-
getValue
public java.lang.String getValue(java.lang.String key)
Returns the value for the specified key.- Parameters:
key- the key- Returns:
- the value for the specified key
-
-