# 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: field name
parameter: fieldValue: field value
return: true if the field was set

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

Description: Set a byte at an offset.
parameter: off: offset
parameter: val: byte value

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

Description: Set a double at an offset.
parameter: off: offset
parameter: val: double value

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

Description: Set a float at an offset.
parameter: off: offset
parameter: val: float value

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

Description: Set an int at an offset.
parameter: off: offset
parameter: val: int value

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

Description: Set a long at an offset.
parameter: off: offset
parameter: val: long value

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

Description: Set a short at an offset.
parameter: off: offset
parameter: val: short value

