Creates a writable stream for a fixed-size block of memory.
- iOS 2.0+
- macOS 10.1+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
- Core Foundation
The allocator to use to allocate memory for the new object. Pass
NULLor kCFAllocatorDefault to use the current default allocator.
The memory buffer into which to write data. This buffer must exist for the lifetime of the stream.
The size of
bufferand the maximum number of bytes that can be written.
A new write stream, or
NULL on failure. Ownership follows the The Create Rule.