/ fm / liveswitch / HashContext
Class: HashContext
fm.liveswitch.HashContext
Hierarchy
-
↳ HashContext
Table of contents
Constructors
Methods
Constructors
constructor
+ new HashContext(type
: HashType): HashContext
Parameters:
Name | Type |
---|---|
type |
HashType |
Returns: HashContext
Inherited from: HashContextBase
Defined in: Generated/TypeScript/fm.liveswitch/HashContext.ts:6
Methods
compute
▸ compute(input
: DataBuffer): DataBuffer
Computes the hash.
Parameters:
Name | Type | Description |
---|---|---|
input |
DataBuffer | The input. |
Returns: DataBuffer
Inherited from: HashContextBase
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
Inherited from: HashContextBase
Defined in: Generated/TypeScript/fm.liveswitch/HashContextBase.ts:82
destroy
▸ destroy(): void
Destroys this instance.
Returns: void
Inherited from: HashContextBase
Defined in: Generated/TypeScript/fm.liveswitch/HashContextBase.ts:99
doCompute
▸ doCompute(input
: DataBuffer): DataBuffer
Parameters:
Name | Type |
---|---|
input |
DataBuffer |
Returns: DataBuffer
Overrides: HashContextBase
Defined in: Generated/TypeScript/fm.liveswitch/HashContext.ts:10
doDestroy
▸ doDestroy(): void
Returns: void
Overrides: HashContextBase
Defined in: Generated/TypeScript/fm.liveswitch/HashContext.ts:24
getType
▸ getType(): HashType
Gets the type.
Returns: HashType
Inherited from: HashContextBase
Defined in: Generated/TypeScript/fm.liveswitch/HashContextBase.ts:124
getTypeString
▸ getTypeString(): string
Returns: string
Overrides: HashContextBase
Defined in: Generated/TypeScript/fm.liveswitch/HashContext.ts:4
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
Inherited from: HashContextBase
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
Inherited from: HashContextBase
Defined in: Generated/TypeScript/fm.liveswitch/HashContextBase.ts:49