FileDocCategorySizeDatePackage
MappedPlatformAddress.javaAPI DocAndroid 1.5 API2163Wed May 06 22:41:04 BST 2009org.apache.harmony.luni.platform

MappedPlatformAddress

public class MappedPlatformAddress extends PlatformAddress

Fields Summary
Constructors Summary
MappedPlatformAddress(int address, long size)

        super(address, size);
    
Methods Summary
public PlatformAddressduplicate()

        return PlatformAddressFactory.mapOn(osaddr, size);
    
public final voidfree()

        if(memorySpy.free(this)){
            osMemory.unmap(osaddr, size);
        }
    
public final voidmmapFlush()

        memorySpy.rangeCheck(this, 0, (int) size * SIZEOF_JBYTE);
        osMemory.flush(osaddr, size);
    
public final booleanmmapIsLoaded()

        memorySpy.rangeCheck(this, 0, (int) size * SIZEOF_JBYTE);
        return osMemory.isLoaded(osaddr, size);
    
public final voidmmapLoad()

        memorySpy.rangeCheck(this, 0, (int) size * SIZEOF_JBYTE);
        osMemory.load(osaddr, size);
    
public final PlatformAddressoffsetBytes(int offset)

        return PlatformAddressFactory.mapOn(osaddr + offset, size - offset);