bencode.hpp

A C++ parser for bencoded data

BSD-3-CLAUSE License

Stars
26

Bot releases are hidden (Show)

bencode.hpp - v1.0.1 Latest Release

Published by jimporter over 1 year ago

bencode.hpp v1.0.1 has been released!

Bug fixes

  • Fix deprecation warning when configuring
bencode.hpp - v1.0.0

Published by jimporter over 1 year ago

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
bencode.hpp - v0.2.1

Published by jimporter almost 4 years ago

bencode.hpp v0.2.1 has been released!

Changes

  • Require bfg9000 v0.6 for builds/tests
bencode.hpp - v0.2

Published by jimporter almost 5 years ago

bencode.hpp v0.2 has been released! In addition to source distributions here, it's available in an Ubuntu PPA: ppa:jimporter/stable.

Changes

  • Use std::string_view if available
  • Install a pkg-config .pc file that sets the compiler's include path as needed
bencode.hpp - v0.1

Published by jimporter over 8 years ago

The initial release of bencode.hpp!