diff options
Diffstat (limited to 'src/file_reader.hpp')
-rw-r--r-- | src/file_reader.hpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/file_reader.hpp b/src/file_reader.hpp index c044e90..291850c 100644 --- a/src/file_reader.hpp +++ b/src/file_reader.hpp @@ -1,7 +1,7 @@ /* * FileAndMemoryReader - a tiny helper to utify file reading from a disk and memory block * - * Copyright (c) 2015-2019 Vitaly Novichkov <admin@wohlnet.ru> + * Copyright (c) 2015-2020 Vitaly Novichkov <admin@wohlnet.ru> * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the "Software"), @@ -110,15 +110,15 @@ public: /** * @brief Open file from memory block * @param mem Pointer to the memory block - * @param lenght Size of given block + * @param length Size of given block */ - void openData(const void *mem, size_t lenght) + void openData(const void *mem, size_t length) { if(m_fp) this->close();//Close previously opened file first! m_fp = NULL; m_mp = mem; - m_mp_size = lenght; + m_mp_size = length; m_mp_tell = 0; } |