chunked decode, inflate functions - WIP