Converting UnsafePointers to string #14248
Replies: 1 comment 1 reply
-
Hello @walmartwarlord, From what I understand, you have to create a buffer to store the value. On top of that you add a pointer, and the view part allows you to retrieve the value. Edit: You can also use rust code to write your function + deno_bindgen to automatically generate the Typescript equivalent. It's a slightly different approach, but it helps to understand how it works under the hood. |
Beta Was this translation helpful? Give feedback.
-
Hello, playing round the unstable Deno FFI and so far loving it. One question tho
Suppose I have this
Is there a method we can use to convert the pointer to a string for example? Thanks!
Beta Was this translation helpful? Give feedback.
All reactions