---
title: "getValue(_:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/nsvalue/getvalue(_:)"
---

# getValue(_:)

Copies the value into the specified buffer.

## Declaration

```swift
func getValue(_ value: UnsafeMutableRawPointer)
```

## Parameters

- `value`: A buffer into which to copy the value. The buffer must be large enough to hold the value.

## See Also

### Working with Raw Values

- [init(bytes:objCType:)](foundation/nsvalue/init(bytes:objctype:).md)
- [init(_:withObjCType:)](foundation/nsvalue/init(_:withobjctype:).md)
- [objCType](foundation/nsvalue/objctype.md)
