---
title: baseAddress
framework: swift
role: symbol
role_heading: Instance Property
path: swift/unsafemutablerawbufferpointer/baseaddress
---

# baseAddress

A pointer to the first byte of the buffer.

## Declaration

```swift
var baseAddress: UnsafeMutableRawPointer? { get }
```

## Discussion

Discussion If the baseAddress of this buffer is nil, the count is zero. However, a buffer can have a count of zero even with a non-nil base address.
