MCPcopy Create free account
hub / github.com/CoderLine/alphaTab / readFloat32BE

Method readFloat32BE

packages/alphatab/src/io/IOHelper.ts:17–22  ·  view source on GitHub ↗
(readable: IReadable)

Source from the content-addressed store, hash-verified

15 }
16
17 public static readFloat32BE(readable: IReadable): number {
18 const bits = new Uint8Array(4);
19 readable.read(bits, 0, bits.length);
20 bits.reverse();
21 return TypeConversions.bytesToFloat32LE(bits);
22 }
23
24 public static readFloat64BE(readable: IReadable): number {
25 const bits = new Uint8Array(8);

Callers 1

_readMethod · 0.80

Calls 3

reverseMethod · 0.95
readMethod · 0.65
bytesToFloat32LEMethod · 0.45

Tested by

no test coverage detected