Skip to content

v1.0.0

Compare
Choose a tag to compare
@jimporter jimporter released this 21 May 19:37
· 43 commits to master since this release

bencode.hpp v1.0.0 has been released!

New features

  • Use std::variant by default (thus requiring C++17 or newer)
  • Allow customizing the variant type used via bencode::basic_data
  • Improve performance of decode; decoding is now ~2x as fast for most data (~1.5x when using views)!
  • When unable to decode data, throw bencode::decode_error with the offset where the error occurred

Bug fixes

  • Parse bencoded data iteratively to prevent stack buffer overflows
  • Throw exceptions for integer over/underflow