Function fromBuffer

  • Converts an U16 value to a number

    Parameters

    • buffer: Uint8Array

      The buffer to read from

    • offset: number

      The optional offset in the buffer at which to start reading the U16 value (default: 0)

    Returns {
        offset: number;
        value: U16_t;
    }

    The U16 representation of the bytes

    • offset: number
    • value: U16_t