fn catch_panic<F: FnOnce() -> BrotliDecoderResult + UnwindSafe>( f: F, ) -> Result<BrotliDecoderResult>