foobar2000 SDK  2015-08-03
Public Member Functions | Static Public Member Functions | Data Fields
hasher_md5_result

#include <hasher_md5.h>

Public Member Functions

t_uint64 xorHalve () const
 

Static Public Member Functions

static hasher_md5_result null ()
 

Data Fields

char m_data [16]
 

Detailed Description

Definition at line 5 of file hasher_md5.h.

Member Function Documentation

static hasher_md5_result hasher_md5_result::null ( )
inlinestatic

Definition at line 10 of file hasher_md5.h.

10 {hasher_md5_result h = {}; return h;}
t_uint64 hasher_md5_result::xorHalve ( ) const

Definition at line 24 of file hasher_md5.cpp.

24  {
25 #if PFC_BYTE_ORDER_IS_BIG_ENDIAN
26  t_uint64 ret = 0;
27  for(int walk = 0; walk < 8; ++walk) {
28  ret |= (t_uint64)((t_uint8)m_data[walk] ^ (t_uint8)m_data[walk+8]) << (walk * 8);
29  }
30  return ret;
31 #else
32  const t_uint64 * v = reinterpret_cast<const t_uint64*>(&m_data);
33  return v[0] ^ v[1];
34 #endif
35 }
uint8_t t_uint8
Definition: int_types.h:9
uint64_t t_uint64
Definition: int_types.h:3
char m_data[16]
Definition: hasher_md5.h:6

Field Documentation

char hasher_md5_result::m_data[16]

Definition at line 6 of file hasher_md5.h.


The documentation for this struct was generated from the following files: