<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreFoundation",
  "identifier" : "/documentation/CoreFoundation/CFStringInlineBuffer",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Core Foundation"
    ],
    "preciseIdentifier" : "c:@SA@CFStringInlineBuffer"
  },
  "title" : "CFStringInlineBuffer"
}
-->

# CFStringInlineBuffer

Defines the buffer and related fields used for in-line buffer access of characters in CFString objects.

```
struct CFStringInlineBuffer
```

## Overview

This structure is used for in-line buffer access of characters contained by a CFString object. Use the [`CFStringInitInlineBuffer(_:_:_:)`](/documentation/CoreFoundation/CFStringInitInlineBuffer(_:_:_:)) function for initializing the fields of this structure; do not do it manually. Once the buffer is initialized, use the [`CFStringGetCharacterFromInlineBuffer(_:_:)`](/documentation/CoreFoundation/CFStringGetCharacterFromInlineBuffer(_:_:)) function to access characters from the buffer. Do not access the fields directly as they might change between releases.

The only reason this structure is not opaque is to allow the in-line functions to access its fields.

---

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)