-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Initial Implementation of Stream and NSOutputStream #443
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This and #442 have common changes in TestFoundation/main.swift Foundation/NSStream.swift |
Adding TestNStream.swift to project.pbxproj has been taken care in the PR #442. |
@@ -66,11 +69,11 @@ public class Stream: NSObject { | |||
} | |||
|
|||
public func open() { | |||
NSUnimplemented() | |||
streamOpen() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please refer to the comment on #442 per requiring subclassers to implement these
fd2afbe
to
b423728
Compare
@phausler : Thanks for your review .I have addressed your comments ..Please review |
@swift-ci Please test |
b423728
to
3948314
Compare
I have resolved the conflicts .. |
} | ||
|
||
public convenience init?(toFileAtPath path: String, append shouldAppend: Bool) { | ||
NSUnimplemented() | ||
self.init(url: URL(fileURLWithPath: path), append: true) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why I this always appending?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Modified the code to pass 'shouldAppend' to self.init(url ..) which handles setting the stream property
@phausler :Thanks for the review and comments.I have responded to all of them.I have also contributed tests that covers most of the contributed code.I have taken this up as a prerequisite for implementing |
3948314
to
5603657
Compare
@swift-ci please test |
No description provided.