summaryrefslogtreecommitdiffstats
path: root/Tools/MCADefrag/MCADefrag.h
diff options
context:
space:
mode:
authorAlexander Harkness <me@bearbin.net>2024-11-02 22:27:47 +0100
committerAlexander Harkness <me@bearbin.net>2024-11-02 22:27:47 +0100
commitcb50ec10591c0e0e4b9915e642bc50d3d8d1fd0a (patch)
treef647b20e1823f1846af88e832cf82a4a02e96e69 /Tools/MCADefrag/MCADefrag.h
parentImprove clang-format config file, remove automatically enforced code style from contrib guide. (diff)
downloadcuberite-cb50ec10591c0e0e4b9915e642bc50d3d8d1fd0a.tar
cuberite-cb50ec10591c0e0e4b9915e642bc50d3d8d1fd0a.tar.gz
cuberite-cb50ec10591c0e0e4b9915e642bc50d3d8d1fd0a.tar.bz2
cuberite-cb50ec10591c0e0e4b9915e642bc50d3d8d1fd0a.tar.lz
cuberite-cb50ec10591c0e0e4b9915e642bc50d3d8d1fd0a.tar.xz
cuberite-cb50ec10591c0e0e4b9915e642bc50d3d8d1fd0a.tar.zst
cuberite-cb50ec10591c0e0e4b9915e642bc50d3d8d1fd0a.zip
Diffstat (limited to 'Tools/MCADefrag/MCADefrag.h')
-rw-r--r--Tools/MCADefrag/MCADefrag.h26
1 files changed, 10 insertions, 16 deletions
diff --git a/Tools/MCADefrag/MCADefrag.h b/Tools/MCADefrag/MCADefrag.h
index cc151d032..88ed29207 100644
--- a/Tools/MCADefrag/MCADefrag.h
+++ b/Tools/MCADefrag/MCADefrag.h
@@ -20,16 +20,14 @@
-
class cMCADefrag
{
-public:
-
+ public:
enum
{
MAX_COMPRESSED_CHUNK_DATA_SIZE = (1 MiB),
- MAX_RAW_CHUNK_DATA_SIZE = (100 MiB),
- } ;
+ MAX_RAW_CHUNK_DATA_SIZE = (100 MiB),
+ };
cMCADefrag(void);
@@ -40,26 +38,22 @@ public:
/** Runs the entire app. */
void Run(void);
-protected:
-
+ protected:
/** A single thread processing MCA files from the queue */
- class cThread :
- public cIsThread
+ class cThread : public cIsThread
{
typedef cIsThread super;
- public:
-
+ public:
cThread(cMCADefrag & a_Parent);
- protected:
-
+ protected:
/** The compression methods, as specified by the MCA compression method byte. */
enum
{
COMPRESSION_GZIP = 1,
COMPRESSION_ZLIB = 2,
- } ;
+ };
cMCADefrag & m_Parent;
@@ -127,7 +121,7 @@ protected:
// cIsThread overrides:
virtual void Execute(void) override;
- } ;
+ };
typedef std::list<cThread *> cThreads;
@@ -154,4 +148,4 @@ protected:
/** Retrieves one file from the queue (and removes it from the queue).
Returns an empty string when queue empty. */
AString GetNextFileName(void);
-} ;
+};