aboutsummaryrefslogtreecommitdiff
path: root/src/file_reader.hpp
diff options
context:
space:
mode:
authorWohlstand <admin@wohlnet.ru>2020-02-22 13:04:39 +0300
committerWohlstand <admin@wohlnet.ru>2020-02-22 13:04:39 +0300
commit6ae9ca1265f8249af680f366b5a56934c7b2d7bb (patch)
treedb29afc329050729852bfcc86b8b3419ad74ea15 /src/file_reader.hpp
parentb92112685b1d1ba0ae376069bc42d61300a97fa1 (diff)
parent58c5becbdfd451b4181661a5ff2d3e556e4e8501 (diff)
downloadlibADLMIDI-6ae9ca1265f8249af680f366b5a56934c7b2d7bb.tar.gz
libADLMIDI-6ae9ca1265f8249af680f366b5a56934c7b2d7bb.tar.bz2
libADLMIDI-6ae9ca1265f8249af680f366b5a56934c7b2d7bb.zip
Merge branch 'master' into wip-new-embedded-banks
Diffstat (limited to 'src/file_reader.hpp')
-rw-r--r--src/file_reader.hpp8
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;
}