Improve ChunkSender

ByteBuffer ab for int to byte array.