Creates a readable stream for a 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 to read. This memory must exist for the lifetime of the new stream.
The size of
The allocator to use to deallocate
byteswhen the stream is deallocated. Pass kCFAllocatorNull to prevent the stream from deallocating
The new read stream, or
NULL on failure. Ownership follows the The Create Rule.
You must open the stream, using
CFRead, before reading from it.