Refactor
Signed-off-by: Simon Rozman <simon@rozman.si>
This commit is contained in:
parent
c212e68bb5
commit
09b59e698d
@ -10,7 +10,6 @@
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
|
||||
namespace stdex
|
||||
{
|
||||
///
|
||||
@ -23,9 +22,7 @@ namespace stdex
|
||||
/// Constructs blank encoding session
|
||||
///
|
||||
hex_enc() noexcept
|
||||
{
|
||||
}
|
||||
|
||||
{}
|
||||
|
||||
///
|
||||
/// Encodes one block of information, and _appends_ it to the output
|
||||
@ -54,7 +51,6 @@ namespace stdex
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
///
|
||||
/// Returns maximum encoded size
|
||||
///
|
||||
@ -68,7 +64,6 @@ namespace stdex
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
///
|
||||
/// Hexadecimal decoding session
|
||||
///
|
||||
@ -81,9 +76,7 @@ namespace stdex
|
||||
hex_dec() noexcept :
|
||||
buf(0),
|
||||
num(0)
|
||||
{
|
||||
}
|
||||
|
||||
{}
|
||||
|
||||
///
|
||||
/// Decodes one block of information, and _appends_ it to the output
|
||||
@ -131,7 +124,6 @@ namespace stdex
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
///
|
||||
/// Resets decoding session
|
||||
///
|
||||
@ -140,7 +132,6 @@ namespace stdex
|
||||
num = 0;
|
||||
}
|
||||
|
||||
|
||||
///
|
||||
/// Returns maximum decoded size
|
||||
///
|
||||
@ -153,7 +144,6 @@ namespace stdex
|
||||
return (size + 1)/2;
|
||||
}
|
||||
|
||||
|
||||
protected:
|
||||
uint8_t buf; ///< Internal buffer
|
||||
size_t num; ///< Number of nibbles used in `buf`
|
||||
|
@ -59,8 +59,7 @@ namespace stdex
|
||||
m_head(0),
|
||||
m_count(0),
|
||||
m_size_max(size_max)
|
||||
{
|
||||
}
|
||||
{}
|
||||
|
||||
///
|
||||
/// Copies existing queue.
|
||||
|
Loading…
x
Reference in New Issue
Block a user