chrisdickinson/varint — pull request #8 by dominictarr (2014-05-26 11:44:54+00:00)
Title: decode should throw if the buffer ends before varint does

This patch makes decode throw if the buffer ends while still in the "continue" state.

I'm working on streaming binary decoder,
so I need to know if there wasn't enough room for a valid value.