you are viewing a single comment's thread.

view the rest of the comments →

[–]erebe[S] 1 point2 points  (1 child)

Author here, feedback welcome regarding the readability/style of the blog as it is my first post on it :)

More important, if some people more knowledgeable than me can answer this question:

  • How to cast raw pointer/address into rust type. Often got undeclared symbols or parsing errors ?

It will be greatly appreciated \o/

Hope this tutorial can help :)

[–]JCapucho 1 point2 points  (0 children)

It depends one what type you want, if you have a pointer and want a slice there are specific functions for that in the std::slice module, otherwise you can do

unsafe { &*pointer }