Signed-off-by: Simon Rozman <simon@rozman.si>
This commit is contained in:
Simon Rozman 2023-12-21 09:20:06 +01:00
parent c212e68bb5
commit 09b59e698d
2 changed files with 3 additions and 14 deletions

View File

@ -10,7 +10,6 @@
#include <string> #include <string>
#include <vector> #include <vector>
namespace stdex namespace stdex
{ {
/// ///
@ -23,9 +22,7 @@ namespace stdex
/// Constructs blank encoding session /// Constructs blank encoding session
/// ///
hex_enc() noexcept hex_enc() noexcept
{ {}
}
/// ///
/// Encodes one block of information, and _appends_ it to the output /// Encodes one block of information, and _appends_ it to the output
@ -54,7 +51,6 @@ namespace stdex
} }
} }
/// ///
/// Returns maximum encoded size /// Returns maximum encoded size
/// ///
@ -68,7 +64,6 @@ namespace stdex
} }
}; };
/// ///
/// Hexadecimal decoding session /// Hexadecimal decoding session
/// ///
@ -81,9 +76,7 @@ namespace stdex
hex_dec() noexcept : hex_dec() noexcept :
buf(0), buf(0),
num(0) num(0)
{ {}
}
/// ///
/// Decodes one block of information, and _appends_ it to the output /// Decodes one block of information, and _appends_ it to the output
@ -131,7 +124,6 @@ namespace stdex
} }
} }
/// ///
/// Resets decoding session /// Resets decoding session
/// ///
@ -140,7 +132,6 @@ namespace stdex
num = 0; num = 0;
} }
/// ///
/// Returns maximum decoded size /// Returns maximum decoded size
/// ///
@ -153,7 +144,6 @@ namespace stdex
return (size + 1)/2; return (size + 1)/2;
} }
protected: protected:
uint8_t buf; ///< Internal buffer uint8_t buf; ///< Internal buffer
size_t num; ///< Number of nibbles used in `buf` size_t num; ///< Number of nibbles used in `buf`

View File

@ -59,8 +59,7 @@ namespace stdex
m_head(0), m_head(0),
m_count(0), m_count(0),
m_size_max(size_max) m_size_max(size_max)
{ {}
}
/// ///
/// Copies existing queue. /// Copies existing queue.