|
||||||||||
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
|
private Elf |
parent
|
private long |
pointer
|
Constructor Summary | |
---|---|
|
ElfData(byte[] buffer,
Elf parent)
Package buffer in an ElfData object. |
protected |
ElfData(long ptr,
Elf parent)
|
Method Summary | |
---|---|
private void |
elf_data_create_native()
|
private void |
elf_data_finalize()
|
protected long |
elf_data_get_align()
|
protected byte |
elf_data_get_byte(long offset)
|
protected int |
elf_data_get_off()
|
protected long |
elf_data_get_size()
|
protected int |
elf_data_get_type()
|
protected int |
elf_data_get_version()
|
protected void |
elf_data_set_align(long align)
|
protected void |
elf_data_set_buff(long length)
|
protected void |
elf_data_set_off(int offset)
|
protected void |
elf_data_set_size(long size)
|
protected void |
elf_data_set_type(int type)
|
protected void |
elf_data_set_version(int version)
|
protected int |
elf_flagdata(int __cmd,
int __flags)
|
protected long |
elf_xlatetof(int __encode)
|
protected long |
elf_xlatetom(int __encode)
|
protected void |
finalize()
|
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()
|
protected long |
getPointer()
|
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 |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private long pointer
private Elf parent
public byte[] internal_buffer
Constructor Detail |
---|
public ElfData(byte[] buffer, Elf parent)
protected ElfData(long ptr, 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
protected long getPointer()
protected void finalize() throws Throwable
finalize
in class Object
Throwable
public Elf getParent()
private void elf_data_create_native()
private void elf_data_finalize()
protected void elf_data_set_buff(long length)
protected byte elf_data_get_byte(long offset)
protected int elf_data_get_type()
protected void elf_data_set_type(int type)
protected int elf_data_get_version()
protected void elf_data_set_version(int version)
protected long elf_data_get_size()
protected void elf_data_set_size(long size)
protected int elf_data_get_off()
protected void elf_data_set_off(int offset)
protected long elf_data_get_align()
protected void elf_data_set_align(long align)
protected int elf_flagdata(int __cmd, int __flags)
protected long elf_xlatetom(int __encode)
protected long elf_xlatetof(int __encode)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |