#pragma once // // This file is distributed under the MIT License. See LICENSE.md for details. // #include "llvm/ADT/ArrayRef.h" #include "llvm/Support/raw_ostream.h" void gzipCompress(llvm::raw_ostream &OS, llvm::ArrayRef Buffer, int CompressionLevel = 3); inline void gzipCompress(llvm::raw_ostream &OS, llvm::ArrayRef Buffer) { return gzipCompress(OS, { reinterpret_cast(Buffer.data()), Buffer.size() }); } void gzipDecompress(llvm::raw_ostream &OS, llvm::ArrayRef Buffer); inline void gzipDecompress(llvm::raw_ostream &OS, llvm::ArrayRef Buffer) { return gzipDecompress(OS, { reinterpret_cast(Buffer.data()), Buffer.size() }); }