diff options
author | 2015-07-20 08:11:41 +0200 | |
---|---|---|
committer | 2015-07-20 08:11:41 +0200 | |
commit | 4bcb0c13f50ddb1cd3fd0341b4bb31d9c3c7fc7a (patch) | |
tree | 55eccacfca0e69435d0d4e6615205310ca11f271 /src/lib/util/hashing.c | |
parent | d132946c6f45aa8d271c6180e86f72dd08243048 (diff) | |
parent | 229785f695b26c702c8490792611f59d0366a933 (diff) |
Merge pull request #5 from mamedev/master
Sync to base master
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..e7f315ecc53 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) { |