MCPcopy
hub / github.com/webpack/webpack / readBits

Method readBits

lib/serialization/BinaryMiddleware.js:314–321  ·  view source on GitHub ↗

* Pushes the lowest n bits of data as booleans. * @param {number} data data * @param {number} n n

(data, n)

Source from the content-addressed store, hash-verified

312 * @param {number} n n
313 */
314 readBits(data, n) {
315 let mask = 1;
316 while (n !== 0) {
317 this.result.push((data & mask) !== 0);
318 mask <<= 1;
319 n--;
320 }
321 }
322}
323
324/**

Callers 1

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected