Package org.eclipse.cdt.utils.coff
Class PE64
java.lang.Object
org.eclipse.cdt.utils.coff.PE64
- All Implemented Interfaces:
AutoCloseable
The PE file header consists of an MS-DOS stub, the PE signature, the COFF file Header
and an Optional Header.
+-------------------+ | DOS-stub | +-------------------+ | file-header | +-------------------+ | optional header | |- - - - - - - - - -| | | | data directories | | | +-------------------+ | | | section headers | | | +-------------------+ | | | section 1 | | | +-------------------+ | | | section 2 | | | +-------------------+ | | | ... | | | +-------------------+ | | | section n | | | +-------------------+
- Since:
- 6.9
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
static class
static class
class
class
static class
static class
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
dispose()
protected void
finalize()
static PE64.Attribute
getAttribute
(byte[] data) static PE64.Attribute
getAttribute
(String file) static PE64.Attribute
getAttributes
(Coff64.FileHeader filhdr) byte[]
getStringTableEntry
(int offset) static boolean
isExeHeader
(byte[] e_signature) static boolean
isValidMachine
(int magic) toString()
-
Field Details
-
NL
-
-
Constructor Details
-
PE64
- Throws:
IOException
-
PE64
- Throws:
IOException
-
PE64
- Throws:
IOException
-
-
Method Details
-
isValidMachine
public static boolean isValidMachine(int magic) -
getAttributes
-
isExeHeader
public static boolean isExeHeader(byte[] e_signature) -
getAttribute
- Throws:
IOException
-
getAttribute
- Throws:
IOException
-
getAttribute
- Throws:
IOException
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-
dispose
public void dispose() -
finalize
-
getExeHeader
-
getDOSHeader
-
getFileHeader
-
getOptionalHeader
-
getNTOptionalHeader64
-
getNTOptionalHeader32
-
getImageDataDirectories
- Throws:
IOException
-
getSectionHeaders
- Throws:
IOException
-
getSymbols
- Throws:
IOException
-
getStringTable
- Throws:
IOException
-
toString
-
getSymbolReader
-
getStringTableEntry
- Throws:
IOException
- Since:
- 5.1
-
getFilename
- Since:
- 5.1
-