Skip to content
/ nimlibmem Public

Nim bindings and helper functions for libmem

Notifications You must be signed in to change notification settings

qb-0/nimlibmem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 

Repository files navigation

libmem bindings for the Nim Programming Language

To install these bindings, clone this repository and run nimble install. Tests can be run with nimble test.

import nimlibmem

var 
  myFloat: float = 123.0
  myFloatAddr: uint = cast[lm_address_t](myFloat.addr)

doAssert LM_ReadMemory[float](myFloatAddr) == 123.0
doAssert LM_WriteMemory(myFloatAddr, 1337.0) == 8
doAssert LM_ReadMemory[float](myFloatAddr) == 1337.0

About

Nim bindings and helper functions for libmem

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages