diff options
| author | Loic Guegan <manzerbredes@mailbox.org> | 2022-01-26 21:03:19 +0100 |
|---|---|---|
| committer | Loic Guegan <manzerbredes@mailbox.org> | 2022-01-26 21:03:19 +0100 |
| commit | 3f9ab56bd6ed874702900cc327894fc2593ab97b (patch) | |
| tree | 98be2221266d7ad88b69860ad857c502a90840d7 /src/LargeFileStream.hpp | |
| parent | f144f14d9c13f58afdcc86210824b25d9bf13a12 (diff) | |
Improve location pointer type flexibility
Diffstat (limited to 'src/LargeFileStream.hpp')
| -rw-r--r-- | src/LargeFileStream.hpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/LargeFileStream.hpp b/src/LargeFileStream.hpp index 64a7600..4900f35 100644 --- a/src/LargeFileStream.hpp +++ b/src/LargeFileStream.hpp @@ -16,11 +16,11 @@ class LargeFileStream { /// @brief In memory buffer char buffer[BUFFER_SIZE]; /// @brief Number of chuck read minus 1 - ull chuck_count; + loctype chuck_count; /// @brief Number of byte read during the last file access - ull last_read_size; + loctype last_read_size; /// @brief Keep track of the file offset (to prevent backward read) - ull last_loc; + loctype last_loc; /// @brief Use a string as file content std::string content; /// @brief Use to shortcut some methods @@ -37,7 +37,7 @@ public: /// @brief Emulate file access with a string void FromString(std::string content); /// @brief Allow array like access to the file - char operator[](ull loc); + char operator[](loctype loc); /// @brief Check if we reach the EOF bool IsEOF(); |
