* Converts the UUID to its bytes representation * @this {!UUID} * @returns {!Array. } Bytes representation
()
| 183 | * @returns {!Array.<number>} Bytes representation |
| 184 | */ |
| 185 | toBytes () { |
| 186 | let result = [] |
| 187 | for (let i = 0; i < this.data.length; i++) { |
| 188 | result.push(this.data[i]) |
| 189 | } |
| 190 | return result |
| 191 | } |
| 192 | |
| 193 | /** |
| 194 | * Converts the UUID to string representation in format 'XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX' |