HaxeFoundation/haxe — pull request #2753 by Herschel (2014-03-14 00:39:57+00:00)
Title: [std] Fix position setter in BytesInput

Setting `position` wasn't resetting the bytes remaining in `totlen`, causing further reads to incorrectly throw or be truncated.