File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -212,7 +212,7 @@ open class OutputStream : Stream {
212
212
return Stream . Status ( rawValue: UInt ( CFWriteStreamGetStatus ( _stream) ) ) !
213
213
}
214
214
215
- open class func outputStreamToMemory ( ) -> Self {
215
+ open class func toMemory ( ) -> Self {
216
216
return self . init ( toMemory: ( ) )
217
217
}
218
218
Original file line number Diff line number Diff line change @@ -181,7 +181,7 @@ class TestNSStream : XCTestCase {
181
181
var buffer = Array < UInt8 > ( repeating: 0 , count: 12 )
182
182
var myString = " Hello world! "
183
183
let encodedData = [ UInt8] ( myString. utf8)
184
- let outputStream = OutputStream . outputStreamToMemory ( )
184
+ let outputStream = OutputStream . toMemory ( )
185
185
XCTAssertEqual ( Stream . Status. notOpen, outputStream. streamStatus)
186
186
outputStream. open ( )
187
187
XCTAssertEqual ( Stream . Status. open, outputStream. streamStatus)
You can’t perform that action at this time.
0 commit comments