| 1090 | }; |
| 1091 | |
| 1092 | int AddString( int OldCode, unsigned char NewChar ) { |
| 1093 | if (lastadd == LSWDECODER_MAX_TABLE_SIZE) |
| 1094 | return -1; |
| 1095 | if (lastadd == (1<<bits)-1) { |
| 1096 | // increase table size |
| 1097 | bits++; |
| 1098 | //ResizeTable(1<<bits); |
| 1099 | } |
| 1100 | |
| 1101 | str_table[lastadd] = NewChar; |
| 1102 | str_nextchar[lastadd] = OldCode; |
| 1103 | last_table[lastadd] = last_table[OldCode]; |
| 1104 | |
| 1105 | |
| 1106 | lastadd++; |
| 1107 | return lastadd-1; |
| 1108 | }; |
| 1109 | |
| 1110 | CLZWDecoder() { |
| 1111 | /* // ld implementation |
nothing calls this directly
no outgoing calls
no test coverage detected