admin管理员组

文章数量:1416631

I have a function that I built in masm that does string work and then returns a pointer. But I can't seem to make it a pony string.

I tried .string and it didn't work. Is there a builtin function or some way to do this?

I have a function that I built in masm that does string work and then returns a pointer. But I can't seem to make it a pony string.

I tried .string and it didn't work. Is there a builtin function or some way to do this?

Share Improve this question edited Feb 2 at 21:12 mkrieger1 23.6k7 gold badges64 silver badges82 bronze badges asked Feb 2 at 20:54 JACKDANIELS777JACKDANIELS777 3271 silver badge15 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

The answer is quite simple. After some coding testing around using Masm and creating my own custom packages using pony's c-ffi and packing it in a pony way. The solution became quite clear. I took the ptr wrote the string to a file and then just read the file as a string. Now you will need to do some stuff to make this work because you can't pass a ptr to the write function. I'll add the code tomorrow and explain it in detail if this ever might become usefull

本文标签: ponylangHow to turn a pointer back to a string in PonyStack Overflow