init(toMemory:)
Returns an initialized output stream that will write to memory.
Declaration
init(toMemory: ())Return Value
An initialized output stream that will write stream data to memory.
Discussion
The stream must be opened before it can be used.
The contents of the memory stream are retrieved by passing the constant NSStreamDataWrittenToMemoryStreamKey to property(forKey:).