| 2658 | // |
| 2659 | |
| 2660 | static void hufClearDecTable(HufDec *hdecod) // io: (allocated by caller) |
| 2661 | // decoding table [HUF_DECSIZE] |
| 2662 | { |
| 2663 | for (int i = 0; i < HUF_DECSIZE; i++) { |
| 2664 | hdecod[i].len = 0; |
| 2665 | hdecod[i].lit = 0; |
| 2666 | hdecod[i].p = NULL; |
| 2667 | } |
| 2668 | // memset(hdecod, 0, sizeof(HufDec) * HUF_DECSIZE); |
| 2669 | } |
| 2670 | |
| 2671 | // |
| 2672 | // Build a decoding hash table based on the encoding table hcode: |