@@ -29,8 +29,7 @@ public class TVarInt
pos += 7;
if (pos > 28)
{
- // TODO: throw exception
- break;
+ throw new ArgumentOutOfRangeException("Continuation bit is set on 5th byte");
}