lib.dwfl
Class ElfNhdr

java.lang.Object
  extended by lib.dwfl.ElfNhdr

public class ElfNhdr
extends Object


Nested Class Summary
static class ElfNhdr.ElfNoteSectionEntry
           
 
Field Summary
private  ElfNhdr.ElfNoteSectionEntry desc
           
private  long descsz
           
private  String name
           
private  long namesz
           
private  int type
           
 
Constructor Summary
ElfNhdr()
           
 
Method Summary
 long fillMemRegion(byte[] buffer, long startAddress)
          Fill the region starting from startAddress in buffer according to this ElfNhdr object.
protected  long fillNhdr(byte[] buffer, long startAddress)
           
protected  long fillNhdrName(byte[] buffer, long startAddress)
           
 long getDescSize()
           
 String getName()
           
 long getNameSize()
           
 ElfNhdr.ElfNoteSectionEntry getNhdrDesc()
           
 long getNhdrEntrySize()
          Get the whole size of Nhdr (incluing the namesz and descsz).
 int getNhdrSize()
          Just get the size of Nhdr struct.
 ElfNhdrType getNhdrType()
           
 void setName(String nhdrName)
           
 void setNhdrDesc(ElfNhdrType nhdrType, ElfNhdr.ElfNoteSectionEntry nhdrDesc)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

namesz

private long namesz

descsz

private long descsz

type

private int type

name

private String name

desc

private ElfNhdr.ElfNoteSectionEntry desc
Constructor Detail

ElfNhdr

public ElfNhdr()
Method Detail

getName

public String getName()

getNameSize

public long getNameSize()

setName

public void setName(String nhdrName)

getNhdrType

public ElfNhdrType getNhdrType()

getNhdrDesc

public ElfNhdr.ElfNoteSectionEntry getNhdrDesc()

getDescSize

public long getDescSize()

setNhdrDesc

public void setNhdrDesc(ElfNhdrType nhdrType,
                        ElfNhdr.ElfNoteSectionEntry nhdrDesc)

getNhdrEntrySize

public long getNhdrEntrySize()
Get the whole size of Nhdr (incluing the namesz and descsz).

Returns:

getNhdrSize

public int getNhdrSize()
Just get the size of Nhdr struct.

Returns:

fillNhdr

protected long fillNhdr(byte[] buffer,
                        long startAddress)

fillNhdrName

protected long fillNhdrName(byte[] buffer,
                            long startAddress)

fillMemRegion

public long fillMemRegion(byte[] buffer,
                          long startAddress)
Fill the region starting from startAddress in buffer according to this ElfNhdr object.

Parameters:
noteSecBuffer -
startAddress -
Returns: