Function

IOSurfaceSetValue(_:_:_:)

Sets a value in the dictionary associated with the buffer.

Declaration

func IOSurfaceSetValue(_ buffer: IOSurfaceRef, _ key: CFString, _ value: CFTypeRef)

Discussion

This call lets you attach CF property list types to an IOSurface buffer. This call is expensive (it must essentially serialize the data into the kernel) and thus should be avoided whenever possible.