(readable: IReadable)
| 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); |
no test coverage detected