NSDataFromGCMicroGamepadSnapshotData

Function NSDataFromGCMicroGamepadSnapshotData 

Source
pub unsafe extern "C-unwind" fn NSDataFromGCMicroGamepadSnapshotData(
    snapshot_data: *mut GCMicroGamepadSnapshotData,
) -> Option<Retained<NSData>>
๐Ÿ‘ŽDeprecated: Use the -[GCController controllerWithMicroGamepad] method instead
Available on crate feature GCMicroGamepadSnapshot only.
Expand description

Creates an NSData object from a snapshot. If the version and size is not set in the snapshot the data will automatically have version GCCurrentMicroGamepadSnapshotDataVersion and sizeof(GCMicroGamepadSnapshotData) set as the values implicitly.

Returns: nil if the snapshot is NULL, otherwise an NSData instance compatible with GCGamepadSnapshot.snapshotData

ยงSafety

snapshot_data must be a valid pointer or null.