# Class: com.pnfsoftware.jeb.core.units.code.asm.memory.AbstractVirtualMemory
- Super class: `java.lang.Object`
- Super interfaces: `com.pnfsoftware.jeb.core.units.code.asm.memory.IVirtualMemory`

A skeleton implementation for virtual memory classes. Most trivial methods are implemented here.

## Constructor: AbstractVirtualMemory (no-arg)


## Method: addAllocListener
- parameter: `listener`, type: `com.pnfsoftware.jeb.core.units.code.asm.memory.IMemoryAllocListener`


## Method: addFreeListener
- parameter: `listener`, type: `com.pnfsoftware.jeb.core.units.code.asm.memory.IMemoryFreeListener`


## Method: addPreWriteListener
- parameter: `listener`, type: `com.pnfsoftware.jeb.core.units.code.asm.memory.IMemoryWriteListener`


## Method: addPropertyListener
- parameter: `listener`, type: `com.pnfsoftware.jeb.core.units.code.asm.memory.IMemoryPropertyListener`


## Method: addProtectionListener
- parameter: `listener`, type: `com.pnfsoftware.jeb.core.units.code.asm.memory.IMemoryProtectionListener`


## Method: addWriteListener
- parameter: `listener`, type: `com.pnfsoftware.jeb.core.units.code.asm.memory.IMemoryWriteListener`


## Method: allocatePage
- parameter: `address`, type: `long`
- parameter: `protection`, type: `int`
- throws: `com.pnfsoftware.jeb.core.units.code.asm.memory.MemoryException`


## Method: freePage
- parameter: `address`, type: `long`
- throws: `com.pnfsoftware.jeb.core.units.code.asm.memory.MemoryException`


## Protected Method: getAllocListeners
- return type: `java.util.List<com.pnfsoftware.jeb.core.units.code.asm.memory.IMemoryAllocListener>`


## Method: getAproximateFootprint
- return type: `int`


## Protected Method: getFreeListeners
- return type: `java.util.List<com.pnfsoftware.jeb.core.units.code.asm.memory.IMemoryFreeListener>`


## Protected Method: getPreWriteListeners
- return type: `java.util.List<com.pnfsoftware.jeb.core.units.code.asm.memory.IMemoryWriteListener>`


## Protected Method: getPropertyListeners
- return type: `java.util.List<com.pnfsoftware.jeb.core.units.code.asm.memory.IMemoryPropertyListener>`


## Protected Method: getProtectionListeners
- return type: `java.util.List<com.pnfsoftware.jeb.core.units.code.asm.memory.IMemoryProtectionListener>`


## Protected Method: getWriteListeners
- return type: `java.util.List<com.pnfsoftware.jeb.core.units.code.asm.memory.IMemoryWriteListener>`


## Synchronized Method: readBEInt
- parameter: `address`, type: `long`
- return type: `int`
- throws: `com.pnfsoftware.jeb.core.units.code.asm.memory.MemoryException`


## Synchronized Method: readBELong
- parameter: `address`, type: `long`
- return type: `long`
- throws: `com.pnfsoftware.jeb.core.units.code.asm.memory.MemoryException`


## Synchronized Method: readBEShort
- parameter: `address`, type: `long`
- return type: `short`
- throws: `com.pnfsoftware.jeb.core.units.code.asm.memory.MemoryException`


## Synchronized Method: readByte
- parameter: `address`, type: `long`
- return type: `byte`
- throws: `com.pnfsoftware.jeb.core.units.code.asm.memory.MemoryException`


## Synchronized Method: readInt
- parameter: `address`, type: `long`
- return type: `int`
- throws: `com.pnfsoftware.jeb.core.units.code.asm.memory.MemoryException`


## Synchronized Method: readInt
- parameter: `address`, type: `long`
- parameter: `end`, type: `com.pnfsoftware.jeb.util.io.Endianness`
- return type: `int`
- throws: `com.pnfsoftware.jeb.core.units.code.asm.memory.MemoryException`


## Synchronized Method: readLEInt
- parameter: `address`, type: `long`
- return type: `int`
- throws: `com.pnfsoftware.jeb.core.units.code.asm.memory.MemoryException`


## Synchronized Method: readLELong
- parameter: `address`, type: `long`
- return type: `long`
- throws: `com.pnfsoftware.jeb.core.units.code.asm.memory.MemoryException`


## Synchronized Method: readLEShort
- parameter: `address`, type: `long`
- return type: `short`
- throws: `com.pnfsoftware.jeb.core.units.code.asm.memory.MemoryException`


## Synchronized Method: readLong
- parameter: `address`, type: `long`
- return type: `long`
- throws: `com.pnfsoftware.jeb.core.units.code.asm.memory.MemoryException`


## Synchronized Method: readLong
- parameter: `address`, type: `long`
- parameter: `end`, type: `com.pnfsoftware.jeb.util.io.Endianness`
- return type: `long`
- throws: `com.pnfsoftware.jeb.core.units.code.asm.memory.MemoryException`


## Method: readPointer
- parameter: `address`, type: `long`
- return type: `long`
- throws: `com.pnfsoftware.jeb.core.units.code.asm.memory.MemoryException`


