From: Maxim Mamontov Date: Wed, 17 Sep 2014 06:34:18 +0000 (+0300) Subject: Minor change in BFStream. X-Git-Tag: 2.409~277 X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/a34c929363e920ccf0cfd83992866851e184b495?ds=sidebyside Minor change in BFStream. --- diff --git a/stglibs/crypto.lib/bfstream.cpp b/stglibs/crypto.lib/bfstream.cpp index 21a0d55d..9c3f678e 100644 --- a/stglibs/crypto.lib/bfstream.cpp +++ b/stglibs/crypto.lib/bfstream.cpp @@ -49,7 +49,7 @@ class COMMON m_tryConsume(last); } - bool isOk() const { return m_ok; } + bool IsOk() const { return m_ok; } private: char m_buffer[BUFFER_SIZE]; @@ -116,9 +116,9 @@ void ENCRYPT_STREAM::Put(const void * data, size_t size, bool last) m_impl->Put(data, size, last); } -bool ENCRYPT_STREAM::isOk() const +bool ENCRYPT_STREAM::IsOk() const { -return m_impl->isOk(); +return m_impl->IsOk(); } DECRYPT_STREAM::DECRYPT_STREAM(const std::string & key, CALLBACK callback, void * data) @@ -135,7 +135,7 @@ void DECRYPT_STREAM::Put(const void * data, size_t size, bool last) m_impl->Put(data, size, last); } -bool DECRYPT_STREAM::isOk() const +bool DECRYPT_STREAM::IsOk() const { -return m_impl->isOk(); +return m_impl->IsOk(); } diff --git a/stglibs/crypto.lib/include/stg/bfstream.h b/stglibs/crypto.lib/include/stg/bfstream.h index bead8d00..ae955b94 100644 --- a/stglibs/crypto.lib/include/stg/bfstream.h +++ b/stglibs/crypto.lib/include/stg/bfstream.h @@ -16,7 +16,7 @@ class ENCRYPT_STREAM ~ENCRYPT_STREAM(); void Put(const void * data, size_t size, bool last = false); - bool isOk() const; + bool IsOk() const; private: class IMPL; @@ -33,7 +33,7 @@ class DECRYPT_STREAM ~DECRYPT_STREAM(); void Put(const void * data, size_t size, bool last = false); - bool isOk() const; + bool IsOk() const; private: class IMPL;