Fix the size of ByteBuffer
Fix Atmosphere/atmosphere#1720
Merge pull request #1721 from cwayfinder/master

Fix the size of ByteBuffer