vaguue / over-the-wire

Network inspection library for Node
https://vaguue.github.io/over-the-wire
GNU General Public License v3.0
59 stars 2 forks source link

Consider using `unshift` in either struct-compile or over-the-wire during pcap parsing #9

Open vaguue opened 5 days ago

vaguue commented 5 days ago

https://nodejs.org/api/stream.html#readableunshiftchunk-encoding Great example, but the problem is for small pcap files the stream is gonna end right away, which can bring the same code as of now.

vaguue commented 5 days ago

or maybe use chevrotain