/ fm / liveswitch / Binary
Class: Binary
fm.liveswitch.Binary
Common binary methods.
Table of contents
Constructors
Methods
- getTypeString
- bitStringToBytes
- bytesToBitString
- deinterleave
- deinterleaveTransform
- fromBytes1
- fromBytes10
- fromBytes11
- fromBytes12
- fromBytes13
- fromBytes14
- fromBytes15
- fromBytes16
- fromBytes17
- fromBytes18
- fromBytes19
- fromBytes2
- fromBytes20
- fromBytes21
- fromBytes22
- fromBytes23
- fromBytes24
- fromBytes3
- fromBytes32
- fromBytes4
- fromBytes40
- fromBytes48
- fromBytes5
- fromBytes56
- fromBytes6
- fromBytes64
- fromBytes7
- fromBytes8
- fromBytes9
- interleave
- interleaveTransform
- toBytes1
- toBytes10
- toBytes11
- toBytes12
- toBytes13
- toBytes14
- toBytes15
- toBytes16
- toBytes17
- toBytes18
- toBytes19
- toBytes2
- toBytes20
- toBytes21
- toBytes22
- toBytes23
- toBytes24
- toBytes3
- toBytes32
- toBytes4
- toBytes40
- toBytes48
- toBytes5
- toBytes56
- toBytes6
- toBytes64
- toBytes7
- toBytes8
- toBytes9
- transform
- tryFromBytes1
- tryFromBytes10
- tryFromBytes11
- tryFromBytes12
- tryFromBytes13
- tryFromBytes14
- tryFromBytes15
- tryFromBytes16
- tryFromBytes17
- tryFromBytes18
- tryFromBytes19
- tryFromBytes2
- tryFromBytes20
- tryFromBytes21
- tryFromBytes22
- tryFromBytes23
- tryFromBytes24
- tryFromBytes3
- tryFromBytes32
- tryFromBytes4
- tryFromBytes40
- tryFromBytes48
- tryFromBytes5
- tryFromBytes56
- tryFromBytes6
- tryFromBytes64
- tryFromBytes7
- tryFromBytes8
- tryFromBytes9
Constructors
constructor
+ new Binary(): Binary
Returns: Binary
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:13
Methods
getTypeString
▸ getTypeString(): string
Returns: string
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:9
bitStringToBytes
▸ Static
bitStringToBytes(bitString
: string): Uint8Array
Converts a bit-string to bytes.
Parameters:
Name | Type | Description |
---|---|---|
bitString |
string | The bit-string. |
Returns: Uint8Array
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:33
▸ Static
bitStringToBytes(bitString
: string, numberOfUnusedBits
: Holder<number>): Uint8Array
Converts a bit-string to bytes.
Parameters:
Name | Type | Description |
---|---|---|
bitString |
string | The bit-string. |
numberOfUnusedBits |
Holder<number> | The number of unused bits. |
Returns: Uint8Array
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:41
▸ Static
bitStringToBytes(bitString
: string, padLeft
: boolean): Uint8Array
Converts a bit-string to bytes.
Parameters:
Name | Type | Description |
---|---|---|
bitString |
string | The bit-string. |
padLeft |
boolean | Whether to pad extra zero-bits to the left. |
Returns: Uint8Array
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:49
▸ Static
bitStringToBytes(bitString
: string, padLeft
: boolean, numberOfUnusedBits
: Holder<number>): Uint8Array
Converts a bit-string to bytes.
Parameters:
Name | Type | Description |
---|---|---|
bitString |
string | The bit-string. |
padLeft |
boolean | Whether to pad extra zero-bits to the left. |
numberOfUnusedBits |
Holder<number> | The number of unused bits. |
Returns: Uint8Array
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:58
bytesToBitString
▸ Static
bytesToBitString(bytes
: Uint8Array): string
Converts bytes to a bit-string.
Parameters:
Name | Type | Description |
---|---|---|
bytes |
Uint8Array | The bytes. |
Returns: string
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:147
▸ Static
bytesToBitString(bytes
: Uint8Array, offset
: number, length
: number): string
Converts bytes to a bit-string.
Parameters:
Name | Type | Description |
---|---|---|
bytes |
Uint8Array | The bytes. |
offset |
number | The offset. |
length |
number | The length. |
Returns: string
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:156
▸ Static
bytesToBitString(bytes
: Uint8Array, offset
: number, length
: number, numberOfUnusedBits
: number): string
Converts bytes to a bit-string.
Parameters:
Name | Type | Description |
---|---|---|
bytes |
Uint8Array | The bytes. |
offset |
number | The offset. |
length |
number | The length. |
numberOfUnusedBits |
number | The number of unused bits. |
Returns: string
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:166
▸ Static
bytesToBitString(bytes
: Uint8Array, offset
: number, length
: number, numberOfUnusedBits
: number, trimLeft
: boolean): string
Converts bytes to a bit-string.
Parameters:
Name | Type | Description |
---|---|---|
bytes |
Uint8Array | The bytes. |
offset |
number | The offset. |
length |
number | The length. |
numberOfUnusedBits |
number | The number of unused bits. |
trimLeft |
boolean | Whether to trim unused bits from the left. |
Returns: string
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:177
deinterleave
▸ Static
deinterleave(inputFrame
: Uint8Array, outputFrame
: Uint8Array): void
Deinterleaves a byte array i.e. XYXYXYXY to XXXXYYYY
Parameters:
Name | Type | Description |
---|---|---|
inputFrame |
Uint8Array | The inputFrame. |
outputFrame |
Uint8Array | The outputFrame. |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:229
▸ Static
deinterleave(inputFrame
: Uint8Array, outputFrame
: Uint8Array, start
: number, length
: number): void
Deinterleaves a byte array i.e. XYXYXYXY to XXXXYYYY
Parameters:
Name | Type | Description |
---|---|---|
inputFrame |
Uint8Array | The inputFrame. |
outputFrame |
Uint8Array | The outputFrame. |
start |
number | The start. |
length |
number | The length. |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:240
▸ Static
deinterleave(inputFrame
: Uint8Array, outputFrame
: Uint8Array, start
: number, length
: number, reversePlanes
: boolean): void
Deinterleaves a byte array
Parameters:
Name | Type | Description |
---|---|---|
inputFrame |
Uint8Array | The inputFrame. |
outputFrame |
Uint8Array | The outputFrame. |
start |
number | The start. |
length |
number | The length. |
reversePlanes |
boolean | The reversePlanes. |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:251
deinterleaveTransform
▸ Static
deinterleaveTransform(inputFrame
: Uint8Array, outputFrame
: Uint8Array, width
: number, height
: number, stride
: number, rotation
: number): void
Deinterleave and transform (rotate) a byte array containing two planes
Parameters:
Name | Type | Description |
---|---|---|
inputFrame |
Uint8Array | The inputFrame. |
outputFrame |
Uint8Array | The outputFrame. |
width |
number | The width. |
height |
number | The height. |
stride |
number | The stride. |
rotation |
number | Values 0, 90, 180, 270. |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:304
▸ Static
deinterleaveTransform(inputFrame
: Uint8Array, outputFrame
: Uint8Array, width
: number, height
: number, stride
: number, rotation
: number, start
: number): void
Deinterleave and transform (rotate) a byte array containing two planes
Parameters:
Name | Type | Description |
---|---|---|
inputFrame |
Uint8Array | The inputFrame. |
outputFrame |
Uint8Array | The outputFrame. |
width |
number | The width. |
height |
number | The height. |
stride |
number | The stride. |
rotation |
number | Values 0, 90, 180, 270. |
start |
number | The start. |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:317
▸ Static
deinterleaveTransform(inputFrame
: Uint8Array, outputFrame
: Uint8Array, width
: number, height
: number, stride
: number, rotation
: number, start
: number, reversePlanes
: boolean): void
Deinterleave and transform (rotate) a byte array containing two planes
Parameters:
Name | Type | Description |
---|---|---|
inputFrame |
Uint8Array | The inputFrame. |
outputFrame |
Uint8Array | The outputFrame. |
width |
number | The width. |
height |
number | The height. |
stride |
number | The stride. |
rotation |
number | Values 0, 90, 180, 270. |
start |
number | The start. |
reversePlanes |
boolean | Reverse output plane order. |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:331
fromBytes1
▸ Static
fromBytes1(input
: Uint8Array, inputIndex
: number, bitOffset
: number): boolean
Reads a 1-bit value from a byte array.
Parameters:
Name | Type | Description |
---|---|---|
input |
Uint8Array | The input byte array. |
inputIndex |
number | The index to start reading. |
bitOffset |
number | The offset of the value within the byte. |
Returns: boolean
The value.
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:429
fromBytes10
▸ Static
fromBytes10(input
: Uint8Array, inputIndex
: number, bitOffset
: number): number
Reads a 10-bit value from a byte array.
Parameters:
Name | Type | Description |
---|---|---|
input |
Uint8Array | The input byte array. |
inputIndex |
number | The index to start reading. |
bitOffset |
number | The offset of the value within the byte. |
Returns: number
The value.
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:452
fromBytes11
▸ Static
fromBytes11(input
: Uint8Array, inputIndex
: number, bitOffset
: number): number
Reads a 11-bit value from a byte array.
Parameters:
Name | Type | Description |
---|---|---|
input |
Uint8Array | The input byte array. |
inputIndex |
number | The index to start reading. |
bitOffset |
number | The offset of the value within the byte. |
Returns: number
The value.
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:484
fromBytes12
▸ Static
fromBytes12(input
: Uint8Array, inputIndex
: number, bitOffset
: number): number
Reads a 12-bit value from a byte array.
Parameters:
Name | Type | Description |
---|---|---|
input |
Uint8Array | The input byte array. |
inputIndex |
number | The index to start reading. |
bitOffset |
number | The offset of the value within the byte. |
Returns: number
The value.
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:516
fromBytes13
▸ Static
fromBytes13(input
: Uint8Array, inputIndex
: number, bitOffset
: number): number
Reads a 13-bit value from a byte array.
Parameters:
Name | Type | Description |
---|---|---|
input |
Uint8Array | The input byte array. |
inputIndex |
number | The index to start reading. |
bitOffset |
number | The offset of the value within the byte. |
Returns: number
The value.
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:548
fromBytes14
▸ Static
fromBytes14(input
: Uint8Array, inputIndex
: number, bitOffset
: number): number
Reads a 14-bit value from a byte array.
Parameters:
Name | Type | Description |
---|---|---|
input |
Uint8Array | The input byte array. |
inputIndex |
number | The index to start reading. |
bitOffset |
number | The offset of the value within the byte. |
Returns: number
The value.
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:580
fromBytes15
▸ Static
fromBytes15(input
: Uint8Array, inputIndex
: number, bitOffset
: number): number
Reads a 15-bit value from a byte array.
Parameters:
Name | Type | Description |
---|---|---|
input |
Uint8Array | The input byte array. |
inputIndex |
number | The index to start reading. |
bitOffset |
number | The offset of the value within the byte. |
Returns: number
The value.
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:612
fromBytes16
▸ Static
fromBytes16(input
: Uint8Array, inputIndex
: number, littleEndian
: boolean): number
Reads a 16-bit value from a byte array.
Parameters:
Name | Type | Description |
---|---|---|
input |
Uint8Array | The input byte array. |
inputIndex |
number | The index to start reading. |
littleEndian |
boolean | Whether to use little-endian format. |
Returns: number
The value.
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:644
fromBytes17
▸ Static
fromBytes17(input
: Uint8Array, inputIndex
: number, bitOffset
: number): number
Reads an 17-bit value from a byte array.
Parameters:
Name | Type | Description |
---|---|---|
input |
Uint8Array | The input byte array. |
inputIndex |
number | The index to start reading. |
bitOffset |
number | The offset of the value within the byte. |
Returns: number
The value.
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:668
fromBytes18
▸ Static
fromBytes18(input
: Uint8Array, inputIndex
: number, bitOffset
: number): number
Reads an 18-bit value from a byte array.
Parameters:
Name | Type | Description |
---|---|---|
input |
Uint8Array | The input byte array. |
inputIndex |
number | The index to start reading. |
bitOffset |
number | The offset of the value within the byte. |
Returns: number
The value.
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:691
fromBytes19
▸ Static
fromBytes19(input
: Uint8Array, inputIndex
: number, bitOffset
: number): number
Reads an 19-bit value from a byte array.
Parameters:
Name | Type | Description |
---|---|---|
input |
Uint8Array | The input byte array. |
inputIndex |
number | The index to start reading. |
bitOffset |
number | The offset of the value within the byte. |
Returns: number
The value.
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:723
fromBytes2
▸ Static
fromBytes2(input
: Uint8Array, inputIndex
: number, bitOffset
: number): number
Reads a 2-bit value from a byte array.
Parameters:
Name | Type | Description |
---|---|---|
input |
Uint8Array | The input byte array. |
inputIndex |
number | The index to start reading. |
bitOffset |
number | The offset of the value within the byte. |
Returns: number
The value.
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:755
fromBytes20
▸ Static
fromBytes20(input
: Uint8Array, inputIndex
: number, bitOffset
: number): number
Reads an 20-bit value from a byte array.
Parameters:
Name | Type | Description |
---|---|---|
input |
Uint8Array | The input byte array. |
inputIndex |
number | The index to start reading. |
bitOffset |
number | The offset of the value within the byte. |
Returns: number
The value.
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:778
fromBytes21
▸ Static
fromBytes21(input
: Uint8Array, inputIndex
: number, bitOffset
: number): number
Reads an 21-bit value from a byte array.
Parameters:
Name | Type | Description |
---|---|---|
input |
Uint8Array | The input byte array. |
inputIndex |
number | The index to start reading. |
bitOffset |
number | The offset of the value within the byte. |
Returns: number
The value.
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:810
fromBytes22
▸ Static
fromBytes22(input
: Uint8Array, inputIndex
: number, bitOffset
: number): number
Reads an 22-bit value from a byte array.
Parameters:
Name | Type | Description |
---|---|---|
input |
Uint8Array | The input byte array. |
inputIndex |
number | The index to start reading. |
bitOffset |
number | The offset of the value within the byte. |
Returns: number
The value.
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:842
fromBytes23
▸ Static
fromBytes23(input
: Uint8Array, inputIndex
: number, bitOffset
: number): number
Reads an 23-bit value from a byte array.
Parameters:
Name | Type | Description |
---|---|---|
input |
Uint8Array | The input byte array. |
inputIndex |
number | The index to start reading. |
bitOffset |
number | The offset of the value within the byte. |
Returns: number
The value.
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:874
fromBytes24
▸ Static
fromBytes24(input
: Uint8Array, inputIndex
: number, littleEndian
: boolean): number
Reads a 24-bit value from a byte array.
Parameters:
Name | Type | Description |
---|---|---|
input |
Uint8Array | The input byte array. |
inputIndex |
number | The index to start reading. |
littleEndian |
boolean | Whether to use little-endian format. |
Returns: number
The value.
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:906
fromBytes3
▸ Static
fromBytes3(input
: Uint8Array, inputIndex
: number, bitOffset
: number): number
Reads a 3-bit value from a byte array.
Parameters:
Name | Type | Description |
---|---|---|
input |
Uint8Array | The input byte array. |
inputIndex |
number | The index to start reading. |
bitOffset |
number | The offset of the value within the byte. |
Returns: number
The value.
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:932
fromBytes32
▸ Static
fromBytes32(input
: Uint8Array, inputIndex
: number, littleEndian
: boolean): number
Reads a 32-bit value from a byte array.
Parameters:
Name | Type | Description |
---|---|---|
input |
Uint8Array | The input byte array. |
inputIndex |
number | The index to start reading. |
littleEndian |
boolean | Whether to use little-endian format. |
Returns: number
The value.
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:955
fromBytes4
▸ Static
fromBytes4(input
: Uint8Array, inputIndex
: number, bitOffset
: number): number
Reads a 4-bit value from a byte array.
Parameters:
Name | Type | Description |
---|---|---|
input |
Uint8Array | The input byte array. |
inputIndex |
number | The index to start reading. |
bitOffset |
number | The offset of the value within the byte. |
Returns: number
The value.
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:983
fromBytes40
▸ Static
fromBytes40(input
: Uint8Array, inputIndex
: number, littleEndian
: boolean): number
Reads a 40-bit value from a byte array.
Parameters:
Name | Type | Description |
---|---|---|
input |
Uint8Array | The input byte array. |
inputIndex |
number | The index to start reading. |
littleEndian |
boolean | Whether to use little-endian format. |
Returns: number
The value.
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:1006
fromBytes48
▸ Static
fromBytes48(input
: Uint8Array, inputIndex
: number, littleEndian
: boolean): number
Reads a 48-bit value from a byte array.
Parameters:
Name | Type | Description |
---|---|---|
input |
Uint8Array | The input byte array. |
inputIndex |
number | The index to start reading. |
littleEndian |
boolean | Whether to use little-endian format. |
Returns: number
The value.
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:1036
fromBytes5
▸ Static
fromBytes5(input
: Uint8Array, inputIndex
: number, bitOffset
: number): number
Reads a 5-bit value from a byte array.
Parameters:
Name | Type | Description |
---|---|---|
input |
Uint8Array | The input byte array. |
inputIndex |
number | The index to start reading. |
bitOffset |
number | The offset of the value within the byte. |
Returns: number
The value.
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:1068
fromBytes56
▸ Static
fromBytes56(input
: Uint8Array, inputIndex
: number, littleEndian
: boolean): number
Reads a 56-bit value from a byte array.
Parameters:
Name | Type | Description |
---|---|---|
input |
Uint8Array | The input byte array. |
inputIndex |
number | The index to start reading. |
littleEndian |
boolean | Whether to use little-endian format. |
Returns: number
The value.
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:1091
fromBytes6
▸ Static
fromBytes6(input
: Uint8Array, inputIndex
: number, bitOffset
: number): number
Reads a 6-bit value from a byte array.
Parameters:
Name | Type | Description |
---|---|---|
input |
Uint8Array | The input byte array. |
inputIndex |
number | The index to start reading. |
bitOffset |
number | The offset of the value within the byte. |
Returns: number
The value.
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:1125
fromBytes64
▸ Static
fromBytes64(input
: Uint8Array, inputIndex
: number, littleEndian
: boolean): number
Reads a 64-bit value from a byte array.
Parameters:
Name | Type | Description |
---|---|---|
input |
Uint8Array | The input byte array. |
inputIndex |
number | The index to start reading. |
littleEndian |
boolean | Whether to use little-endian format. |
Returns: number
The value.
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:1148
fromBytes7
▸ Static
fromBytes7(input
: Uint8Array, inputIndex
: number, bitOffset
: number): number
Reads a 7-bit value from a byte array.
Parameters:
Name | Type | Description |
---|---|---|
input |
Uint8Array | The input byte array. |
inputIndex |
number | The index to start reading. |
bitOffset |
number | The offset of the value within the byte. |
Returns: number
The value.
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:1184
fromBytes8
▸ Static
fromBytes8(input
: Uint8Array, inputIndex
: number): number
Reads an 8-bit value from a byte array.
Parameters:
Name | Type | Description |
---|---|---|
input |
Uint8Array | The input byte array. |
inputIndex |
number | The index to start reading. |
Returns: number
The value.
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:1206
fromBytes9
▸ Static
fromBytes9(input
: Uint8Array, inputIndex
: number, bitOffset
: number): number
Reads a 9-bit value from a byte array.
Parameters:
Name | Type | Description |
---|---|---|
input |
Uint8Array | The input byte array. |
inputIndex |
number | The index to start reading. |
bitOffset |
number | The offset of the value within the byte. |
Returns: number
The value.
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:1224
interleave
▸ Static
interleave(inputFrame
: Uint8Array, outputFrame
: Uint8Array): void
Interleaves a byte array i.e. XXXXYYYY to XYXYXYXY
Parameters:
Name | Type | Description |
---|---|---|
inputFrame |
Uint8Array | The inputFrame. |
outputFrame |
Uint8Array | The outputFrame. |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:1249
▸ Static
interleave(inputFrame
: Uint8Array, outputFrame
: Uint8Array, start
: number, length
: number): void
Interleaves a byte array i.e. XXXXYYYY to XYXYXYXY
Parameters:
Name | Type | Description |
---|---|---|
inputFrame |
Uint8Array | The inputFrame. |
outputFrame |
Uint8Array | The outputFrame. |
start |
number | The start. |
length |
number | The length. |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:1260
▸ Static
interleave(inputFrame
: Uint8Array, outputFrame
: Uint8Array, start
: number, length
: number, reversePlanes
: boolean): void
Interleaves a byte array i.e. XXXXYYYY to XYXYXYXY
Parameters:
Name | Type | Description |
---|---|---|
inputFrame |
Uint8Array | The inputFrame. |
outputFrame |
Uint8Array | The outputFrame. |
start |
number | The start. |
length |
number | The length. |
reversePlanes |
boolean | XXXXYYYY to YXYXYXYX |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:1272
interleaveTransform
▸ Static
interleaveTransform(inputFrame
: Uint8Array, outputFrame
: Uint8Array, width
: number, height
: number, stride
: number, rotation
: number): void
Interleave and transform (rotate) a byte array containing two planes
Parameters:
Name | Type | Description |
---|---|---|
inputFrame |
Uint8Array | The inputFrame. |
outputFrame |
Uint8Array | The outputFrame. |
width |
number | The width. |
height |
number | The height. |
stride |
number | The stride. |
rotation |
number | Values 0, 90, 180, 270. |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:1326
▸ Static
interleaveTransform(inputFrame
: Uint8Array, outputFrame
: Uint8Array, width
: number, height
: number, stride
: number, rotation
: number, start
: number): void
Interleave and transform (rotate) a byte array containing two planes
Parameters:
Name | Type | Description |
---|---|---|
inputFrame |
Uint8Array | The inputFrame. |
outputFrame |
Uint8Array | The outputFrame. |
width |
number | The width. |
height |
number | The height. |
stride |
number | The stride. |
rotation |
number | Values 0, 90, 180, 270. |
start |
number | The start. |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:1339
▸ Static
interleaveTransform(inputFrame
: Uint8Array, outputFrame
: Uint8Array, width
: number, height
: number, stride
: number, rotation
: number, start
: number, reversePlanes
: boolean): void
Interleave and transform (rotate) a byte array containing two planes
Parameters:
Name | Type | Description |
---|---|---|
inputFrame |
Uint8Array | The inputFrame. |
outputFrame |
Uint8Array | The outputFrame. |
width |
number | The width. |
height |
number | The height. |
stride |
number | The stride. |
rotation |
number | Values 0, 90, 180, 270. |
start |
number | The start. |
reversePlanes |
boolean | Reverse output plane order. |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:1353
toBytes1
▸ Static
toBytes1(value
: boolean, bitOffset
: number): Uint8Array
Converts a 1-bit value to a byte array.
Parameters:
Name | Type | Description |
---|---|---|
value |
boolean | The value to write. |
bitOffset |
number | The offset of the value within the byte. |
Returns: Uint8Array
The output byte array.
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:1517
▸ Static
toBytes1(value
: boolean, bitOffset
: number, output
: Uint8Array, outputIndex
: number): Uint8Array
Writes a 1-bit value to a byte array.
Parameters:
Name | Type | Description |
---|---|---|
value |
boolean | The value to write. |
bitOffset |
number | The offset of the value within the byte. |
output |
Uint8Array | The output byte array. |
outputIndex |
number | The index to start writing. |
Returns: Uint8Array
The output byte array.
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:1528
toBytes10
▸ Static
toBytes10(value
: number, bitOffset
: number, littleEndian
: boolean): Uint8Array
Converts a 10-bit value to a byte array.
Parameters:
Name | Type | Description |
---|---|---|
value |
number | The value to write. |
bitOffset |
number | The offset of the value within the byte. |
littleEndian |
boolean | Whether to use little-endian format. |
Returns: Uint8Array
The output byte array.
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:1565
▸ Static
toBytes10(value
: number, bitOffset
: number, littleEndian
: boolean, output
: Uint8Array, outputIndex
: number): Uint8Array
Writes a 10-bit value to a byte array.
Parameters:
Name | Type | Description |
---|---|---|
value |
number | The value to write. |
bitOffset |
number | The offset of the value within the byte. |
littleEndian |
boolean | Whether to use little-endian format. |
output |
Uint8Array | The output byte array. |
outputIndex |
number | The index to start writing. |
Returns: Uint8Array
The output byte array.
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:1577
toBytes11
▸ Static
toBytes11(value
: number, bitOffset
: number, littleEndian
: boolean): Uint8Array
Converts a 11-bit value to a byte array.
Parameters:
Name | Type | Description |
---|---|---|
value |
number | The value to write. |
bitOffset |
number | The offset of the value within the byte. |
littleEndian |
boolean | Whether to use little-endian format. |
Returns: Uint8Array
The output byte array.
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:1619
▸ Static
toBytes11(value
: number, bitOffset
: number, littleEndian
: boolean, output
: Uint8Array, outputIndex
: number): Uint8Array
Writes a 11-bit value to a byte array.
Parameters:
Name | Type | Description |
---|---|---|
value |
number | The value to write. |
bitOffset |
number | The offset of the value within the byte. |
littleEndian |
boolean | Whether to use little-endian format. |
output |
Uint8Array | The output byte array. |
outputIndex |
number | The index to start writing. |
Returns: Uint8Array
The output byte array.
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:1631
toBytes12
▸ Static
toBytes12(value
: number, bitOffset
: number, littleEndian
: boolean): Uint8Array
Converts a 12-bit value to a byte array.
Parameters:
Name | Type | Description |
---|---|---|
value |
number | The value to write. |
bitOffset |
number | The offset of the value within the byte. |
littleEndian |
boolean | Whether to use little-endian format. |
Returns: Uint8Array
The output byte array.
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:1673
▸ Static
toBytes12(value
: number, bitOffset
: number, littleEndian
: boolean, output
: Uint8Array, outputIndex
: number): Uint8Array
Writes a 12-bit value to a byte array.
Parameters:
Name | Type | Description |
---|---|---|
value |
number | The value to write. |
bitOffset |
number | The offset of the value within the byte. |
littleEndian |
boolean | Whether to use little-endian format. |
output |
Uint8Array | The output byte array. |
outputIndex |
number | The index to start writing. |
Returns: Uint8Array
The output byte array.
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:1685
toBytes13
▸ Static
toBytes13(value
: number, bitOffset
: number, littleEndian
: boolean): Uint8Array
Converts a 13-bit value to a byte array.
Parameters:
Name | Type | Description |
---|---|---|
value |
number | The value to write. |
bitOffset |
number | The offset of the value within the byte. |
littleEndian |
boolean | Whether to use little-endian format. |
Returns: Uint8Array
The output byte array.
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:1727
▸ Static
toBytes13(value
: number, bitOffset
: number, littleEndian
: boolean, output
: Uint8Array, outputIndex
: number): Uint8Array
Writes a 13-bit value to a byte array.
Parameters:
Name | Type | Description |
---|---|---|
value |
number | The value to write. |
bitOffset |
number | The offset of the value within the byte. |
littleEndian |
boolean | Whether to use little-endian format. |
output |
Uint8Array | The output byte array. |
outputIndex |
number | The index to start writing. |
Returns: Uint8Array
The output byte array.
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:1739
toBytes14
▸ Static
toBytes14(value
: number, bitOffset
: number, littleEndian
: boolean): Uint8Array
Converts a 14-bit value to a byte array.
Parameters:
Name | Type | Description |
---|---|---|
value |
number | The value to write. |
bitOffset |
number | The offset of the value within the byte. |
littleEndian |
boolean | Whether to use little-endian format. |
Returns: Uint8Array
The output byte array.
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:1781
▸ Static
toBytes14(value
: number, bitOffset
: number, littleEndian
: boolean, output
: Uint8Array, outputIndex
: number): Uint8Array
Writes a 14-bit value to a byte array.
Parameters:
Name | Type | Description |
---|---|---|
value |
number | The value to write. |
bitOffset |
number | The offset of the value within the byte. |
littleEndian |
boolean | Whether to use little-endian format. |
output |
Uint8Array | The output byte array. |
outputIndex |
number | The index to start writing. |
Returns: Uint8Array
The output byte array.
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:1793
toBytes15
▸ Static
toBytes15(value
: number, bitOffset
: number, littleEndian
: boolean): Uint8Array
Converts a 15-bit value to a byte array.
Parameters:
Name | Type | Description |
---|---|---|
value |
number | The value to write. |
bitOffset |
number | The offset of the value within the byte. |
littleEndian |
boolean | Whether to use little-endian format. |
Returns: Uint8Array
The output byte array.
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:1835
▸ Static
toBytes15(value
: number, bitOffset
: number, littleEndian
: boolean, output
: Uint8Array, outputIndex
: number): Uint8Array
Writes a 15-bit value to a byte array.
Parameters:
Name | Type | Description |
---|---|---|
value |
number | The value to write. |
bitOffset |
number | The offset of the value within the byte. |
littleEndian |
boolean | Whether to use little-endian format. |
output |
Uint8Array | The output byte array. |
outputIndex |
number | The index to start writing. |
Returns: Uint8Array
The output byte array.
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:1847
toBytes16
▸ Static
toBytes16(value
: number, littleEndian
: boolean): Uint8Array
Converts a 16-bit value to a byte array.
Parameters:
Name | Type | Description |
---|---|---|
value |
number | The value to write. |
littleEndian |
boolean | Whether to use little-endian format. |
Returns: Uint8Array
The output byte array.
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:1888
▸ Static
toBytes16(value
: number, littleEndian
: boolean, output
: Uint8Array, outputIndex
: number): Uint8Array
Writes a 16-bit value to a byte array.
Parameters:
Name | Type | Description |
---|---|---|
value |
number | The value to write. |
littleEndian |
boolean | Whether to use little-endian format. |
output |
Uint8Array | The output byte array. |
outputIndex |
number | The index to start writing. |
Returns: Uint8Array
The output byte array.
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:1899
toBytes17
▸ Static
toBytes17(value
: number, bitOffset
: number, littleEndian
: boolean): Uint8Array
Converts a 17-bit value to a byte array.
Parameters:
Name | Type | Description |
---|---|---|
value |
number | The value to write. |
bitOffset |
number | The offset of the value within the byte. |
littleEndian |
boolean | Whether to use little-endian format. |
Returns: Uint8Array
The output byte array.
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:1935
▸ Static
toBytes17(value
: number, bitOffset
: number, littleEndian
: boolean, output
: Uint8Array, outputIndex
: number): Uint8Array
Writes a 17-bit value to a byte array.
Parameters:
Name | Type | Description |
---|---|---|
value |
number | The value to write. |
bitOffset |
number | The offset of the value within the byte. |
littleEndian |
boolean | Whether to use little-endian format. |
output |
Uint8Array | The output byte array. |
outputIndex |
number | The index to start writing. |
Returns: Uint8Array
The output byte array.
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:1947
toBytes18
▸ Static
toBytes18(value
: number, bitOffset
: number, littleEndian
: boolean): Uint8Array
Converts an 18-bit value to a byte array.
Parameters:
Name | Type | Description |
---|---|---|
value |
number | The value to write. |
bitOffset |
number | The offset of the value within the byte. |
littleEndian |
boolean | Whether to use little-endian format. |
Returns: Uint8Array
The output byte array.
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:1986
▸ Static
toBytes18(value
: number, bitOffset
: number, littleEndian
: boolean, output
: Uint8Array, outputIndex
: number): Uint8Array
Writes an 18-bit value to a byte array.
Parameters:
Name | Type | Description |
---|---|---|
value |
number | The value to write. |
bitOffset |
number | The offset of the value within the byte. |
littleEndian |
boolean | Whether to use little-endian format. |
output |
Uint8Array | The output byte array. |
outputIndex |
number | The index to start writing. |
Returns: Uint8Array
The output byte array.
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:1998
toBytes19
▸ Static
toBytes19(value
: number, bitOffset
: number, littleEndian
: boolean): Uint8Array
Converts a 19-bit value to a byte array.
Parameters:
Name | Type | Description |
---|---|---|
value |
number | The value to write. |
bitOffset |
number | The offset of the value within the byte. |
littleEndian |
boolean | Whether to use little-endian format. |
Returns: Uint8Array
The output byte array.
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:2040
▸ Static
toBytes19(value
: number, bitOffset
: number, littleEndian
: boolean, output
: Uint8Array, outputIndex
: number): Uint8Array
Writes a 19-bit value to a byte array.
Parameters:
Name | Type | Description |
---|---|---|
value |
number | The value to write. |
bitOffset |
number | The offset of the value within the byte. |
littleEndian |
boolean | Whether to use little-endian format. |
output |
Uint8Array | The output byte array. |
outputIndex |
number | The index to start writing. |
Returns: Uint8Array
The output byte array.
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:2052
toBytes2
▸ Static
toBytes2(value
: number, bitOffset
: number): Uint8Array
Converts a 2-bit value to a byte array.
Parameters:
Name | Type | Description |
---|---|---|
value |
number | The value to write. |
bitOffset |
number | The offset of the value within the byte. |
Returns: Uint8Array
The output byte array.
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:2093
▸ Static
toBytes2(value
: number, bitOffset
: number, output
: Uint8Array, outputIndex
: number): Uint8Array
Writes a 2-bit value to a byte array.
Parameters:
Name | Type | Description |
---|---|---|
value |
number | The value to write. |
bitOffset |
number | The offset of the value within the byte. |
output |
Uint8Array | The output byte array. |
outputIndex |
number | The index to start writing. |
Returns: Uint8Array
The output byte array.
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:2104
toBytes20
▸ Static
toBytes20(value
: number, bitOffset
: number, littleEndian
: boolean): Uint8Array
Converts a 20-bit value to a byte array.
Parameters:
Name | Type | Description |
---|---|---|
value |
number | The value to write. |
bitOffset |
number | The offset of the value within the byte. |
littleEndian |
boolean | Whether to use little-endian format. |
Returns: Uint8Array
The output byte array.
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:2144
▸ Static
toBytes20(value
: number, bitOffset
: number, littleEndian
: boolean, output
: Uint8Array, outputIndex
: number): Uint8Array
Writes a 20-bit value to a byte array.
Parameters:
Name | Type | Description |
---|---|---|
value |
number | The value to write. |
bitOffset |
number | The offset of the value within the byte. |
littleEndian |
boolean | Whether to use little-endian format. |
output |
Uint8Array | The output byte array. |
outputIndex |
number | The index to start writing. |
Returns: Uint8Array
The output byte array.
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:2156
toBytes21
▸ Static
toBytes21(value
: number, bitOffset
: number, littleEndian
: boolean): Uint8Array
Converts a 21-bit value to a byte array.
Parameters:
Name | Type | Description |
---|---|---|
value |
number | The value to write. |
bitOffset |
number | The offset of the value within the byte. |
littleEndian |
boolean | Whether to use little-endian format. |
Returns: Uint8Array
The output byte array.
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:2198
▸ Static
toBytes21(value
: number, bitOffset
: number, littleEndian
: boolean, output
: Uint8Array, outputIndex
: number): Uint8Array
Writes a 21-bit value to a byte array.
Parameters:
Name | Type | Description |
---|---|---|
value |
number | The value to write. |
bitOffset |
number | The offset of the value within the byte. |
littleEndian |
boolean | Whether to use little-endian format. |
output |
Uint8Array | The output byte array. |
outputIndex |
number | The index to start writing. |
Returns: Uint8Array
The output byte array.
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:2210
toBytes22
▸ Static
toBytes22(value
: number, bitOffset
: number, littleEndian
: boolean): Uint8Array
Converts a 22-bit value to a byte array.
Parameters:
Name | Type | Description |
---|---|---|
value |
number | The value to write. |
bitOffset |
number | The offset of the value within the byte. |
littleEndian |
boolean | Whether to use little-endian format. |
Returns: Uint8Array
The output byte array.
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:2252
▸ Static
toBytes22(value
: number, bitOffset
: number, littleEndian
: boolean, output
: Uint8Array, outputIndex
: number): Uint8Array
Writes a 22-bit value to a byte array.
Parameters:
Name | Type | Description |
---|---|---|
value |
number | The value to write. |
bitOffset |
number | The offset of the value within the byte. |
littleEndian |
boolean | Whether to use little-endian format. |
output |
Uint8Array | The output byte array. |
outputIndex |
number | The index to start writing. |
Returns: Uint8Array
The output byte array.
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:2264
toBytes23
▸ Static
toBytes23(value
: number, bitOffset
: number, littleEndian
: boolean): Uint8Array
Converts a 23-bit value to a byte array.
Parameters:
Name | Type | Description |
---|---|---|
value |
number | The value to write. |
bitOffset |
number | The offset of the value within the byte. |
littleEndian |
boolean | Whether to use little-endian format. |
Returns: Uint8Array
The output byte array.
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:2306
▸ Static
toBytes23(value
: number, bitOffset
: number, littleEndian
: boolean, output
: Uint8Array, outputIndex
: number): Uint8Array
Writes a 23-bit value to a byte array.
Parameters:
Name | Type | Description |
---|---|---|
value |
number | The value to write. |
bitOffset |
number | The offset of the value within the byte. |
littleEndian |
boolean | Whether to use little-endian format. |
output |
Uint8Array | The output byte array. |
outputIndex |
number | The index to start writing. |
Returns: Uint8Array
The output byte array.
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:2318
toBytes24
▸ Static
toBytes24(value
: number, littleEndian
: boolean): Uint8Array
Converts a 24-bit value to a byte array.
Parameters:
Name | Type | Description |
---|---|---|
value |
number | The value to write. |
littleEndian |
boolean | Whether to use little-endian format. |
Returns: Uint8Array
The output byte array.
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:2359
▸ Static
toBytes24(value
: number, littleEndian
: boolean, output
: Uint8Array, outputIndex
: number): Uint8Array
Writes a 24-bit value to a byte array.
Parameters:
Name | Type | Description |
---|---|---|
value |
number | The value to write. |
littleEndian |
boolean | Whether to use little-endian format. |
output |
Uint8Array | The output byte array. |
outputIndex |
number | The index to start writing. |
Returns: Uint8Array
The output byte array.
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:2370
toBytes3
▸ Static
toBytes3(value
: number, bitOffset
: number): Uint8Array
Converts a 3-bit value to a byte array.
Parameters:
Name | Type | Description |
---|---|---|
value |
number | The value to write. |
bitOffset |
number | The offset of the value within the byte. |
Returns: Uint8Array
The output byte array.
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:2407
▸ Static
toBytes3(value
: number, bitOffset
: number, output
: Uint8Array, outputIndex
: number): Uint8Array
Writes a 3-bit value to a byte array.
Parameters:
Name | Type | Description |
---|---|---|
value |
number | The value to write. |
bitOffset |
number | The offset of the value within the byte. |
output |
Uint8Array | The output byte array. |
outputIndex |
number | The index to start writing. |
Returns: Uint8Array
The output byte array.
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:2418
toBytes32
▸ Static
toBytes32(value
: number, littleEndian
: boolean): Uint8Array
Converts a 32-bit value to a byte array.
Parameters:
Name | Type | Description |
---|---|---|
value |
number | The value to write. |
littleEndian |
boolean | Whether to use little-endian format. |
Returns: Uint8Array
The output byte array.
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:2457
▸ Static
toBytes32(value
: number, littleEndian
: boolean, output
: Uint8Array, outputIndex
: number): Uint8Array
Writes a 32-bit value to a byte array.
Parameters:
Name | Type | Description |
---|---|---|
value |
number | The value to write. |
littleEndian |
boolean | Whether to use little-endian format. |
output |
Uint8Array | The output byte array. |
outputIndex |
number | The index to start writing. |
Returns: Uint8Array
The output byte array.
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:2468
toBytes4
▸ Static
toBytes4(value
: number, bitOffset
: number): Uint8Array
Converts a 4-bit value to a byte array.
Parameters:
Name | Type | Description |
---|---|---|
value |
number | The value to write. |
bitOffset |
number | The offset of the value within the byte. |
Returns: Uint8Array
The output byte array.
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:2507
▸ Static
toBytes4(value
: number, bitOffset
: number, output
: Uint8Array, outputIndex
: number): Uint8Array
Writes a 4-bit value to a byte array.
Parameters:
Name | Type | Description |
---|---|---|
value |
number | The value to write. |
bitOffset |
number | The offset of the value within the byte. |
output |
Uint8Array | The output byte array. |
outputIndex |
number | The index to start writing. |
Returns: Uint8Array
The output byte array.
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:2518
toBytes40
▸ Static
toBytes40(value
: number, littleEndian
: boolean): Uint8Array
Converts a 40-bit value to a byte array.
Parameters:
Name | Type | Description |
---|---|---|
value |
number | The value to write. |
littleEndian |
boolean | Whether to use little-endian format. |
Returns: Uint8Array
The output byte array.
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:2557
▸ Static
toBytes40(value
: number, littleEndian
: boolean, output
: Uint8Array, outputIndex
: number): Uint8Array
Writes a 40-bit value to a byte array.
Parameters:
Name | Type | Description |
---|---|---|
value |
number | The value to write. |
littleEndian |
boolean | Whether to use little-endian format. |
output |
Uint8Array | The output byte array. |
outputIndex |
number | The index to start writing. |
Returns: Uint8Array
The output byte array.
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:2568
toBytes48
▸ Static
toBytes48(value
: number, littleEndian
: boolean): Uint8Array
Converts a 48-bit value to a byte array.
Parameters:
Name | Type | Description |
---|---|---|
value |
number | The value to write. |
littleEndian |
boolean | Whether to use little-endian format. |
Returns: Uint8Array
The output byte array.
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:2609
▸ Static
toBytes48(value
: number, littleEndian
: boolean, output
: Uint8Array, outputIndex
: number): Uint8Array
Writes a 48-bit value to a byte array.
Parameters:
Name | Type | Description |
---|---|---|
value |
number | The value to write. |
littleEndian |
boolean | Whether to use little-endian format. |
output |
Uint8Array | The output byte array. |
outputIndex |
number | The index to start writing. |
Returns: Uint8Array
The output byte array.
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:2620
toBytes5
▸ Static
toBytes5(value
: number, bitOffset
: number): Uint8Array
Converts a 5-bit value to a byte array.
Parameters:
Name | Type | Description |
---|---|---|
value |
number | The value to write. |
bitOffset |
number | The offset of the value within the byte. |
Returns: Uint8Array
The output byte array.
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:2663
▸ Static
toBytes5(value
: number, bitOffset
: number, output
: Uint8Array, outputIndex
: number): Uint8Array
Writes a 5-bit value to a byte array.
Parameters:
Name | Type | Description |
---|---|---|
value |
number | The value to write. |
bitOffset |
number | The offset of the value within the byte. |
output |
Uint8Array | The output byte array. |
outputIndex |
number | The index to start writing. |
Returns: Uint8Array
The output byte array.
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:2674
toBytes56
▸ Static
toBytes56(value
: number, littleEndian
: boolean): Uint8Array
Converts a 56-bit value to a byte array.
Parameters:
Name | Type | Description |
---|---|---|
value |
number | The value to write. |
littleEndian |
boolean | Whether to use little-endian format. |
Returns: Uint8Array
The output byte array.
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:2713
▸ Static
toBytes56(value
: number, littleEndian
: boolean, output
: Uint8Array, outputIndex
: number): Uint8Array
Writes a 56-bit value to a byte array.
Parameters:
Name | Type | Description |
---|---|---|
value |
number | The value to write. |
littleEndian |
boolean | Whether to use little-endian format. |
output |
Uint8Array | The output byte array. |
outputIndex |
number | The index to start writing. |
Returns: Uint8Array
The output byte array.
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:2724
toBytes6
▸ Static
toBytes6(value
: number, bitOffset
: number): Uint8Array
Converts a 6-bit value to a byte array.
Parameters:
Name | Type | Description |
---|---|---|
value |
number | The value to write. |
bitOffset |
number | The offset of the value within the byte. |
Returns: Uint8Array
The output byte array.
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:2769
▸ Static
toBytes6(value
: number, bitOffset
: number, output
: Uint8Array, outputIndex
: number): Uint8Array
Writes a 6-bit value to a byte array.
Parameters:
Name | Type | Description |
---|---|---|
value |
number | The value to write. |
bitOffset |
number | The offset of the value within the byte. |
output |
Uint8Array | The output byte array. |
outputIndex |
number | The index to start writing. |
Returns: Uint8Array
The output byte array.
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:2780
toBytes64
▸ Static
toBytes64(value
: number, littleEndian
: boolean): Uint8Array
Converts a 64-bit value to a byte array.
Parameters:
Name | Type | Description |
---|---|---|
value |
number | The value to write. |
littleEndian |
boolean | Whether to use little-endian format. |
Returns: Uint8Array
The output byte array.
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:2819
▸ Static
toBytes64(value
: number, littleEndian
: boolean, output
: Uint8Array, outputIndex
: number): Uint8Array
Writes a 64-bit value to a byte array.
Parameters:
Name | Type | Description |
---|---|---|
value |
number | The value to write. |
littleEndian |
boolean | Whether to use little-endian format. |
output |
Uint8Array | The output byte array. |
outputIndex |
number | The index to start writing. |
Returns: Uint8Array
The output byte array.
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:2830
toBytes7
▸ Static
toBytes7(value
: number, bitOffset
: number): Uint8Array
Converts a 7-bit value to a byte array.
Parameters:
Name | Type | Description |
---|---|---|
value |
number | The value to write. |
bitOffset |
number | The offset of the value within the byte. |
Returns: Uint8Array
The output byte array.
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:2877
▸ Static
toBytes7(value
: number, bitOffset
: number, output
: Uint8Array, outputIndex
: number): Uint8Array
Writes a 7-bit value to a byte array.
Parameters:
Name | Type | Description |
---|---|---|
value |
number | The value to write. |
bitOffset |
number | The offset of the value within the byte. |
output |
Uint8Array | The output byte array. |
outputIndex |
number | The index to start writing. |
Returns: Uint8Array
The output byte array.
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:2888
toBytes8
▸ Static
toBytes8(value
: number): Uint8Array
Converts an 8-bit value to a byte array.
Parameters:
Name | Type | Description |
---|---|---|
value |
number | The value to write. |
Returns: Uint8Array
The output byte array.
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:2926
▸ Static
toBytes8(value
: number, output
: Uint8Array, outputIndex
: number): Uint8Array
Writes an 8-bit value to a byte array.
Parameters:
Name | Type | Description |
---|---|---|
value |
number | The value to write. |
output |
Uint8Array | The output byte array. |
outputIndex |
number | The index to start writing. |
Returns: Uint8Array
The output byte array.
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:2936
toBytes9
▸ Static
toBytes9(value
: number, bitOffset
: number, littleEndian
: boolean): Uint8Array
Converts a 9-bit value to a byte array.
Parameters:
Name | Type | Description |
---|---|---|
value |
number | The value to write. |
bitOffset |
number | The offset of the value within the byte. |
littleEndian |
boolean | Whether to use little-endian format. |
Returns: Uint8Array
The output byte array.
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:2964
▸ Static
toBytes9(value
: number, bitOffset
: number, littleEndian
: boolean, output
: Uint8Array, outputIndex
: number): Uint8Array
Writes a 9-bit value to a byte array.
Parameters:
Name | Type | Description |
---|---|---|
value |
number | The value to write. |
bitOffset |
number | The offset of the value within the byte. |
littleEndian |
boolean | Whether to use little-endian format. |
output |
Uint8Array | The output byte array. |
outputIndex |
number | The index to start writing. |
Returns: Uint8Array
The output byte array.
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:2976
transform
▸ Static
transform(inputFrame
: Uint8Array, outputFrame
: Uint8Array, width
: number, height
: number, stride
: number, rotation
: number): void
Transforms a byte containing a 2D plane (rotates 90, 180, 270)
Parameters:
Name | Type | Description |
---|---|---|
inputFrame |
Uint8Array | The inputFrame. |
outputFrame |
Uint8Array | The outputFrame. |
width |
number | The width. |
height |
number | The height. |
stride |
number | The stride. |
rotation |
number | The rotation. |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:3017
▸ Static
transform(inputFrame
: Uint8Array, outputFrame
: Uint8Array, width
: number, height
: number, stride
: number, rotation
: number, inputStart
: number, outputStart
: number): void
Transforms a byte containing a 2D plane (rotates 90, 180, 270)
Parameters:
Name | Type | Description |
---|---|---|
inputFrame |
Uint8Array | The inputFrame. |
outputFrame |
Uint8Array | The outputFrame. |
width |
number | The width. |
height |
number | The height. |
stride |
number | The stride. |
rotation |
number | The rotation. |
inputStart |
number | The inputStart. |
outputStart |
number | The outputStart. |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:3031
▸ Static
transform(inputFrame
: Uint8Array, outputFrame
: Uint8Array, width
: number, height
: number, stride
: number, rotation
: number, inputStart
: number, outputStart
: number, chunkLength
: number): void
Transforms a byte containing a 2D plane (rotates 90, 180, 270). When transforming interleaved planes. Set the chunkLength to the number of planes.
Parameters:
Name | Type | Description |
---|---|---|
inputFrame |
Uint8Array | The inputFrame. |
outputFrame |
Uint8Array | The outputFrame. |
width |
number | The width. |
height |
number | The height. |
stride |
number | The stride. |
rotation |
number | The rotation. |
inputStart |
number | The inputStart. |
outputStart |
number | The outputStart. |
chunkLength |
number | The chunkLength. |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:3048
▸ Static
transform(inputFrame
: Uint8Array, outputFrame
: Uint8Array, width
: number, height
: number, stride
: number, rotation
: number, start
: number): void
Transforms a byte containing a 2D plane (rotates 90, 180, 270)
Parameters:
Name | Type | Description |
---|---|---|
inputFrame |
Uint8Array | The inputFrame. |
outputFrame |
Uint8Array | The outputFrame. |
width |
number | The width. |
height |
number | The height. |
stride |
number | The stride. |
rotation |
number | The rotation. |
start |
number | Start position for both input and output frame |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:3061
tryFromBytes1
▸ Static
tryFromBytes1(input
: Uint8Array, inputIndex
: number, bitOffset
: number, value
: Holder<boolean>): boolean
Tries to read a 1-bit value from a byte array.
Parameters:
Name | Type | Description |
---|---|---|
input |
Uint8Array | The input byte array. |
inputIndex |
number | The index to start reading. |
bitOffset |
number | The offset of the value within the byte. |
value |
Holder<boolean> | The value. |
Returns: boolean
true
if the index is valid and the value was read; otherwise, false
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:3181
tryFromBytes10
▸ Static
tryFromBytes10(input
: Uint8Array, inputIndex
: number, bitOffset
: number, value
: Holder<number>): boolean
Tries to read a 10-bit value from a byte array.
Parameters:
Name | Type | Description |
---|---|---|
input |
Uint8Array | The input byte array. |
inputIndex |
number | The index to start reading. |
bitOffset |
number | The offset of the value within the byte. |
value |
Holder<number> | The value. |
Returns: boolean
true
if the index is valid and the value was read; otherwise, false
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:3206
tryFromBytes11
▸ Static
tryFromBytes11(input
: Uint8Array, inputIndex
: number, bitOffset
: number, value
: Holder<number>): boolean
Tries to read a 11-bit value from a byte array.
Parameters:
Name | Type | Description |
---|---|---|
input |
Uint8Array | The input byte array. |
inputIndex |
number | The index to start reading. |
bitOffset |
number | The offset of the value within the byte. |
value |
Holder<number> | The value. |
Returns: boolean
true
if the index is valid and the value was read; otherwise, false
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:3238
tryFromBytes12
▸ Static
tryFromBytes12(input
: Uint8Array, inputIndex
: number, bitOffset
: number, value
: Holder<number>): boolean
Tries to read a 12-bit value from a byte array.
Parameters:
Name | Type | Description |
---|---|---|
input |
Uint8Array | The input byte array. |
inputIndex |
number | The index to start reading. |
bitOffset |
number | The offset of the value within the byte. |
value |
Holder<number> | The value. |
Returns: boolean
true
if the index is valid and the value was read; otherwise, false
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:3270
tryFromBytes13
▸ Static
tryFromBytes13(input
: Uint8Array, inputIndex
: number, bitOffset
: number, value
: Holder<number>): boolean
Tries to read a 13-bit value from a byte array.
Parameters:
Name | Type | Description |
---|---|---|
input |
Uint8Array | The input byte array. |
inputIndex |
number | The index to start reading. |
bitOffset |
number | The offset of the value within the byte. |
value |
Holder<number> | The value. |
Returns: boolean
true
if the index is valid and the value was read; otherwise, false
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:3302
tryFromBytes14
▸ Static
tryFromBytes14(input
: Uint8Array, inputIndex
: number, bitOffset
: number, value
: Holder<number>): boolean
Tries to read a 14-bit value from a byte array.
Parameters:
Name | Type | Description |
---|---|---|
input |
Uint8Array | The input byte array. |
inputIndex |
number | The index to start reading. |
bitOffset |
number | The offset of the value within the byte. |
value |
Holder<number> | The value. |
Returns: boolean
true
if the index is valid and the value was read; otherwise, false
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:3334
tryFromBytes15
▸ Static
tryFromBytes15(input
: Uint8Array, inputIndex
: number, bitOffset
: number, value
: Holder<number>): boolean
Tries to read a 15-bit value from a byte array.
Parameters:
Name | Type | Description |
---|---|---|
input |
Uint8Array | The input byte array. |
inputIndex |
number | The index to start reading. |
bitOffset |
number | The offset of the value within the byte. |
value |
Holder<number> | The value. |
Returns: boolean
true
if the index is valid and the value was read; otherwise, false
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:3366
tryFromBytes16
▸ Static
tryFromBytes16(input
: Uint8Array, inputIndex
: number, littleEndian
: boolean, value
: Holder<number>): boolean
Tries to read a 16-bit value from a byte array.
Parameters:
Name | Type | Description |
---|---|---|
input |
Uint8Array | The input byte array. |
inputIndex |
number | The index to start reading. |
littleEndian |
boolean | Whether to use little-endian format. |
value |
Holder<number> | The value. |
Returns: boolean
true
if the index is valid and the value was read; otherwise, false
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:3398
tryFromBytes17
▸ Static
tryFromBytes17(input
: Uint8Array, inputIndex
: number, bitOffset
: number, value
: Holder<number>): boolean
Tries to read a 17-bit value from a byte array.
Parameters:
Name | Type | Description |
---|---|---|
input |
Uint8Array | The input byte array. |
inputIndex |
number | The index to start reading. |
bitOffset |
number | The offset of the value within the byte. |
value |
Holder<number> | The value. |
Returns: boolean
true
if the index is valid and the value was read; otherwise, false
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:3422
tryFromBytes18
▸ Static
tryFromBytes18(input
: Uint8Array, inputIndex
: number, bitOffset
: number, value
: Holder<number>): boolean
Tries to read a 18-bit value from a byte array.
Parameters:
Name | Type | Description |
---|---|---|
input |
Uint8Array | The input byte array. |
inputIndex |
number | The index to start reading. |
bitOffset |
number | The offset of the value within the byte. |
value |
Holder<number> | The value. |
Returns: boolean
true
if the index is valid and the value was read; otherwise, false
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:3447
tryFromBytes19
▸ Static
tryFromBytes19(input
: Uint8Array, inputIndex
: number, bitOffset
: number, value
: Holder<number>): boolean
Tries to read a 19-bit value from a byte array.
Parameters:
Name | Type | Description |
---|---|---|
input |
Uint8Array | The input byte array. |
inputIndex |
number | The index to start reading. |
bitOffset |
number | The offset of the value within the byte. |
value |
Holder<number> | The value. |
Returns: boolean
true
if the index is valid and the value was read; otherwise, false
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:3479
tryFromBytes2
▸ Static
tryFromBytes2(input
: Uint8Array, inputIndex
: number, bitOffset
: number, value
: Holder<number>): boolean
Tries to read a 2-bit value from a byte array.
Parameters:
Name | Type | Description |
---|---|---|
input |
Uint8Array | The input byte array. |
inputIndex |
number | The index to start reading. |
bitOffset |
number | The offset of the value within the byte. |
value |
Holder<number> | The value. |
Returns: boolean
true
if the index is valid and the value was read; otherwise, false
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:3504
tryFromBytes20
▸ Static
tryFromBytes20(input
: Uint8Array, inputIndex
: number, bitOffset
: number, value
: Holder<number>): boolean
Tries to read a 20-bit value from a byte array.
Parameters:
Name | Type | Description |
---|---|---|
input |
Uint8Array | The input byte array. |
inputIndex |
number | The index to start reading. |
bitOffset |
number | The offset of the value within the byte. |
value |
Holder<number> | The value. |
Returns: boolean
true
if the index is valid and the value was read; otherwise, false
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:3529
tryFromBytes21
▸ Static
tryFromBytes21(input
: Uint8Array, inputIndex
: number, bitOffset
: number, value
: Holder<number>): boolean
Tries to read a 21-bit value from a byte array.
Parameters:
Name | Type | Description |
---|---|---|
input |
Uint8Array | The input byte array. |
inputIndex |
number | The index to start reading. |
bitOffset |
number | The offset of the value within the byte. |
value |
Holder<number> | The value. |
Returns: boolean
true
if the index is valid and the value was read; otherwise, false
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:3554
tryFromBytes22
▸ Static
tryFromBytes22(input
: Uint8Array, inputIndex
: number, bitOffset
: number, value
: Holder<number>): boolean
Tries to read a 22-bit value from a byte array.
Parameters:
Name | Type | Description |
---|---|---|
input |
Uint8Array | The input byte array. |
inputIndex |
number | The index to start reading. |
bitOffset |
number | The offset of the value within the byte. |
value |
Holder<number> | The value. |
Returns: boolean
true
if the index is valid and the value was read; otherwise, false
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:3579
tryFromBytes23
▸ Static
tryFromBytes23(input
: Uint8Array, inputIndex
: number, bitOffset
: number, value
: Holder<number>): boolean
Tries to read a 23-bit value from a byte array.
Parameters:
Name | Type | Description |
---|---|---|
input |
Uint8Array | The input byte array. |
inputIndex |
number | The index to start reading. |
bitOffset |
number | The offset of the value within the byte. |
value |
Holder<number> | The value. |
Returns: boolean
true
if the index is valid and the value was read; otherwise, false
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:3604
tryFromBytes24
▸ Static
tryFromBytes24(input
: Uint8Array, inputIndex
: number, littleEndian
: boolean, value
: Holder<number>): boolean
Tries to read a 24-bit value from a byte array.
Parameters:
Name | Type | Description |
---|---|---|
input |
Uint8Array | The input byte array. |
inputIndex |
number | The index to start reading. |
littleEndian |
boolean | Whether to use little-endian format. |
value |
Holder<number> | The value. |
Returns: boolean
true
if the index is valid and the value was read; otherwise, false
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:3629
tryFromBytes3
▸ Static
tryFromBytes3(input
: Uint8Array, inputIndex
: number, bitOffset
: number, value
: Holder<number>): boolean
Tries to read a 3-bit value from a byte array.
Parameters:
Name | Type | Description |
---|---|---|
input |
Uint8Array | The input byte array. |
inputIndex |
number | The index to start reading. |
bitOffset |
number | The offset of the value within the byte. |
value |
Holder<number> | The value. |
Returns: boolean
true
if the index is valid and the value was read; otherwise, false
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:3653
tryFromBytes32
▸ Static
tryFromBytes32(input
: Uint8Array, inputIndex
: number, littleEndian
: boolean, value
: Holder<number>): boolean
Tries to read a 32-bit value from a byte array.
Parameters:
Name | Type | Description |
---|---|---|
input |
Uint8Array | The input byte array. |
inputIndex |
number | The index to start reading. |
littleEndian |
boolean | Whether to use little-endian format. |
value |
Holder<number> | The value. |
Returns: boolean
true
if the index is valid and the value was read; otherwise, false
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:3678
tryFromBytes4
▸ Static
tryFromBytes4(input
: Uint8Array, inputIndex
: number, bitOffset
: number, value
: Holder<number>): boolean
Tries to read a 4-bit value from a byte array.
Parameters:
Name | Type | Description |
---|---|---|
input |
Uint8Array | The input byte array. |
inputIndex |
number | The index to start reading. |
bitOffset |
number | The offset of the value within the byte. |
value |
Holder<number> | The value. |
Returns: boolean
true
if the index is valid and the value was read; otherwise, false
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:3702
tryFromBytes40
▸ Static
tryFromBytes40(input
: Uint8Array, inputIndex
: number, littleEndian
: boolean, value
: Holder<number>): boolean
Tries to read a 40-bit value from a byte array.
Parameters:
Name | Type | Description |
---|---|---|
input |
Uint8Array | The input byte array. |
inputIndex |
number | The index to start reading. |
littleEndian |
boolean | Whether to use little-endian format. |
value |
Holder<number> | The value. |
Returns: boolean
true
if the index is valid and the value was read; otherwise, false
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:3727
tryFromBytes48
▸ Static
tryFromBytes48(input
: Uint8Array, inputIndex
: number, littleEndian
: boolean, value
: Holder<number>): boolean
Tries to read a 48-bit value from a byte array.
Parameters:
Name | Type | Description |
---|---|---|
input |
Uint8Array | The input byte array. |
inputIndex |
number | The index to start reading. |
littleEndian |
boolean | Whether to use little-endian format. |
value |
Holder<number> | The value. |
Returns: boolean
true
if the index is valid and the value was read; otherwise, false
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:3751
tryFromBytes5
▸ Static
tryFromBytes5(input
: Uint8Array, inputIndex
: number, bitOffset
: number, value
: Holder<number>): boolean
Tries to read a 5-bit value from a byte array.
Parameters:
Name | Type | Description |
---|---|---|
input |
Uint8Array | The input byte array. |
inputIndex |
number | The index to start reading. |
bitOffset |
number | The offset of the value within the byte. |
value |
Holder<number> | The value. |
Returns: boolean
true
if the index is valid and the value was read; otherwise, false
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:3775
tryFromBytes56
▸ Static
tryFromBytes56(input
: Uint8Array, inputIndex
: number, littleEndian
: boolean, value
: Holder<number>): boolean
Tries to read a 56-bit value from a byte array.
Parameters:
Name | Type | Description |
---|---|---|
input |
Uint8Array | The input byte array. |
inputIndex |
number | The index to start reading. |
littleEndian |
boolean | Whether to use little-endian format. |
value |
Holder<number> | The value. |
Returns: boolean
true
if the index is valid and the value was read; otherwise, false
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:3800
tryFromBytes6
▸ Static
tryFromBytes6(input
: Uint8Array, inputIndex
: number, bitOffset
: number, value
: Holder<number>): boolean
Tries to read a 6-bit value from a byte array.
Parameters:
Name | Type | Description |
---|---|---|
input |
Uint8Array | The input byte array. |
inputIndex |
number | The index to start reading. |
bitOffset |
number | The offset of the value within the byte. |
value |
Holder<number> | The value. |
Returns: boolean
true
if the index is valid and the value was read; otherwise, false
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:3824
tryFromBytes64
▸ Static
tryFromBytes64(input
: Uint8Array, inputIndex
: number, littleEndian
: boolean, value
: Holder<number>): boolean
Tries to read a 64-bit value from a byte array.
Parameters:
Name | Type | Description |
---|---|---|
input |
Uint8Array | The input byte array. |
inputIndex |
number | The index to start reading. |
littleEndian |
boolean | Whether to use little-endian format. |
value |
Holder<number> | The value. |
Returns: boolean
true
if the index is valid and the value was read; otherwise, false
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:3849
tryFromBytes7
▸ Static
tryFromBytes7(input
: Uint8Array, inputIndex
: number, bitOffset
: number, value
: Holder<number>): boolean
Tries to read a 7-bit value from a byte array.
Parameters:
Name | Type | Description |
---|---|---|
input |
Uint8Array | The input byte array. |
inputIndex |
number | The index to start reading. |
bitOffset |
number | The offset of the value within the byte. |
value |
Holder<number> | The value. |
Returns: boolean
true
if the index is valid and the value was read; otherwise, false
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:3873
tryFromBytes8
▸ Static
tryFromBytes8(input
: Uint8Array, inputIndex
: number, value
: Holder<number>): boolean
Tries to read an 8-bit value from a byte array.
Parameters:
Name | Type | Description |
---|---|---|
input |
Uint8Array | The input byte array. |
inputIndex |
number | The index to start reading. |
value |
Holder<number> | The value. |
Returns: boolean
true
if the index is valid and the value was read; otherwise, false
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:3897
tryFromBytes9
▸ Static
tryFromBytes9(input
: Uint8Array, inputIndex
: number, bitOffset
: number, value
: Holder<number>): boolean
Tries to read a 9-bit value from a byte array.
Parameters:
Name | Type | Description |
---|---|---|
input |
Uint8Array | The input byte array. |
inputIndex |
number | The index to start reading. |
bitOffset |
number | The offset of the value within the byte. |
value |
Holder<number> | The value. |
Returns: boolean
true
if the index is valid and the value was read; otherwise, false
Defined in: Generated/TypeScript/fm.liveswitch/Binary.ts:3921