buf.entries()
- Return: <Iterator>
Creates and returns an iterator of [index, byte]
pairs from the Buffer contents.
1 2 3 4 5 6 7 8 9 10 11 | const buf = Buffer.from( 'buffer' ); for ( var pair of buf.entries()) { console.log(pair); } // prints: // [0, 98] // [1, 117] // [2, 102] // [3, 102] // [4, 101] // [5, 114] |
Please login to continue.