* Returns true, if text encoding is needed before returning the string or * code point representation. Translation between text and bytes may throw an * error if encountering malformed content. * @return {boolean}
()
| 337 | * @return {boolean} |
| 338 | */ |
| 339 | needsTextEncoding () { |
| 340 | return this._codePoints === null && this._string === null |
| 341 | } |
| 342 | |
| 343 | /** |
| 344 | * Returns true, if byte encoding is needed before returning the byte |