lib.dwfl
Class ElfNhdr

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

public class ElfNhdr
extends Object


Nested Class Summary
static class ElfNhdr.ElfNoteSectionEntry
           
 
Constructor Summary
ElfNhdr()
           
 
Method Summary
 long fillMemRegion(byte[] buffer, long startAddress)
          Fill the region starting from startAddress in buffer according to this ElfNhdr object.
 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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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:

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: