The module implements helper functions for reading and writing values to VM locations. These are useful when writing VM callbacks.
Procs
proc tryWriteTo[T: enum](v: T; dest: LocHandle; mm: var VmMemoryManager): bool
- Source Edit
proc tryWriteTo[T: object | tuple](v: T; dest: LocHandle; mm: var VmMemoryManager): bool
- Source Edit
proc tryWriteTo[T: seq](v: T; dest: LocHandle; mm: var VmMemoryManager): bool
- Source Edit
proc tryWriteTo[T: SomeSignedInt](v: T; dest: LocHandle; mm: var VmMemoryManager): bool
- Source Edit
proc tryWriteTo[T: SomeUnsignedInt](v: T; dest: LocHandle; mm: var VmMemoryManager): bool
- Source Edit
proc tryWriteTo[T: string](v: T; dest: LocHandle; mm: var VmMemoryManager): bool
- Source Edit
proc writeTo[T](v: T; dest: LocHandle; mm: var VmMemoryManager)
- Source Edit