* Returns UUID from its bytes representation * @param {!Array. |!Uint8Array} bytes Byte representation * @returns {!UUID} The corresponding UUID value
(bytes)
| 57 | * @returns {!UUID} The corresponding UUID value |
| 58 | */ |
| 59 | static fromBytes (bytes) { |
| 60 | let result = new UUID() |
| 61 | for (let i = 0; i < bytes.length; i++) { |
| 62 | result.data[i] = bytes[i] & 0xFF |
| 63 | } |
| 64 | return result |
| 65 | } |
| 66 | |
| 67 | /** |
| 68 | * Returns UUID representing using its separate parts |
no outgoing calls
no test coverage detected