Cuberite
A lightweight, fast and extensible game server for Minecraft
GZipFile.h
Go to the documentation of this file.
1 
2 // GZipFile.h
3 
4 // Declares the GZipFile namespace representing a wrapper over a file stream that can read and write to GZip'd files
5 
6 
7 
8 
9 
10 #pragma once
11 
12 #include "StringCompression.h"
13 
14 
15 
16 
17 
18 namespace GZipFile
19 {
21  Compression::Result ReadRestOfFile(const std::string & a_FileName);
22 
24  void Write(const std::string & a_FileName, ContiguousByteBufferView a_Contents);
25 } ;
std::basic_string_view< std::byte > ContiguousByteBufferView
Definition: Globals.h:376
void Write(const std::string &a_FileName, ContiguousByteBufferView a_Contents)
Writes a_Contents into file, compressing it along the way.
Definition: GZipFile.cpp:27
Compression::Result ReadRestOfFile(const std::string &a_FileName)
Reads the rest of the file and returns the decompressed contents.
Definition: GZipFile.cpp:14
Contains the result of a compression or extraction operation.