Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
vaguue opened this issue Nov 7, 2024 · 1 comment

Comments

@vaguue
Copy link
Owner

vaguue commented Nov 7, 2024

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 vaguue changed the title Considering using unshift in either struct-compile or over-the-wire during pcap parsing Consider using unshift in either struct-compile or over-the-wire during pcap parsing Nov 7, 2024
@vaguue
Copy link
Owner Author

vaguue commented Nov 8, 2024

or maybe use chevrotain

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant