import ParsingDfa4Table from "./parsing_dfa_4table.js"; /** * DFA based parser to match an hex number, plain, C or STEP. */ export default class HexParser extends ParsingDfa4Table { /** * Construct the DFA table for the parser. */ constructor(); /** * Match unprefixed hex data. * * @param input The input buffer to match against. * @param cursor The cursor to test the match against. * @param endCursor The end point to look at in the buffer. * @return {number | undefined} The end of the match or undefined if none found. */ unprefixed: (input: Uint8Array, cursor: number, endCursor: number) => number | undefined; /** * Match hex data, with a C style prefix of 0x or 0X. * * @param input The input buffer to match against. * @param cursor The cursor to test the match against. * @param endCursor The end point to look at in the buffer. * @return {number | undefined} The end of the match or undefined if none found. */ prefixed: (input: Uint8Array, cursor: number, endCursor: number) => number | undefined; /** * Match hex data, with a STEP style * * @param input The input buffer to match against. * @param cursor The cursor to test the match against. * @param endCursor The end point to look at in the buffer. * @return {number | undefined} The end of the match or undefined if none found. */ step: (input: Uint8Array, cursor: number, endCursor: number) => number | undefined; /** * Parse a step hex value out to a binary value with the number of bits. * * @param input The input buffer to match against. * @param cursor The cursor to test the match against. * @param endCursor The end point to look at in the buffer. * @return {[Uint8Array, number] | undefined} The extracted value or undefined. */ extractStep: (input: Uint8Array, cursor: number, endCursor: number) => [ Uint8Array, number ] | undefined; static readonly Instance: HexParser; } //# sourceMappingURL=hex_parser.d.ts.map