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

Method readFloatList

web/lite/src/codec/utils/byte-array.ts:284–291  ·  view source on GitHub ↗
(count: number, precision: number)

Source from the content-addressed store, hash-verified

282 }
283
284 public readFloatList(count: number, precision: number): number[] {
285 const numBits = this.readNumBits();
286 const value = new Array(count);
287 for (let i = 0; i < count; i++) {
288 value[i] = this.readBits(numBits) * precision;
289 }
290 return value;
291 }
292
293 private bitPositionChanged() {
294 this._position = Math.ceil(this.bitPosition * 0.125);

Callers 1

readValueListMethod · 0.45

Calls 2

readNumBitsMethod · 0.95
readBitsMethod · 0.95

Tested by

no test coverage detected