<!--
{
  "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",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "GSS"
    ],
    "preciseIdentifier" : "c:@S@gss_buffer_desc_struct"
  },
  "title" : "gss_buffer_desc_struct"
}
-->

# gss_buffer_desc_struct

The structure for a buffer descriptor that you use to exchange octet streams with many GSS-API functions.

```
struct gss_buffer_desc_struct
```

## Topics

### Instance Properties

[`length`](/documentation/GSS/gss_buffer_desc_struct/length)

The number of bytes held in the buffer.

[`value`](/documentation/GSS/gss_buffer_desc_struct/value)

A pointer to the bytes in the buffer.

### Initialization

[`init()`](/documentation/GSS/gss_buffer_desc_struct/init())

Initialize a new, empty buffer.

[`init(length:value:)`](/documentation/GSS/gss_buffer_desc_struct/init(length:value:))

Initialize a new buffer with the given array of elements.



---

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)