MCPcopy Create free account
hub / github.com/chronoxor/FastBinaryEncoding / fromBytes

Method fromBytes

projects/JavaScript/proto/uuid.js:59–65  ·  view source on GitHub ↗

* Returns UUID from its bytes representation * @param {!Array. |!Uint8Array} bytes Byte representation * @returns {!UUID} The corresponding UUID value

(bytes)

Source from the content-addressed store, hash-verified

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

Callers 2

constructorMethod · 0.45
test_int64.jsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected