bin-trie-flags.d.ts 706 B

1234567891011121314151617
  1. /**
  2. * Bit flags & masks for the binary trie encoding used for entity decoding.
  3. *
  4. * Bit layout (16 bits total):
  5. * 15..14 VALUE_LENGTH (+1 encoding; 0 => no value)
  6. * 13 FLAG13. If valueLength>0: semicolon required flag (implicit ';').
  7. * If valueLength==0: compact run flag.
  8. * 12..7 BRANCH_LENGTH Branch length (0 => single branch in 6..0 if jumpOffset==char) OR run length (when compact run)
  9. * 6..0 JUMP_TABLE Jump offset (jump table) OR single-branch char code OR first run char
  10. */
  11. export declare enum BinTrieFlags {
  12. VALUE_LENGTH = 49152,
  13. FLAG13 = 8192,
  14. BRANCH_LENGTH = 8064,
  15. JUMP_TABLE = 127
  16. }
  17. //# sourceMappingURL=bin-trie-flags.d.ts.map