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

A blazing-fast declarative parser builder for binary data

Results 61 binary-parser issues
Sort by recently updated
recently updated
newest added

Hello, Here is an implementation of **encode()** function for this great declaratibe binary-parser. This method is intended to be the *opposite* of the `parse(buffer)` method. It relies on the unchanged...

Hello all, Can someone guide me on how to read 33 bits? The bitX() is limited to 32 Thanks!

Choices seem to be broken in some instances, even though tag is int8 I have not fully tested, however I think it may have something to do with strict mode....

In particular, `ParserOptions` does implement all available options (e.g., length can be a string or function too).

I am trying to parse an a float array. Normally, this code works, however, I now have one huge file (400MB of file), and I want to start reading it....

How to seek x-number of bits? I understood correctly Seek works by byte. thanks!

Hello Guys, can someone explain how to parse a buffer with this structure? ![image](https://user-images.githubusercontent.com/36230446/171983962-109c88d1-c852-43ae-8ddf-d5d01bd127af.png) I managed to do it till here: ``` const patParse = new Parser() .uint8("table_id") .bit1("section_syntax_indicator") .bit1("zero")...

Hi! What about [AOS SPACE DATA LINK PROTOCOL ](https://public.ccsds.org/Pubs/732x0b3e1.pdf)? ![image](https://user-images.githubusercontent.com/432168/52896660-9211a080-31d3-11e9-8562-47042d03f62f.png) ```javascript const header = new Parser() .endianess('big') .bit2('version') .bit8('spaceCraftId') .bit6('vcid') .bit24('vcfc'); header.parse(...); ``` ``` /home/user/project/node_modules/binary-parser/lib/binary_parser.js:503 throw new Error( ^ Error:...

see https://github.com/openjournals/joss-reviews/issues/3777

Hello, Whereas the un-documented **sizeOf()** method allows to get the size of what a *static* parser will consume. Here is an implementation of a new **getLastOffset()** method that returns the...