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

# getValue(_:size:)

Copies the value into the specified buffer.

## Declaration

```swift
func getValue(_ value: UnsafeMutableRawPointer, size: Int)
```

## Parameters

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