---
title: "init(length:elements:)"
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_oid_desc_struct/init(length:elements:)"
---

# init(length:elements:)

Initialize a new object identifier with the given array of octets.

## Declaration

```swift
init(length: OM_uint32, elements: UnsafeMutableRawPointer!)
```

## Parameters

- `length`: The number of octets in the elements array.
- `elements`: A pointer to the beginning of an array of octets of the specified length that represent the object identifier.

## See Also

### Initialization

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