MCPcopy Create free account
hub / github.com/Tencent/libpag / readUint32

Method readUint32

web/lite/src/codec/utils/byte-array.ts:113–119  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

111 }
112
113 public readUint32(): number {
114 if (this._position >= this.length - 3) throw new Error(ErrorMessage.PAGDecodeError);
115 const value = this.dataView.getUint32(this._position, this.littleEndian);
116 this._position += 4;
117 this.positonChanged();
118 return value;
119 }
120
121 public readInt64(): number {
122 if (this._position >= this.length - 7) throw new Error(ErrorMessage.PAGDecodeError);

Callers 2

readBodyBytesFunction · 0.45
readTagHeaderFunction · 0.45

Calls 1

positonChangedMethod · 0.95

Tested by

no test coverage detected