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

Virtual memory utility \(outside of [VirtualMemoryUtil](VirtualMemoryUtil)\) to write memory bytes mapping to [native data types](INativeType).

## Constructor: VMWriter
- parameter: `vm`, type: `com.pnfsoftware.jeb.core.units.code.asm.memory.IVirtualMemory`
- parameter: `addr`, type: `long`
- parameter: `t`, type: `com.pnfsoftware.jeb.core.units.code.asm.type.INativeType`

Description: Create a writer for the provided.
parameter: vm: a virtual memory object
parameter: addr: address in memory
parameter: t: a native type

## Method: commit
- return type: `boolean`

Description: Commit the changes to memory.
return: true if the memory was updated

## Method: set
- parameter: `fieldName`, type: `java.lang.String`
- parameter: `fieldValue`, type: `java.lang.Object`
- return type: `boolean`

Description: Set a field in the structure, if the provided type was a structure.
parameter: fieldName: 
parameter: fieldValue: 
return: 

## Method: setByteAt
- parameter: `off`, type: `int`
- parameter: `val`, type: `byte`


## Method: setDoubleAt
- parameter: `off`, type: `int`
- parameter: `val`, type: `double`


## Method: setFloatAt
- parameter: `off`, type: `int`
- parameter: `val`, type: `float`


## Method: setIntAt
- parameter: `off`, type: `int`
- parameter: `val`, type: `int`


## Method: setLongAt
- parameter: `off`, type: `int`
- parameter: `val`, type: `long`


## Method: setShortAt
- parameter: `off`, type: `int`
- parameter: `val`, type: `short`


