Search Results for

    / fm / liveswitch / Binary

    Class: Binary

    fm.liveswitch.Binary

    Common binary methods.

    Table of contents

    Constructors

    • constructor

    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

    ▸ StaticbitStringToBytes(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

    ▸ StaticbitStringToBytes(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

    ▸ StaticbitStringToBytes(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

    ▸ StaticbitStringToBytes(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

    ▸ StaticbytesToBitString(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

    ▸ StaticbytesToBitString(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

    ▸ StaticbytesToBitString(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

    ▸ StaticbytesToBitString(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

    ▸ Staticdeinterleave(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

    ▸ Staticdeinterleave(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

    ▸ Staticdeinterleave(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

    ▸ StaticdeinterleaveTransform(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

    ▸ StaticdeinterleaveTransform(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

    ▸ StaticdeinterleaveTransform(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

    ▸ StaticfromBytes1(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

    ▸ StaticfromBytes10(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

    ▸ StaticfromBytes11(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

    ▸ StaticfromBytes12(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

    ▸ StaticfromBytes13(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

    ▸ StaticfromBytes14(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

    ▸ StaticfromBytes15(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

    ▸ StaticfromBytes16(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

    ▸ StaticfromBytes17(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

    ▸ StaticfromBytes18(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

    ▸ StaticfromBytes19(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

    ▸ StaticfromBytes2(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

    ▸ StaticfromBytes20(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

    ▸ StaticfromBytes21(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

    ▸ StaticfromBytes22(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

    ▸ StaticfromBytes23(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

    ▸ StaticfromBytes24(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

    ▸ StaticfromBytes3(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

    ▸ StaticfromBytes32(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

    ▸ StaticfromBytes4(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

    ▸ StaticfromBytes40(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

    ▸ StaticfromBytes48(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

    ▸ StaticfromBytes5(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

    ▸ StaticfromBytes56(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

    ▸ StaticfromBytes6(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

    ▸ StaticfromBytes64(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

    ▸ StaticfromBytes7(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

    ▸ StaticfromBytes8(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

    ▸ StaticfromBytes9(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

    ▸ Staticinterleave(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

    ▸ Staticinterleave(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

    ▸ Staticinterleave(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

    ▸ StaticinterleaveTransform(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

    ▸ StaticinterleaveTransform(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

    ▸ StaticinterleaveTransform(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

    ▸ StatictoBytes1(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

    ▸ StatictoBytes1(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

    ▸ StatictoBytes10(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

    ▸ StatictoBytes10(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

    ▸ StatictoBytes11(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

    ▸ StatictoBytes11(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

    ▸ StatictoBytes12(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

    ▸ StatictoBytes12(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

    ▸ StatictoBytes13(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

    ▸ StatictoBytes13(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

    ▸ StatictoBytes14(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

    ▸ StatictoBytes14(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

    ▸ StatictoBytes15(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

    ▸ StatictoBytes15(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

    ▸ StatictoBytes16(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

    ▸ StatictoBytes16(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

    ▸ StatictoBytes17(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

    ▸ StatictoBytes17(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

    ▸ StatictoBytes18(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

    ▸ StatictoBytes18(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

    ▸ StatictoBytes19(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

    ▸ StatictoBytes19(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

    ▸ StatictoBytes2(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

    ▸ StatictoBytes2(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

    ▸ StatictoBytes20(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

    ▸ StatictoBytes20(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

    ▸ StatictoBytes21(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

    ▸ StatictoBytes21(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

    ▸ StatictoBytes22(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

    ▸ StatictoBytes22(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

    ▸ StatictoBytes23(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

    ▸ StatictoBytes23(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

    ▸ StatictoBytes24(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

    ▸ StatictoBytes24(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

    ▸ StatictoBytes3(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

    ▸ StatictoBytes3(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

    ▸ StatictoBytes32(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

    ▸ StatictoBytes32(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

    ▸ StatictoBytes4(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

    ▸ StatictoBytes4(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

    ▸ StatictoBytes40(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

    ▸ StatictoBytes40(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

    ▸ StatictoBytes48(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

    ▸ StatictoBytes48(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

    ▸ StatictoBytes5(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

    ▸ StatictoBytes5(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

    ▸ StatictoBytes56(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

    ▸ StatictoBytes56(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

    ▸ StatictoBytes6(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

    ▸ StatictoBytes6(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

    ▸ StatictoBytes64(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

    ▸ StatictoBytes64(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

    ▸ StatictoBytes7(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

    ▸ StatictoBytes7(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

    ▸ StatictoBytes8(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

    ▸ StatictoBytes8(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

    ▸ StatictoBytes9(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

    ▸ StatictoBytes9(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

    ▸ Statictransform(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

    ▸ Statictransform(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

    ▸ Statictransform(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

    ▸ Statictransform(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

    ▸ StatictryFromBytes1(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

    ▸ StatictryFromBytes10(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

    ▸ StatictryFromBytes11(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

    ▸ StatictryFromBytes12(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

    ▸ StatictryFromBytes13(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

    ▸ StatictryFromBytes14(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

    ▸ StatictryFromBytes15(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

    ▸ StatictryFromBytes16(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

    ▸ StatictryFromBytes17(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

    ▸ StatictryFromBytes18(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

    ▸ StatictryFromBytes19(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

    ▸ StatictryFromBytes2(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

    ▸ StatictryFromBytes20(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

    ▸ StatictryFromBytes21(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

    ▸ StatictryFromBytes22(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

    ▸ StatictryFromBytes23(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

    ▸ StatictryFromBytes24(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

    ▸ StatictryFromBytes3(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

    ▸ StatictryFromBytes32(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

    ▸ StatictryFromBytes4(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

    ▸ StatictryFromBytes40(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

    ▸ StatictryFromBytes48(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

    ▸ StatictryFromBytes5(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

    ▸ StatictryFromBytes56(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

    ▸ StatictryFromBytes6(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

    ▸ StatictryFromBytes64(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

    ▸ StatictryFromBytes7(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

    ▸ StatictryFromBytes8(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

    ▸ StatictryFromBytes9(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

    In This Article
    Back to top Copyright © LiveSwitch Inc. All Rights Reserved. Doc build for LiveSwitch v1.21.4