Improvements
- Parsing mechanism is separated into
Bencoder
class- You can decode with
Bencoder
like:try Bencoder().decode(from: FILEURL)
. - You can still use convinient initialisers of
Bencode
enum like before.
- You can decode with
- Custom parsing errors are provided
Fixes
- Index counting at parsing was used incorrectly which could have caused failing parsing.