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

Method readFloat32

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

Source from the content-addressed store, hash-verified

137 }
138
139 public readFloat32(): number {
140 if (this._position >= this.length - 3) throw new Error(ErrorMessage.PAGDecodeError);
141 const value = this.dataView.getFloat32(this._position, this.littleEndian);
142 this._position += 4;
143 this.positonChanged();
144 return value;
145 }
146
147 public readDouble(): number {
148 if (this._position >= this.length - 7) throw new Error(ErrorMessage.PAGDecodeError);

Callers 5

readFloatFunction · 0.80
readPointFunction · 0.80
readValueMethod · 0.80
readVideoSequenceFunction · 0.80

Calls 1

positonChangedMethod · 0.95

Tested by

no test coverage detected