elasticsearch/elasticsearch — pull request #7197 by rmuir (2014-08-08 07:12:52+00:00)
Title: Fix BytesStreamInput(BytesReference) ctor with nonzero offset

I renamed 'count' to 'end', since thats what it actually means for this class.

ctor #1 was broken, only worked if offset is zero.
ctor #2 had unnecessary leniency.