---
title: "GCExtendedGamepadSnapShotDataV100FromNSData(_:_:)"
framework: gamecontroller
role: symbol
role_heading: Function
path: "gamecontroller/gcextendedgamepadsnapshotdatav100fromnsdata(_:_:)"
---

# GCExtendedGamepadSnapShotDataV100FromNSData(_:_:)

Copies the recorded data from an extended gamepad snapshot into a readable structure.

## Declaration

```swift
func GCExtendedGamepadSnapShotDataV100FromNSData(_ snapshotData: UnsafeMutablePointer<GCExtendedGamepadSnapShotDataV100>?, _ data: Data?) -> Bool
```

## Parameters

- `snapshotData`: A pointer to memory to fill with the shapshot data.
- `data`: An doc://com.apple.documentation/documentation/Foundation/NSData object that contains recorded data. Often, this is obtained by calling the doc://com.apple.gamecontroller/documentation/GameController/GCExtendedGamepadSnapshot/snapshotData method of a doc://com.apple.gamecontroller/documentation/GameController/GCExtendedGamepadSnapshot object.

## Return Value

Return Value true if the data could be copied, false if snapshotData is nil, data is nil, or if the contents of data do not contain a compatible snapshot.

## See Also

### Flattening a Snapshot to Memory

- [GCExtendedGamepadSnapShotDataV100](gamecontroller/gcextendedgamepadsnapshotdatav100.md)
- [NSDataFromGCExtendedGamepadSnapShotDataV100(_:)](gamecontroller/nsdatafromgcextendedgamepadsnapshotdatav100(_:).md)
