<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.10.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Swift",
  "identifier" : "/documentation/Swift/UnsafeMutableRawBufferPointer/init(start:count:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Swift"
    ],
    "preciseIdentifier" : "s:Sw5start5countSwSvSg_Sitcfc"
  },
  "title" : "init(start:count:)"
}
-->

# init(start:count:)

Creates a buffer over the specified number of contiguous bytes starting
at the given pointer.

```
init(start: UnsafeMutableRawPointer?, count: Int)
```

## Parameters

`start`

The address of the memory that starts the buffer. If `starts`
is `nil`, `count` must be zero. However, `count` may be zero even
for a non-`nil` `start`.

`count`

The number of bytes to include in the buffer. `count` must not
be negative.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)