From bd98bcb93196c8fab6a2d6a797d85fc37c16b7ea Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Wed, 26 Jan 2022 21:12:36 +0100 Subject: Refactoring --- src/LargeFileStream.hpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/LargeFileStream.hpp') diff --git a/src/LargeFileStream.hpp b/src/LargeFileStream.hpp index 4900f35..fd072a1 100644 --- a/src/LargeFileStream.hpp +++ b/src/LargeFileStream.hpp @@ -5,8 +5,6 @@ #include #include -#define BUFFER_SIZE (1024 * 1024 / 2) - namespace pgnp { using namespace std; @@ -14,7 +12,7 @@ class LargeFileStream { /// @brief File to load ifstream file; /// @brief In memory buffer - char buffer[BUFFER_SIZE]; + char buffer[FILE_BUFFER_SIZE]; /// @brief Number of chuck read minus 1 loctype chuck_count; /// @brief Number of byte read during the last file access -- cgit v1.2.3