binary-parser icon indicating copy to clipboard operation
binary-parser copied to clipboard

Feature request

Open bergmorten opened this issue 2 years ago • 0 comments

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


bergmorten avatar Dec 23 '23 10:12 bergmorten