decompress from buffer