Top "Unsafe-pointers" questions

Some "safe" languages like Swift and Go offer "unsafe" pointers for use with APIs written in languages like C and Objective-C. Questions using this tag should also have the relevant language tag, e.g. [swift] or [go].

Cast a Swift struct to UnsafeMutablePointer<Void>

Is there a way to cast a Swift struct's address to a void UnsafeMutablePointer? I tried this without success: struct …

swift casting void-pointers unsafe-pointers
Swift convert Data to UnsafeMutablePointer<Int8>

I'm calling a function in an objective c class from swift. -(char *)decrypt:(char *)crypt el:(int)el{} when …

ios objective-c swift unsafe-pointers