fm.liveswitch.HashContextBase Class Referenceabstract

A hash context. More...

Public Member Functions

fm.liveswitch.DataBuffer compute (fm.liveswitch.DataBuffer input)
 Computes the hash. More...
 
fm.liveswitch.DataBuffer compute (String inputString)
 Computes the hash. More...
 
void destroy ()
 Destroys this instance. More...
 
fm.liveswitch.HashType getType ()
 Gets the type. More...
 
 HashContextBase (fm.liveswitch.HashType type)
 Initializes a new instance of the fm.liveswitch.HashContextBase class. More...
 

Static Public Member Functions

static fm.liveswitch.DataBuffer compute (fm.liveswitch.HashType type, fm.liveswitch.DataBuffer input)
 Computes the hash for a given type. More...
 
static fm.liveswitch.DataBuffer compute (fm.liveswitch.HashType type, String inputString)
 Computes the hash for a given type. More...
 

Protected Member Functions

abstract fm.liveswitch.DataBuffer doCompute (fm.liveswitch.DataBuffer input)
 Computes the hash. More...
 
abstract void doDestroy ()
 Destroys this instance. More...
 

Detailed Description

A hash context.

Constructor & Destructor Documentation

◆ HashContextBase()

fm.liveswitch.HashContextBase.HashContextBase ( fm.liveswitch.HashType  type)

Initializes a new instance of the fm.liveswitch.HashContextBase class.

Parameters
typeThe type.

Member Function Documentation

◆ compute() [1/4]

fm.liveswitch.DataBuffer fm.liveswitch.HashContextBase.compute ( fm.liveswitch.DataBuffer  input)

Computes the hash.

Parameters
inputThe input.

◆ compute() [2/4]

static fm.liveswitch.DataBuffer fm.liveswitch.HashContextBase.compute ( fm.liveswitch.HashType  type,
fm.liveswitch.DataBuffer  input 
)
static

Computes the hash for a given type.

Parameters
typeThe type.
inputThe input.

◆ compute() [3/4]

static fm.liveswitch.DataBuffer fm.liveswitch.HashContextBase.compute ( fm.liveswitch.HashType  type,
String  inputString 
)
static

Computes the hash for a given type.

Parameters
typeThe type.
inputStringThe input string.

◆ compute() [4/4]

fm.liveswitch.DataBuffer fm.liveswitch.HashContextBase.compute ( String  inputString)

Computes the hash.

Parameters
inputStringThe input.

◆ destroy()

void fm.liveswitch.HashContextBase.destroy ( )

Destroys this instance.

◆ doCompute()

abstract fm.liveswitch.DataBuffer fm.liveswitch.HashContextBase.doCompute ( fm.liveswitch.DataBuffer  input)
abstractprotected

Computes the hash.

Parameters
inputThe input.

◆ doDestroy()

abstract void fm.liveswitch.HashContextBase.doDestroy ( )
abstractprotected

Destroys this instance.

Reimplemented in fm.liveswitch.HashContext.

◆ getType()

fm.liveswitch.HashType fm.liveswitch.HashContextBase.getType ( )

Gets the type.