1
0
cuberite-2a/src/OSSupport/GZipFile.h
Tiger Wang eeb63b8901
zlib -> libdeflate (#5085)
+ Use libdeflate
+ Use std::byte
* Fix passing temporary to string_view
+ Emulate make_unique_for_overwrite
2021-01-11 16:39:43 +00:00

26 lines
506 B
C++

// GZipFile.h
// Declares the GZipFile namespace representing a wrapper over a file stream that can read and write to GZip'd files
#pragma once
#include "StringCompression.h"
namespace GZipFile
{
/** Reads the rest of the file and returns the decompressed contents. */
Compression::Result ReadRestOfFile(const std::string & a_FileName);
/** Writes a_Contents into file, compressing it along the way. */
void Write(const std::string & a_FileName, ContiguousByteBufferView a_Contents);
} ;