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

Feature request #251

Open
bergmorten opened this issue Dec 23, 2023 · 0 comments
Open

Feature request #251

bergmorten opened this issue Dec 23, 2023 · 0 comments

Comments

@bergmorten
Copy link

Thanks for a good tool.

I have a packet stream where parsing of a packet depends on a variable in the first packet. Since it is a stream I can not parse the whole dataset at once. So what I want is is store these variable and use them as input to the following packets/parsers.

E.g. something like this

let bytesPerSample = 4; // read in the first header packet

const result = myParser.parse(buffer, {bytesPerSample }) // Parser take an optional parseroptions
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