|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ELF
Method Summary | |
---|---|
void |
addProgramHeader(ProgramHeader p)
Adds the given ELF program header to this object. |
void |
addSection(Section s)
Adds the given ELF section to this object. |
Section |
getSection(int index)
|
Section.StrTabSection |
getSectionHeaderStringTable()
Returns the section header string table, if one has been defined. |
List |
getSections()
Returns the list of ELF sections in this object. |
boolean |
isBigEndian()
Returns true if this ELF object is big-endian. |
boolean |
isLittleEndian()
Returns true if this ELF object is little-endian. |
int |
read_addr()
|
byte |
read_byte()
|
void |
read_bytes(byte[] b)
|
int |
read_half()
|
int |
read_off()
|
int |
read_sword()
|
int |
read_word()
|
void |
removeProgramHeader(ProgramHeader p)
Removes the given ELF program header from this object. |
void |
removeSection(Section s)
Removes the given ELF section from this object. |
void |
set_position(int offset)
|
void |
setBigEndian()
|
void |
setLittleEndian()
|
void |
setSectionHeaderStringTable(Section.StrTabSection shstrtab)
Sets the section header string table to be the given section. |
void |
write_addr(int v)
|
void |
write_byte(byte v)
|
void |
write_bytes(byte[] v)
|
void |
write_half(int v)
|
void |
write_off(int v)
|
void |
write_sectionname(String s)
|
void |
write_sword(int v)
|
void |
write_word(int v)
|
void |
write()
|
Method Detail |
---|
List getSections()
Section getSection(int index)
Section.StrTabSection getSectionHeaderStringTable()
boolean isLittleEndian()
boolean isBigEndian()
void setSectionHeaderStringTable(Section.StrTabSection shstrtab)
shstrtab
- new section header string tablevoid addSection(Section s)
s
- section to addvoid removeSection(Section s)
s
- section to removevoid addProgramHeader(ProgramHeader p)
p
- program header to addvoid removeProgramHeader(ProgramHeader p)
p
- program header to removevoid setLittleEndian()
void setBigEndian()
void write() throws IOException
IOException
void write_byte(byte v) throws IOException
IOException
void write_bytes(byte[] v) throws IOException
IOException
void write_half(int v) throws IOException
IOException
void write_word(int v) throws IOException
IOException
void write_sword(int v) throws IOException
IOException
void write_off(int v) throws IOException
IOException
void write_addr(int v) throws IOException
IOException
void write_sectionname(String s) throws IOException
IOException
void set_position(int offset) throws IOException
IOException
byte read_byte() throws IOException
IOException
void read_bytes(byte[] b) throws IOException
IOException
int read_half() throws IOException
IOException
int read_word() throws IOException
IOException
int read_sword() throws IOException
IOException
int read_off() throws IOException
IOException
int read_addr() throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |