# Class: com.pnfsoftware.jeb.core.units.code.asm.memory.VMReader

Virtual memory utility \(outside of [VirtualMemoryUtil](VirtualMemoryUtil)\) to read and map memory bytes to [native data types](INativeType).

## Constructor: VMReader
- parameter: `vm`, type: `com.pnfsoftware.jeb.core.units.code.asm.memory.IVirtualMemory`

Description: Create a reader.
parameter: vm: virtual memory object

## Method: read
- parameter: `addr`, type: `long`
- parameter: `t`, type: `com.pnfsoftware.jeb.core.units.code.asm.type.INativeType`
- return type: `com.pnfsoftware.jeb.core.units.code.asm.memory.VMReader.Buf`

Description: Read bytes at the given memory address and treat them as an object of the provided type.
parameter: addr: address to read
parameter: t: native type
return: buffer reader, or null

