2013-07-29 07:13:03 -04:00
|
|
|
|
|
|
|
// GZipFile.h
|
|
|
|
|
2021-01-11 11:39:43 -05:00
|
|
|
// Declares the GZipFile namespace representing a wrapper over a file stream that can read and write to GZip'd files
|
2013-07-29 07:13:03 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2021-01-11 11:39:43 -05:00
|
|
|
#include "StringCompression.h"
|
2013-07-29 07:13:03 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-01-11 11:39:43 -05:00
|
|
|
namespace GZipFile
|
2013-07-29 07:13:03 -04:00
|
|
|
{
|
2021-01-11 11:39:43 -05:00
|
|
|
/** Reads the rest of the file and returns the decompressed contents. */
|
|
|
|
Compression::Result ReadRestOfFile(const std::string & a_FileName);
|
2016-02-05 16:45:45 -05:00
|
|
|
|
2021-01-11 11:39:43 -05:00
|
|
|
/** Writes a_Contents into file, compressing it along the way. */
|
|
|
|
void Write(const std::string & a_FileName, ContiguousByteBufferView a_Contents);
|
2013-07-29 07:13:03 -04:00
|
|
|
} ;
|