| 3043 | } |
| 3044 | |
| 3045 | static void countFrequencies(std::vector<long long> &freq, |
| 3046 | const unsigned short data[/*n*/], int n) { |
| 3047 | for (int i = 0; i < HUF_ENCSIZE; ++i) freq[i] = 0; |
| 3048 | |
| 3049 | for (int i = 0; i < n; ++i) ++freq[data[i]]; |
| 3050 | } |
| 3051 | |
| 3052 | static void writeUInt(char buf[4], unsigned int i) { |
| 3053 | unsigned char *b = (unsigned char *)buf; |