(c: char, encoderIndex: number)
| 184 | } |
| 185 | |
| 186 | public encode(c: char, encoderIndex: number): Uint8Array { |
| 187 | if (!(encoderIndex < this.length())) { |
| 188 | throw new Error('index must be less than length'); |
| 189 | } |
| 190 | |
| 191 | return StringEncoding.encode( |
| 192 | StringUtils.getCharAt(c), |
| 193 | this.encoders[encoderIndex].name |
| 194 | ); |
| 195 | } |
| 196 | } |