Function

CFStreamCreateBoundPair(_:_:_:_:)

Creates a pair of read and write streams.

Declaration

func CFStreamCreateBoundPair(_ alloc: CFAllocator!, _ readStream: UnsafeMutablePointer<Unmanaged<CFReadStream>?>!, _ writeStream: UnsafeMutablePointer<Unmanaged<CFWriteStream>?>!, _ transferBufferSize: CFIndex)

Parameters

alloc

The allocator to use to allocate memory for the new objects. Pass NULL or kCFAllocatorDefault to use the current default allocator.

readStream

Upon return, a readable stream. Ownership follows the The Create Rule.

writeStream

Upon return, a writable. Ownership follows the The Create Rule.

transferBufferSize

The size of the buffer to use to transfer data from readStream to writeStream.