binaryparse
binaryparse copied to clipboard
Binary parser for Nim
ran into it while trying this library for [today's aoc](https://adventofcode.com/2021/day/16): ``` import binaryparse, streams block: let test1 = newStringStream("\xD2\xFE\x28") createParser(packet): u3: version u3: typeId var data = packet.get(test1) dump data...
I have the following in python: ```python import struct a = 0x95006c08 print( a & 0x3FF ) # First: 10 bits --> 8 print( (a >> 10) & 0x1FFF )...
Very minor change - I wanted to make sure that the (get, put) tuple was exported. I think I want to make the tuple type exportable as well. That way,...