---
title: "NSRoundUpToMultipleOfPageSize(_:)"
framework: foundation
role: symbol
role_heading: Function
path: "foundation/nsrounduptomultipleofpagesize(_:)"
---

# NSRoundUpToMultipleOfPageSize(_:)

Returns the specified number of bytes rounded up to a multiple of the page size.

## Declaration

```swift
func NSRoundUpToMultipleOfPageSize(_ bytes: Int) -> Int
```

## Return Value

Return Value In bytes, the multiple of the page size that is closest to, but not less than, byteCount (that is, the number of bytes rounded up to a multiple of the page size).

## See Also

### Memory Management

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