<!--
{
  "availability" : [
    "iOS: 5.0.0 -",
    "iPadOS: 5.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.14.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "GSS",
  "identifier" : "/documentation/GSS/gss_buffer_desc_struct/init(length:value:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "GSS"
    ],
    "preciseIdentifier" : "s:So22gss_buffer_desc_structV6length5valueABSi_SvSgtcfc"
  },
  "title" : "init(length:value:)"
}
-->

# init(length:value:)

Initialize a new buffer with the given array of elements.

```
init(length: Int, value: UnsafeMutableRawPointer!)
```

## Parameters

`length`

The number of elements in the new buffer.

`value`

A pointer to the array of elements to be included in the new buffer.

## Discussion

---

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)