---
title: "NSCopyMemoryPages(_:_:_:)"
framework: foundation
role: symbol
role_heading: Function
path: "foundation/nscopymemorypages(_:_:_:)"
---

# NSCopyMemoryPages(_:_:_:)

Copies a block of memory.

## Declaration

```swift
func NSCopyMemoryPages(_ source: UnsafeRawPointer, _ dest: UnsafeMutableRawPointer, _ bytes: Int)
```

## Discussion

Discussion Copies (or copies on write) byteCount bytes from source to destination.

## See Also

### Memory Management

- [NSAllocateMemoryPages(_:)](foundation/nsallocatememorypages(_:).md)
- [NSDeallocateMemoryPages(_:_:)](foundation/nsdeallocatememorypages(_:_:).md)
- [NSLogPageSize()](foundation/nslogpagesize().md)
- [NSPageSize()](foundation/nspagesize().md)
- [NSRealMemoryAvailable()](foundation/nsrealmemoryavailable().md)
- [NSRoundDownToMultipleOfPageSize(_:)](foundation/nsrounddowntomultipleofpagesize(_:).md)
- [NSRoundUpToMultipleOfPageSize(_:)](foundation/nsrounduptomultipleofpagesize(_:).md)
