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?
1 Answer
Reset to default 0The 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
版权声明:本文标题:ponylang - How to turn a pointer back to a string in Pony - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745256608a2650140.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论