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

Method readUInt16LE

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

Source from the content-addressed store, hash-verified

2export class ImageDecoder {
3
4 static readUInt16LE(buf: Uint8Array, offset: number): number {
5 return buf[offset] | (buf[offset + 1] << 8);
6 }
7
8 static readUInt32LE(buf: Uint8Array, offset: number): number {
9 return (

Callers 8

readUint16Method · 0.80
bc1Method · 0.80
bc2Method · 0.80
bc3Method · 0.80
bgra1555Method · 0.80
bgra4444Method · 0.80
bgra555Method · 0.80
bgra565Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected