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

Method toString

projects/JavaScript/proto/uuid.js:198–208  ·  view source on GitHub ↗

* Converts the UUID to string representation in format 'XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX' * @this {!UUID} * @returns {string} Result string

()

Source from the content-addressed store, hash-verified

196 * @returns {string} Result string
197 */
198 toString () {
199 let result = ''
200 for (let i = 0; i < this.data.length; i++) {
201 result += (this.data[i] >>> 4).toString(16)
202 result += (this.data[i] & 0xF).toString(16)
203 if ((i === 3) || (i === 5) || (i === 7) || (i === 9)) {
204 result += '-'
205 }
206 }
207 return result
208 }
209
210 /**
211 * Is this value equal to other one?

Callers 2

big.jsFile · 0.45
test_int64.jsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected