FileDocCategorySizeDatePackage
NativeLibraryMapInfo.javaAPI DocAndroid 1.5 API2163Wed May 06 22:41:08 BST 2009com.android.ddmlib

NativeLibraryMapInfo

public final class NativeLibraryMapInfo extends Object
Memory address to library mapping for native libraries.

Each instance represents a single native library and its start and end memory addresses.

Fields Summary
private long
mStartAddr
private long
mEndAddr
private String
mLibrary
Constructors Summary
NativeLibraryMapInfo(long startAddr, long endAddr, String library)
Constructs a new native library map info.

param
startAddr The start address of the library.
param
endAddr The end address of the library.
param
library The name of the library.

        this.mStartAddr = startAddr;
        this.mEndAddr = endAddr;
        this.mLibrary = library;
    
Methods Summary
public longgetEndAddress()
Returns the end address of the library.

        return mEndAddr;
    
public java.lang.StringgetLibraryName()
Returns the name of the library.

        return mLibrary;
    
public longgetStartAddress()
Returns the start address of the library.

        return mStartAddr;
    
public booleanisWithinLibrary(long address)
Returns whether the specified address is inside the library.

param
address The address to test.
return
true if the address is between the start and end address of the library.
see
#getStartAddress()
see
#getEndAddress()

        return address >= mStartAddr && address <= mEndAddr;