<div dir="ltr">Your idea is ok.  Just strip everything you don't need from ei and it will work for you.<div><br></div><div>As for me, I like enif api more, but Sverker has pointed that I'm misuing it inside drivers and it may break once =)</div><div><br></div><div><br></div></div>