lib.dwfl
Class ElfPrAuxv

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

public class ElfPrAuxv
extends ElfNhdr.ElfNoteSectionEntry

Java Representation of the the NT_AUXV notes secion found in core files


Field Summary
private  ByteBuffer noteBuffer
           
private  byte[] noteData
           
 
Constructor Summary
private ElfPrAuxv(Elf elf, byte[] noteData)
           
  ElfPrAuxv(int length, int wordSize, ByteOrder byteOrder)
           
 
Method Summary
static ElfPrAuxv decode(ElfData noteData)
           
 long fillMemRegion(byte[] buffer, long startAddress)
          This is called when the notes section is filled.
 byte[] getByteArray()
           
 ByteBuffer getByteBuffer()
          Return auxv data, in raw form
 long getEntrySize()
          Returns the entry size associated with this notes buffer.
private static byte[] getNoteData(ElfData data)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

noteData

private byte[] noteData

noteBuffer

private ByteBuffer noteBuffer
Constructor Detail

ElfPrAuxv

public ElfPrAuxv(int length,
                 int wordSize,
                 ByteOrder byteOrder)

ElfPrAuxv

private ElfPrAuxv(Elf elf,
                  byte[] noteData)
Method Detail

decode

public static ElfPrAuxv decode(ElfData noteData)

getByteBuffer

public ByteBuffer getByteBuffer()
Return auxv data, in raw form


getByteArray

public byte[] getByteArray()

getEntrySize

public long getEntrySize()
Returns the entry size associated with this notes buffer.

Specified by:
getEntrySize in class ElfNhdr.ElfNoteSectionEntry

fillMemRegion

public long fillMemRegion(byte[] buffer,
                          long startAddress)
This is called when the notes section is filled. Fill the passed buffer with your own data, starting at startAddress

Specified by:
fillMemRegion in class ElfNhdr.ElfNoteSectionEntry

getNoteData

private static byte[] getNoteData(ElfData data)