Initializes an in-line buffer to use for efficient access of a CFString object's characters.
- iOS 2.0+
- macOS 10.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
- Core Foundation
The string to copy to the in-line buffer.
The range of characters in
strto copy to
buf. The specified range must not exceed the length of the string.
This function initializes an
CFString structure that can be used for accessing the characters of a string. Once the buffer is initialized you can call the
CFString function to access the characters in the buffer one at a time. The in-line buffer functions, along with the
CFString structure, give you fast access to the characters of a string. The technique for in-line buffer access combines the convenience of one-at-a-time character access with the efficiency of bulk access.