The question is really simple, but somehow I don't know how to do it:
How do you convert a UnsafeMutablePointer to UInt8?
I tried converting it like this:
UInt8(theUnsafeMutablePointerVar)
but it gave me the following error: Cannot find an initializer for type 'UInt8' that accepts an argument list of type 'UnsafeMutablePointer'
Use the pointee
property in the latest Swift.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With