binary-parser
binary-parser copied to clipboard
Access buffer for assertions
When implementing an assertion, e.g. crc32 that's defined as being against the raw buffer, it would be useful to be able to access the raw buffer to implement the check.
Currently you have to do the check afterwards, which is annoying when you're parsing arrays of sub-types.