No No Taz that was issue 1, which was solved as I said
before, this new issue was that I wanted to copy a buffer to a Databloc allocated by the script.
Anyways, through trial and error I got RtlCopyMemory function working. I'll post the code in case someone one day is searching for it:
code:
var data = Interop.Allocate(10); //buffer size 10
Interop.Call("some.dll", "foo", data.DataPtr);
code:
function foo(void* data){
RtlCopyMemory(data, &buffer[0], 10); //buffer size 10
}
Now my
next issue is that ReadString function stops at the first instance of null character. The buffer however contains many null characters. The alternative is to loop and use GetAt to filter out the null characters and retrieve the rest, but if someone knows of a more efficient method please let me know.
Thanks,
CD