diff options
author | 2015-06-14 13:50:17 +0200 | |
---|---|---|
committer | 2015-06-14 13:50:17 +0200 | |
commit | b0149dad8a1cf9ae1dc87beaccd5b5170b700406 (patch) | |
tree | 002d0688482c4e072a3b2f219bf750e3cbb86fde /src/lib/util/hashing.c | |
parent | 9e10a6a35a53817742b340030fda456987e13144 (diff) | |
parent | 3b6a390069ec13e080fd497caa409360c54f0bf7 (diff) |
Merge pull request #2 from mamedev/master
merge with base
Diffstat (limited to 'src/lib/util/hashing.c')
-rw-r--r-- | src/lib/util/hashing.c | 30 |
1 files changed, 21 insertions, 9 deletions
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) { |