Contents

toMemory()

Creates and returns an initialized output stream that will write stream data to memory.

Declaration

class func toMemory() -> Self

Return Value

An initialized output stream that will write stream data to memory.

Discussion

The stream must be opened before it can be used.

You retrieve the contents of the memory stream by sending the message property(forKey:) to the receiver with an argument of NSStreamDataWrittenToMemoryStreamKey.

See Also

Related Documentation

  • Stream Programming Guide

Creating Streams