Skip to content

Separated parsing

Latest
Compare
Choose a tag to compare
@danieltmbr danieltmbr released this 30 Apr 13:53
· 5 commits to master since this release
7c42420

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.
  • Custom parsing errors are provided

Fixes

  • Index counting at parsing was used incorrectly which could have caused failing parsing.