Skip to content

Releases: danieltmbr/Bencode

Separated parsing

30 Apr 13:53
7c42420
Compare
Choose a tag to compare

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.

Bencode 1.4.0

29 Sep 10:18
Compare
Choose a tag to compare

Improvements

  • Performance enhancement
  • Access string byte array

Bencode 1.3.1

21 Sep 21:23
Compare
Choose a tag to compare

New feature

  • Properties of BencodeKey are now public

Bencode 1.3.0

20 Sep 11:35
Compare
Choose a tag to compare

New feature

  • Encode Bencoded data to Swift.Data using ascii encoding.
    Access it by bencode.asciiEncoding

Bencode 1.2.2

18 Sep 21:08
Compare
Choose a tag to compare

Bugfix

  • Encoding string had a bug. Had... ;)
    Removed closing "e"character from encoded string.

Bencode 1.2.1

18 Sep 17:00
Compare
Choose a tag to compare

Bugfix

  • Pretty-print debugDescription contained both of BencodeKey's properties.
    Fixed: Now it prints original key only.

Bencode 1.2.0

16 Sep 16:13
Compare
Choose a tag to compare

New feature

  • Preserve original order in dictionaries as well when encoding a decoded file.

Bencode 1.1.0

15 Sep 12:50
Compare
Choose a tag to compare

New features

  • Bencode & BencodeOptional is a Sequence now. (Operates on dictionaries or lists)
  • Added new accessors:
    • Access dictionary by .dict (optional)
    • Access list by .list(optional)
    • Access values of dictionary or list by values

Bencode 1.0.0

15 Sep 10:57
Compare
Choose a tag to compare

Feature list

  • Encode to string
  • Decode from string or url
  • Convenient access to (optionals):
    • Integer value by bencode.int
    • String value by bencode.string
    • List item by subscript bencode[0]
    • Dictionary value by subscript bencode[key]
  • Pretty-printed debugDescription