Function bytesToF32

  • Converts a Uint8Array into a 32-bit floating-point number (f32).

    Parameters

    • arr: Uint8Array

      The array to convert

    • offset: number = 0

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

    Returns number

    The deserialized f32 value