clz-buffer
Count leading zeros in a Buffer (clz)
Usage
var clz = // === 4 // === 0 // === 0 // === 16 // === 24
API
var n = clz(buf)
Counts the number of leading zeros. Stops at the first 1-bit. Works for any
array-like type with values in the domain [0, 255]
.
Install
npm install clz-buffer