Is it possible to read buffer line by line in JS?
I currently have a JS buffer object.
If i do console.log(buff) it will print something like this
<Buffer 0c 00 00 00 99 4e 98 3a f0 9d 09 3b 00 00 00 00 68 48 12 3c f0 77 1f 4a 6c 6c 0a 4a 0f 32 5f 31 31 39 38 36 31 5f 31 33 33 39 33 39 40 fc 11 00 09 00 ... 336 more bytes>
I am wondering if there is a way in Javascript to read this like a stream. I know in python for instance I can read the buffer like a stream byte byte.. something like (below)
buff.read(1)
0c
buff.read(2)
00 00
buff.read(4)
00 99 4e 98