Skip to content

Bencode reader that loves working with streams. Written in C with a BSD license

License

Notifications You must be signed in to change notification settings

willemt/streaming-bencode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CStreamingBencodeReader

https://travis-ci.org/willemt/CStreamingBencodeReader.png https://coveralls.io/repos/willemt/CStreamingBencodeReader/badge.png?branch=master

What?

A bencode reader that loves working with streams.

Written in C with a BSD license.

How does it work?

See bencode.h for documentation.

To see the module in action check out:

  • Unit tests within test_bencode.c

Building

$make

Tradeoffs

Because of its stream friendly nature, CStreamingBencodeReader needs to make occasional calls to malloc(). Seeing as it tries its best to keep these calls to a minimum, this might be OK for your needs.

Otherwise please check out https://github.com/willemt/CHeaplessBencodeReader which doesn't use the heap at all! (ie. its got it's own tradeoffs)

About

Bencode reader that loves working with streams. Written in C with a BSD license

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published