Returns an initialized output stream that can write to a provided buffer.
- iOS 2.0+
- macOS 10.3+
- Mac Catalyst 13.0+Beta
- tvOS 9.0+
- watchOS 2.0+
The buffer the output stream will write to.
The size of the buffer in bytes.
An initialized output stream that can write to
The stream must be opened before it can be used.
When the number of bytes written to
buffer has reached
capacity, the stream’s
stream will return