From b6ce8ee991c7e14ca214a2931bfbc4e4a5a0dc0f Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Sun, 7 Jun 2015 17:37:34 +0200 Subject: Licenses for Raphael Nabet (nw) --- src/lib/util/hashing.c | 30 +++++++++++++++++++++--------- 1 file changed, 21 insertions(+), 9 deletions(-) (limited to 'src/lib/util/hashing.c') diff --git a/src/lib/util/hashing.c b/src/lib/util/hashing.c index 1481de34a12..d7244d4edcf 100644 --- a/src/lib/util/hashing.c +++ b/src/lib/util/hashing.c @@ -214,10 +214,17 @@ bool crc16_t::from_string(const char *string, int length) return true; } - -//------------------------------------------------- -// as_string - convert to a string -//------------------------------------------------- +/** + * @fn const char *crc16_t::as_string(std::string &buffer) const + * + * @brief ------------------------------------------------- + * as_string - convert to a string + * -------------------------------------------------. + * + * @param [in,out] buffer The buffer. + * + * @return null if it fails, else a char*. + */ const char *crc16_t::as_string(std::string &buffer) const { @@ -225,11 +232,16 @@ const char *crc16_t::as_string(std::string &buffer) const return buffer.c_str(); } - -//------------------------------------------------- -// append - hash a block of data, appending to -// the currently-accumulated value -//------------------------------------------------- +/** + * @fn void crc16_creator::append(const void *data, UINT32 length) + * + * @brief ------------------------------------------------- + * append - hash a block of data, appending to the currently-accumulated value + * -------------------------------------------------. + * + * @param data The data. + * @param length The length. + */ void crc16_creator::append(const void *data, UINT32 length) { -- cgit v1.2.3-70-g09d2