Parse a step hex value out to a binary value with the number of bits.
The input buffer to match against.
The cursor to test the match against.
The end point to look at in the buffer.
The extracted value or undefined.
Get the value of a given state for a given value.
Useful for using this for mappings. Will cause an exception if out of bounds.
The byte value to lookup.
The state to get the value for.
The table value given a state and input byte
Match hex data, with a C style prefix of 0x or 0X.
The input buffer to match against.
The cursor to test the match against.
The end point to look at in the buffer.
The end of the match or undefined if none found.
Match hex data, with a STEP style
The input buffer to match against.
The cursor to test the match against.
The end point to look at in the buffer.
The end of the match or undefined if none found.
Match unprefixed hex data.
The input buffer to match against.
The cursor to test the match against.
The end point to look at in the buffer.
The end of the match or undefined if none found.
DFA based parser to match an hex number, plain, C or STEP.