Some minor styling updates
This commit is contained in:
parent
814c4a7c59
commit
a746fc77fa
@ -38,13 +38,13 @@ AuthCrypt::AuthCrypt()
|
|||||||
void AuthCrypt::DecryptRecv(uint8* data, size_t len)
|
void AuthCrypt::DecryptRecv(uint8* data, size_t len)
|
||||||
{
|
{
|
||||||
if (!_initialized)
|
if (!_initialized)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (len < CRYPTED_RECV_LEN)
|
if (len < CRYPTED_RECV_LEN)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (size_t t = 0; t < CRYPTED_RECV_LEN; t++)
|
for (size_t t = 0; t < CRYPTED_RECV_LEN; t++)
|
||||||
{
|
{
|
||||||
@ -59,9 +59,9 @@ void AuthCrypt::DecryptRecv(uint8* data, size_t len)
|
|||||||
void AuthCrypt::EncryptSend(uint8* data, size_t len)
|
void AuthCrypt::EncryptSend(uint8* data, size_t len)
|
||||||
{
|
{
|
||||||
if (!_initialized)
|
if (!_initialized)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (len < CRYPTED_SEND_LEN)
|
if (len < CRYPTED_SEND_LEN)
|
||||||
{
|
{
|
||||||
|
@ -35,9 +35,19 @@
|
|||||||
#include "TypeContainer.h"
|
#include "TypeContainer.h"
|
||||||
|
|
||||||
template<class VISITOR, class CONTAINER>
|
template<class VISITOR, class CONTAINER>
|
||||||
|
/**
|
||||||
|
* @brief
|
||||||
|
*
|
||||||
|
*/
|
||||||
class TypeContainerVisitor
|
class TypeContainerVisitor
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief
|
||||||
|
*
|
||||||
|
* @param v
|
||||||
|
*/
|
||||||
TypeContainerVisitor(VISITOR& v) : i_visitor(v){}
|
TypeContainerVisitor(VISITOR& v) : i_visitor(v){}
|
||||||
void Visit(CONTAINER& c)
|
void Visit(CONTAINER& c)
|
||||||
{
|
{
|
||||||
@ -47,8 +57,10 @@ class TypeContainerVisitor
|
|||||||
{
|
{
|
||||||
c.template accept<VISITOR>(std::forward<VISITOR>(i_visitor));
|
c.template accept<VISITOR>(std::forward<VISITOR>(i_visitor));
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
VISITOR& i_visitor;
|
|
||||||
|
VISITOR& i_visitor; /**< TODO */
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user