---
title: "NSDataFromGCExtendedGamepadSnapShotDataV100(_:)"
framework: gamecontroller
role: symbol
role_heading: Function
path: "gamecontroller/nsdatafromgcextendedgamepadsnapshotdatav100(_:)"
---

# NSDataFromGCExtendedGamepadSnapShotDataV100(_:)

Encapsulates the controller data from an extended gamepad structure into a data object.

## Declaration

```swift
func NSDataFromGCExtendedGamepadSnapShotDataV100(_ snapshotData: UnsafeMutablePointer<GCExtendedGamepadSnapShotDataV100>?) -> Data?
```

## Parameters

- `snapshotData`: A pointer to memory that contains a set of extended gamepad control values.

## Return Value

Return Value A new NSData object that contains the snapshot data, or nil if an error occurred.

## Discussion

Discussion If the version and size is not set in the snapshot the data will automatically have a version of 0x100 and a size equal to sizeof(GCExtendedGamepadSnapShotDataV100).

## See Also

### Flattening a Snapshot to Memory

- [GCExtendedGamepadSnapShotDataV100](gamecontroller/gcextendedgamepadsnapshotdatav100.md)
- [GCExtendedGamepadSnapShotDataV100FromNSData(_:_:)](gamecontroller/gcextendedgamepadsnapshotdatav100fromnsdata(_:_:).md)
