/ fm / liveswitch / HashContextBase
Class: HashContextBase
fm.liveswitch.HashContextBase
A hash context.
Hierarchy
HashContextBase
Table of contents
Constructors
Methods
Constructors
constructor
+ new HashContextBase(type
: HashType): HashContextBase
Initializes a new instance of the [[fm.liveswitch.hashContextBase]] class.
Parameters:
Name | Type | Description |
---|---|---|
type |
HashType | The type. |
Returns: HashContextBase
Defined in: Generated/TypeScript/fm.liveswitch/HashContextBase.ts:13
Methods
compute
▸ compute(input
: DataBuffer): DataBuffer
Computes the hash.
Parameters:
Name | Type | Description |
---|---|---|
input |
DataBuffer | The input. |
Returns: DataBuffer
Defined in: Generated/TypeScript/fm.liveswitch/HashContextBase.ts:75
▸ compute(inputString
: string): DataBuffer
Computes the hash.
Parameters:
Name | Type | Description |
---|---|---|
inputString |
string | The input. |
Returns: DataBuffer
Defined in: Generated/TypeScript/fm.liveswitch/HashContextBase.ts:82
destroy
▸ destroy(): void
Destroys this instance.
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/HashContextBase.ts:99
doCompute
▸ Protected
Abstract
doCompute(input
: DataBuffer): DataBuffer
Computes the hash.
Parameters:
Name | Type | Description |
---|---|---|
input |
DataBuffer | The input. |
Returns: DataBuffer
Defined in: Generated/TypeScript/fm.liveswitch/HashContextBase.ts:112
doDestroy
▸ Protected
Abstract
doDestroy(): void
Destroys this instance.
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/HashContextBase.ts:118
getType
▸ getType(): HashType
Gets the type.
Returns: HashType
Defined in: Generated/TypeScript/fm.liveswitch/HashContextBase.ts:124
getTypeString
▸ getTypeString(): string
Returns: string
Defined in: Generated/TypeScript/fm.liveswitch/HashContextBase.ts:9
compute
▸ Static
compute(type
: HashType, input
: DataBuffer): DataBuffer
Computes the hash for a given type.
Parameters:
Name | Type | Description |
---|---|---|
type |
HashType | The type. |
input |
DataBuffer | The input. |
Returns: DataBuffer
Defined in: Generated/TypeScript/fm.liveswitch/HashContextBase.ts:41
▸ Static
compute(type
: HashType, inputString
: string): DataBuffer
Computes the hash for a given type.
Parameters:
Name | Type | Description |
---|---|---|
type |
HashType | The type. |
inputString |
string | The input string. |
Returns: DataBuffer
Defined in: Generated/TypeScript/fm.liveswitch/HashContextBase.ts:49