<!--
{
  "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_set_desc_struct/init(count:elements:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "GSS"
    ],
    "preciseIdentifier" : "s:So26gss_buffer_set_desc_structV5count8elementsABSi_SpySo0a1_b1_d1_E0VGSgtcfc"
  },
  "title" : "init(count:elements:)"
}
-->

# init(count:elements:)

Initialize a new buffer set with the given buffers.

```
init(count: Int, elements: UnsafeMutablePointer<gss_buffer_desc>!)
```

## Parameters

`count`

The number of buffers in the `elements` array.

`elements`

An array of buffers to be included in the new set.

## 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)