## Synchronized Method: readShort
- parameter: `address`, type: `long`
- return type: `short`
- throws: `com.pnfsoftware.jeb.core.units.code.asm.memory.MemoryException`


## Synchronized Method: readShort
- parameter: `address`, type: `long`
- parameter: `end`, type: `com.pnfsoftware.jeb.util.io.Endianness`
- return type: `short`
- throws: `com.pnfsoftware.jeb.core.units.code.asm.memory.MemoryException`


## Method: removeAllocListener
- parameter: `listener`, type: `com.pnfsoftware.jeb.core.units.code.asm.memory.IMemoryAllocListener`


## Method: removeFreeListener
- parameter: `listener`, type: `com.pnfsoftware.jeb.core.units.code.asm.memory.IMemoryFreeListener`


## Method: removePreWriteListener
- parameter: `listener`, type: `com.pnfsoftware.jeb.core.units.code.asm.memory.IMemoryWriteListener`


## Method: removePropertyListener
- parameter: `listener`, type: `com.pnfsoftware.jeb.core.units.code.asm.memory.IMemoryPropertyListener`


## Method: removeProtectionListener
- parameter: `listener`, type: `com.pnfsoftware.jeb.core.units.code.asm.memory.IMemoryProtectionListener`


## Method: removeWriteListener
- parameter: `listener`, type: `com.pnfsoftware.jeb.core.units.code.asm.memory.IMemoryWriteListener`


## Method: roundToPage
- parameter: `address`, type: `long`
- return type: `long`


## Method: roundToSize
- parameter: `address`, type: `long`
- return type: `long`


## Method: setLazyMemoryProvider
- parameter: `lazyMemoryProvider`, type: `com.pnfsoftware.jeb.core.units.code.asm.memory.ILazyMemoryProvider`
- parameter: `skipFailedAllocations`, type: `boolean`
- throws: `com.pnfsoftware.jeb.core.units.code.asm.memory.MemoryException`
- throws: `java.lang.UnsupportedOperationException`


## Synchronized Method: writeBEInt
- parameter: `address`, type: `long`
- parameter: `v`, type: `int`
- throws: `com.pnfsoftware.jeb.core.units.code.asm.memory.MemoryException`


## Synchronized Method: writeBELong
- parameter: `address`, type: `long`
- parameter: `v`, type: `long`
- throws: `com.pnfsoftware.jeb.core.units.code.asm.memory.MemoryException`


## Synchronized Method: writeBEShort
- parameter: `address`, type: `long`
- parameter: `v`, type: `short`
- throws: `com.pnfsoftware.jeb.core.units.code.asm.memory.MemoryException`


## Synchronized Method: writeByte
- parameter: `address`, type: `long`
- parameter: `v`, type: `byte`
- throws: `com.pnfsoftware.jeb.core.units.code.asm.memory.MemoryException`


## Synchronized Method: writeInt
- parameter: `address`, type: `long`
- parameter: `v`, type: `int`
- throws: `com.pnfsoftware.jeb.core.units.code.asm.memory.MemoryException`


## Synchronized Method: writeInt
- parameter: `address`, type: `long`
- parameter: `v`, type: `int`
- parameter: `end`, type: `com.pnfsoftware.jeb.util.io.Endianness`
- throws: `com.pnfsoftware.jeb.core.units.code.asm.memory.MemoryException`


## Synchronized Method: writeLEInt
- parameter: `address`, type: `long`
- parameter: `v`, type: `int`
- throws: `com.pnfsoftware.jeb.core.units.code.asm.memory.MemoryException`


## Synchronized Method: writeLELong
- parameter: `address`, type: `long`
- parameter: `v`, type: `long`
- throws: `com.pnfsoftware.jeb.core.units.code.asm.memory.MemoryException`


## Synchronized Method: writeLEShort
- parameter: `address`, type: `long`
- parameter: `v`, type: `short`
- throws: `com.pnfsoftware.jeb.core.units.code.asm.memory.MemoryException`


## Synchronized Method: writeLong
- parameter: `address`, type: `long`
- parameter: `v`, type: `long`
- throws: `com.pnfsoftware.jeb.core.units.code.asm.memory.MemoryException`


## Synchronized Method: writeLong
- parameter: `address`, type: `long`
- parameter: `v`, type: `long`
- parameter: `end`, type: `com.pnfsoftware.jeb.util.io.Endianness`
- throws: `com.pnfsoftware.jeb.core.units.code.asm.memory.MemoryException`


## Method: writePointer
- parameter: `address`, type: `long`
- parameter: `ptr`, type: `long`
- throws: `com.pnfsoftware.jeb.core.units.code.asm.memory.MemoryException`


## Synchronized Method: writeShort
- parameter: `address`, type: `long`
- parameter: `v`, type: `short`
- throws: `com.pnfsoftware.jeb.core.units.code.asm.memory.MemoryException`


## Synchronized Method: writeShort
- parameter: `address`, type: `long`
- parameter: `v`, type: `short`
- parameter: `end`, type: `com.pnfsoftware.jeb.util.io.Endianness`
- throws: `com.pnfsoftware.jeb.core.units.code.asm.memory.MemoryException`


