---
title: "init(length:value:)"
framework: GSS
role: symbol
role_heading: Initializer
platforms: [iOS 5.0+, iPadOS 5.0+, Mac Catalyst 13.0+, macOS 10.14+, visionOS 1.0+]
path: "gss/gss_buffer_desc_struct/init(length:value:)"
---

# init(length:value:)

Initialize a new buffer with the given array of elements.

## Declaration

```swift
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.

## See Also

### Initialization

- [init()](gss/gss_buffer_desc_struct/init().md)
