20 template<>
inline int compare_t(
const hasher_md5_result & p_item1,
const hasher_md5_result & p_item2) {
21 return memcmp(&p_item1, &p_item2,
sizeof(hasher_md5_result));
39 GUID process_single_guid(
const void * p_buffer,
t_size p_bytes);
46 FB2K_MAKE_SERVICE_INTERFACE_ENTRYPOINT(
hasher_md5);
53 m_hasher->initialize(m_state);
57 m_hasher->process(m_state,p_buffer,p_bytes);
60 return m_hasher->get_result(m_state);
69 template<
bool isBigEndian = false>
75 return _m_stream.result();
GUID get_result_guid(const hasher_md5_state &p_state)
bool operator==(const hasher_md5_result &p_item1, const hasher_md5_result &p_item2)
abort_callback_impl abort_callback_dummy
void write(const void *p_buffer, t_size p_bytes, abort_callback &p_abort)
void process_string(hasher_md5_state &p_state, const char *p_string, t_size p_length=~0)
Helper.
hasher_md5_result process_single_string(const char *str)
hasher_md5_result result() const
bool operator!=(const hasher_md5_result &p_item1, const hasher_md5_result &p_item2)
static hasher_md5_result null()
t_size strlen_max(const char *ptr, t_size max)
stream_writer_hasher_md5()
static GUID guid_from_result(const hasher_md5_result ¶m)
Base class for all service classes. Provides interfaces for reference counter and querying for differ...
int compare_t(const hasher_md5_result &p_item1, const hasher_md5_result &p_item2)
static_api_ptr_t< hasher_md5 > m_hasher