/ fm / liveswitch / BitAssistant
Class: BitAssistant
fm.liveswitch.BitAssistant
Table of contents
Constructors
Methods
- getTypeString
- castByte
- castInteger
- castLong
- copy
- getHexBytes
- getHexString
- leftShift
- leftShiftInteger
- leftShiftLong
- leftShiftShort
- reverse
- rightShift
- rightShiftInteger
- rightShiftLong
- rightShiftShort
- sequencesAreEqual
- sequencesAreEqualConstantTime
- set
- subArray
Constructors
constructor
+ new BitAssistant(): BitAssistant
Returns: BitAssistant
Methods
getTypeString
▸ getTypeString(): string
Returns: string
Defined in: Generated/TypeScript/fm.liveswitch/BitAssistant.ts:3
castByte
▸ Static
castByte(value
: number): number
Parameters:
Name | Type |
---|---|
value |
number |
Returns: number
Defined in: Generated/TypeScript/fm.liveswitch/BitAssistant.ts:6
castInteger
▸ Static
castInteger(value
: number): number
Parameters:
Name | Type |
---|---|
value |
number |
Returns: number
Defined in: Generated/TypeScript/fm.liveswitch/BitAssistant.ts:9
castLong
▸ Static
castLong(value
: number): number
Parameters:
Name | Type |
---|---|
value |
number |
Returns: number
Defined in: Generated/TypeScript/fm.liveswitch/BitAssistant.ts:12
copy
▸ Static
copy(source
: Uint8Array, sourceIndex
: number, destination
: Uint8Array, destinationIndex
: number, length
: number): void
Parameters:
Name | Type |
---|---|
source |
Uint8Array |
sourceIndex |
number |
destination |
Uint8Array |
destinationIndex |
number |
length |
number |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/BitAssistant.ts:145
getHexBytes
▸ Static
getHexBytes(s
: string): Uint8Array
Parameters:
Name | Type |
---|---|
s |
string |
Returns: Uint8Array
Defined in: Generated/TypeScript/fm.liveswitch/BitAssistant.ts:170
getHexString
▸ Static
getHexString(array
: Uint8Array): string
Parameters:
Name | Type |
---|---|
array |
Uint8Array |
Returns: string
Defined in: Generated/TypeScript/fm.liveswitch/BitAssistant.ts:151
▸ Static
getHexString(array
: Uint8Array, offset
: number, length
: number): string
Parameters:
Name | Type |
---|---|
array |
Uint8Array |
offset |
number |
length |
number |
Returns: string
Defined in: Generated/TypeScript/fm.liveswitch/BitAssistant.ts:152
leftShift
▸ Static
leftShift(value
: number, count
: number): number
Parameters:
Name | Type |
---|---|
value |
number |
count |
number |
Returns: number
Defined in: Generated/TypeScript/fm.liveswitch/BitAssistant.ts:15
leftShiftInteger
▸ Static
leftShiftInteger(value
: number, count
: number): number
Parameters:
Name | Type |
---|---|
value |
number |
count |
number |
Returns: number
Defined in: Generated/TypeScript/fm.liveswitch/BitAssistant.ts:21
leftShiftLong
▸ Static
leftShiftLong(value
: number, count
: number): number
Parameters:
Name | Type |
---|---|
value |
number |
count |
number |
Returns: number
Defined in: Generated/TypeScript/fm.liveswitch/BitAssistant.ts:24
leftShiftShort
▸ Static
leftShiftShort(value
: number, count
: number): number
Parameters:
Name | Type |
---|---|
value |
number |
count |
number |
Returns: number
Defined in: Generated/TypeScript/fm.liveswitch/BitAssistant.ts:18
reverse
▸ Static
reverse(array
: Uint8Array): void
Parameters:
Name | Type |
---|---|
array |
Uint8Array |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/BitAssistant.ts:142
rightShift
▸ Static
rightShift(value
: number, count
: number): number
Parameters:
Name | Type |
---|---|
value |
number |
count |
number |
Returns: number
Defined in: Generated/TypeScript/fm.liveswitch/BitAssistant.ts:27
rightShiftInteger
▸ Static
rightShiftInteger(value
: number, count
: number): number
Parameters:
Name | Type |
---|---|
value |
number |
count |
number |
Returns: number
Defined in: Generated/TypeScript/fm.liveswitch/BitAssistant.ts:33
rightShiftLong
▸ Static
rightShiftLong(value
: number, count
: number): number
Parameters:
Name | Type |
---|---|
value |
number |
count |
number |
Returns: number
Defined in: Generated/TypeScript/fm.liveswitch/BitAssistant.ts:36
rightShiftShort
▸ Static
rightShiftShort(value
: number, count
: number): number
Parameters:
Name | Type |
---|---|
value |
number |
count |
number |
Returns: number
Defined in: Generated/TypeScript/fm.liveswitch/BitAssistant.ts:30
sequencesAreEqual
▸ Static
sequencesAreEqual(array1
: Uint8Array, array2
: Uint8Array): boolean
Parameters:
Name | Type |
---|---|
array1 |
Uint8Array |
array2 |
Uint8Array |
Returns: boolean
Defined in: Generated/TypeScript/fm.liveswitch/BitAssistant.ts:39
▸ Static
sequencesAreEqual(array1
: Uint8Array, offset1
: number, array2
: Uint8Array, offset2
: number, length
: number): boolean
Parameters:
Name | Type |
---|---|
array1 |
Uint8Array |
offset1 |
number |
array2 |
Uint8Array |
offset2 |
number |
length |
number |
Returns: boolean
Defined in: Generated/TypeScript/fm.liveswitch/BitAssistant.ts:40
sequencesAreEqualConstantTime
▸ Static
sequencesAreEqualConstantTime(array1
: Uint8Array, array2
: Uint8Array): boolean
Parameters:
Name | Type |
---|---|
array1 |
Uint8Array |
array2 |
Uint8Array |
Returns: boolean
Defined in: Generated/TypeScript/fm.liveswitch/BitAssistant.ts:85
▸ Static
sequencesAreEqualConstantTime(array1
: Uint8Array, offset1
: number, array2
: Uint8Array, offset2
: number, length
: number): boolean
Parameters:
Name | Type |
---|---|
array1 |
Uint8Array |
offset1 |
number |
array2 |
Uint8Array |
offset2 |
number |
length |
number |
Returns: boolean
Defined in: Generated/TypeScript/fm.liveswitch/BitAssistant.ts:86
set
▸ Static
set(array
: Uint8Array, index
: number, length
: number, value
: number): void
Parameters:
Name | Type |
---|---|
array |
Uint8Array |
index |
number |
length |
number |
value |
number |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/BitAssistant.ts:148
subArray
▸ Static
subArray(array
: Uint8Array, offset
: number, count?
: number): Uint8Array
Parameters:
Name | Type |
---|---|
array |
Uint8Array |
offset |
number |
count? |
number |
Returns: Uint8Array
Defined in: Generated/TypeScript/fm.liveswitch/BitAssistant.ts:133