|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object lib.dwfl.ElfData
public class ElfData
An ElfData is a descriptor of data that will be converted to or from memory format
Field Summary | |
---|---|
byte[] |
internal_buffer
|
Constructor Summary | |
---|---|
ElfData(byte[] buffer,
Elf parent)
Package buffer in an ElfData object. |
Method Summary | |
---|---|
ElfFlags |
flag(ElfCommand command,
ElfFlags flags)
Flags the data with the provided flag |
long |
getAlignment()
|
byte |
getByte(long offset)
Returns the byte at the provided offset into the data |
byte[] |
getBytes()
|
int |
getOffset()
|
Elf |
getParent()
|
long |
getSize()
|
ElfType |
getType()
Returns the Elf Data type |
void |
setAlignment(long align)
|
void |
setBuffer(byte[] e_buffer)
Sets the buffer to point to the byte[] array This will then be written to disk on elf_update |
void |
setOffset(int offset)
|
void |
setSize(long size)
|
void |
setType(int type)
Sets the Elf Data Type |
ElfData |
translateToELFRepresentation(int encoding)
Translates the information into Elf format using the provided encoding |
ElfData |
translateToMemoryRepresentation(int encoding)
Translates the information into memory format using the provided encoding |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public byte[] internal_buffer
Constructor Detail |
---|
public ElfData(byte[] buffer, Elf parent)
Method Detail |
---|
public void setBuffer(byte[] e_buffer)
public byte getByte(long offset)
offset
- The offset from which to get the byte
public byte[] getBytes()
public void setType(int type)
The
- type of the datapublic ElfType getType()
public long getSize()
public void setSize(long size)
The
- size of the data in bytespublic int getOffset()
public void setOffset(int offset)
The
- offset into the section of the datapublic long getAlignment()
public void setAlignment(long align)
The
- alignment of the data in the sectionpublic ElfData translateToMemoryRepresentation(int encoding)
encoding
- The encoding to use
public ElfData translateToELFRepresentation(int encoding)
encoding
- The encoding to use
public ElfFlags flag(ElfCommand command, ElfFlags flags)
command
- An ElfCommand
flags
- The flags to apply
public Elf getParent()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |