dreese / FastSocket

High-throughput, synchronous Objective-C wrapper around BSD sockets for iOS and macOS.
MIT License
170 stars 39 forks source link

Annotations for Swift #26

Closed dreese closed 7 years ago

dreese commented 7 years ago

As described in #19, this PR adds nullable and nonnull annotations so that the auto-generated Swift interface is cleaner.

I'm a little uncertain if I got the syntax right for -[buffer:size:size] and -[receiveFile:length:md5:] but there are no compiler warnings and the unit tests pass.

dreese commented 7 years ago

Thanks for looking @bjhomer!

dreese commented 7 years ago

Fixes #19.