Fixed issue where chunks of data were not being handled before sending to callback.  Reused the code from inflater.