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

Use int byte counts for array-based read.