* Lazily retrieves the byte representation. * @return {Uint8Array} Uint8Array of bytes
()
| 306 | * @return {Uint8Array} Uint8Array of bytes |
| 307 | */ |
| 308 | getBytes () { |
| 309 | if (this._bytes === null) { |
| 310 | this._bytes = TextEncoder.bytesFromCodePoints( |
| 311 | this.getCodePoints(), this._encoding) |
| 312 | } |
| 313 | return this._bytes |
| 314 | } |
| 315 | |
| 316 | /** |
| 317 | * Returns byte value at index. |
no test coverage detected