public class

VMWriter

extends Object
java.lang.Object
   ↳ com.pnfsoftware.jeb.core.units.code.asm.memory.VMWriter

Class Overview

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

Summary

Public Constructors
VMWriter(IVirtualMemory vm, long addr, INativeType t)
Create a writer for the provided.
Public Methods
boolean commit()
Commit the changes to memory.
boolean set(String fieldName, Object fieldValue)
Set a field in the structure, if the provided type was a structure.
void setByteAt(int off, byte val)
void setDoubleAt(int off, double val)
void setFloatAt(int off, float val)
void setIntAt(int off, int val)
void setLongAt(int off, long val)
void setShortAt(int off, short val)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public VMWriter (IVirtualMemory vm, long addr, INativeType t)

Create a writer for the provided.

Parameters
vm a virtual memory object
addr address in memory
t a native type

Public Methods

public boolean commit ()

Commit the changes to memory.

Returns
  • true if the memory was updated

public boolean set (String fieldName, Object fieldValue)

Set a field in the structure, if the provided type was a structure.

public void setByteAt (int off, byte val)

public void setDoubleAt (int off, double val)

public void setFloatAt (int off, float val)

public void setIntAt (int off, int val)

public void setLongAt (int off, long val)

public void setShortAt (int off, short val)