MCPcopy Create free account
hub / github.com/Timic3/rw-parser / readUInt32LE

Method readUInt32LE

src/renderware/utils/ImageDecoder.ts:8–15  ·  view source on GitHub ↗
(buf: Uint8Array, offset: number)

Source from the content-addressed store, hash-verified

6 }
7
8 static readUInt32LE(buf: Uint8Array, offset: number): number {
9 return (
10 buf[offset] |
11 (buf[offset + 1] << 8) |
12 (buf[offset + 2] << 16) |
13 (buf[offset + 3] << 24)
14 );
15 }
16
17 static decode565(bits: number): [number, number, number] {
18 const r = (bits >> 11) & 0b11111;

Callers 4

readUint32Method · 0.80
bc1Method · 0.80
bc2Method · 0.80
bc3Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected