What will be the equivalent in Obj-C fast code?
I guess something using CMutableVoidPointer
static void *CapturingStillImageContext = &CapturingStillImageContext;
Maybe something like this:
var CapturingStillImageContext: COpaquePointer = nil withUnsafePointer(&CapturingStillImageContext) { CapturingStillImageContext = COpaquePointer($0) }
CMutableVoidPointeris no longer available with Beta 3. Theres UnsafePointerand ConstUnsafePointer- you can declare it as follows:
CMutableVoidPointer
UnsafePointer
ConstUnsafePointer
let CapturingStillImageContext = UnsafePointer<()>()
, :
var SelfReferencingKey = initialize_SelfReferencingKey() func initialize_SelfReferencingKey() -> UnsafePointer<()> { return withUnsafePointer(&SelfReferencingKey, { UnsafePointer($0) } ) }
Source: https://habr.com/ru/post/1547563/More articles:Решайерские живые шаблоны в sql файлах - sqlJetty 9: No Spring WebApplicationInitializer Types Found on Class Path - springAngularJS - simple endless scroll - angularjsRun Android app in qemu-arm? - androidng-bind-html not working properly - javascriptAndroid Studio - How to remove the SDK API from external libraries? - androidGoogle Analytics. Improved ecommerce. Product Impression Restriction - google-analyticsm3u8 + 404 + ios Safari = annoying pop-up: "The requested URL was not found on this server" - javascriptReconcile / database relationship data in Django - pythonSlick - MySQL syntax error - mysqlAll Articles