• Home
  • Raw
  • Download

Lines Matching full:zlib

21 #include <zlib.h>
27 static int encodeZlibCompressionLevel(zlib::CompressionLevel Level) { in encodeZlibCompressionLevel()
29 case zlib::NoCompression: return 0; in encodeZlibCompressionLevel()
30 case zlib::BestSpeedCompression: return 1; in encodeZlibCompressionLevel()
31 case zlib::DefaultCompression: return Z_DEFAULT_COMPRESSION; in encodeZlibCompressionLevel()
32 case zlib::BestSizeCompression: return 9; in encodeZlibCompressionLevel()
34 llvm_unreachable("Invalid zlib::CompressionLevel!"); in encodeZlibCompressionLevel()
37 static zlib::Status encodeZlibReturnValue(int ReturnValue) { in encodeZlibReturnValue()
39 case Z_OK: return zlib::StatusOK; in encodeZlibReturnValue()
40 case Z_MEM_ERROR: return zlib::StatusOutOfMemory; in encodeZlibReturnValue()
41 case Z_BUF_ERROR: return zlib::StatusBufferTooShort; in encodeZlibReturnValue()
42 case Z_STREAM_ERROR: return zlib::StatusInvalidArg; in encodeZlibReturnValue()
43 case Z_DATA_ERROR: return zlib::StatusInvalidData; in encodeZlibReturnValue()
44 default: llvm_unreachable("unknown zlib return status!"); in encodeZlibReturnValue()
48 bool zlib::isAvailable() { return true; } in isAvailable()
49 zlib::Status zlib::compress(StringRef InputBuffer, in compress()
58 // Tell MemorySanitizer that zlib output buffer is fully initialized. in compress()
59 // This avoids a false report when running LLVM with uninstrumented ZLib. in compress()
65 zlib::Status zlib::uncompress(StringRef InputBuffer, in uncompress()
72 // Tell MemorySanitizer that zlib output buffer is fully initialized. in uncompress()
73 // This avoids a false report when running LLVM with uninstrumented ZLib. in uncompress()
79 uint32_t zlib::crc32(StringRef Buffer) { in crc32()
84 bool zlib::isAvailable() { return false; } in isAvailable()
85 zlib::Status zlib::compress(StringRef InputBuffer, in compress()
88 return zlib::StatusUnsupported; in compress()
90 zlib::Status zlib::uncompress(StringRef InputBuffer, in uncompress()
93 return zlib::StatusUnsupported; in uncompress()
95 uint32_t zlib::crc32(StringRef Buffer) { in crc32()
96 llvm_unreachable("zlib::crc32 is unavailable"); in crc32()