EpcTools
An event based multi-threaded C++ development framework.
Public Member Functions | List of all members
ESipHash24::Key Class Reference

Represents a key to be used when calculating a hash value. More...

#include <ehash.h>

Public Member Functions

 Key ()
 Class constructor. More...
 
 Key (const Key &k)
 Copy constructor. More...
 
 Key (cpUChar k, const size_t len)
 Class constructor. More...
 
 operator cpUChar () const
 The const unsigned char* conversion operator. More...
 
cpUChar data () const
 Data extractor. More...
 
Keyassign (cpUChar k, const size_t len)
 Assigns a new key value. More...
 

Detailed Description

Represents a key to be used when calculating a hash value.

Constructor & Destructor Documentation

◆ Key() [1/3]

ESipHash24::Key::Key ( )
inline

Class constructor.

◆ Key() [2/3]

ESipHash24::Key::Key ( const Key k)
inline

Copy constructor.

Parameters
kthe Key to copy.

◆ Key() [3/3]

ESipHash24::Key::Key ( cpUChar  k,
const size_t  len 
)
inline

Class constructor.

Parameters
ka buffer containing the key value.
lenthe length of the key buffer.

Member Function Documentation

◆ assign()

Key& ESipHash24::Key::assign ( cpUChar  k,
const size_t  len 
)
inline

Assigns a new key value.

Parameters
kthe data buffer to copy.
lenthe length of the data buffer to copy.
Returns
A reference to this object.

◆ data()

cpUChar ESipHash24::Key::data ( ) const
inline

Data extractor.

Returns
The data value of this Key object.

◆ operator cpUChar()

ESipHash24::Key::operator cpUChar ( ) const
inline

The const unsigned char* conversion operator.

Returns
The data value of this Key object.

The documentation for this class was generated from the following file: