Use int byte counts for array-based read.
Merge pull request #65 from square/jw/integer

Use int byte counts for array-based read.
Buffer should EOF if it cannot fulfill readFully.

Prior to this change an ArrayIndexOutOfBounds exception would be thrown in side the write call to which readFully delegates.
Merge pull request #66 from square/jw/buffer-read-fully-eof

Buffer should EOF if it cannot fulfill readFully.