convert(_:withFlavor:thread:direction:)
Converts a thread state either to or from the current thread.
static func convert<DataType>(_ state: DataType, withFlavor flavor: Mach.ThreadStateFlavor, thread: Mach.Thread, direction: Mach.ThreadStateConvertDirection) throws -> DataType where DataType : BitwiseCopyable