00001 #ifndef BYTE_HASHER_IMPLEMENTATION_FILE 00002 #define BYTE_HASHER_IMPLEMENTATION_FILE 00003 00004 /*****************************************************************************\ 00005 * * 00006 * Name : rotating_byte_hasher * 00007 * Author : Chris Koeritz * 00008 * * 00009 ******************************************************************************* 00010 * Copyright (c) 2001-$now By Author. This program is free software; you can * 00011 * redistribute it and/or modify it under the terms of the GNU General Public * 00012 * License as published by the Free Software Foundation; either version 2 of * 00013 * the License or (at your option) any later version. This is online at: * 00014 * http://www.fsf.org/copyleft/gpl.html * 00015 * Please send any updates to: fred@gruntose.com * 00016 \*****************************************************************************/ 00017 00018 #include "byte_hasher.h" 00019 #include "static_memory_gremlin.h" 00020 00021 #include <basis/utility.h> 00022 00023 hashing_algorithm *rotating_byte_hasher::clone() const 00024 { return new rotating_byte_hasher; } 00025 00026 u_int rotating_byte_hasher::hash(const void *key_data, int key_length) const 00027 { return utility::hash_bytes(key_data, key_length); } 00028 00029 #endif //BYTE_HASHER_IMPLEMENTATION_FILE 00030
1.5.1