Maintain the delegate contract.
NSStream requires that the delegate should
default to `self` if no other delegate has
-setDelegate:nil should default to `self`.
Per the NSStream docs.
Fix setting delegate to nil.
Merge remote-tracking branch 'origin/master'
Reset the delegate properly as specified by the docs.
Fix crasher due to calling memcpy wrong. Oops!
Added working example.
Initial implementation of HSCountingInputStream