()
| 350 | |
| 351 | let hexBytesCache; |
| 352 | function getHexBytes() { |
| 353 | if (hexBytesCache === undefined) { |
| 354 | hexBytesCache = new Array(256); |
| 355 | for (let i = 0; i < hexBytesCache.length; i++) { |
| 356 | const hex = NumberPrototypeToString(i, 16); |
| 357 | hexBytesCache[i] = StringPrototypePadStart(hex, 2, '0'); |
| 358 | } |
| 359 | } |
| 360 | return hexBytesCache; |
| 361 | } |
| 362 | |
| 363 | function serializeUUID(buf, version, variant, offset = 0) { |
| 364 | const kHexBytes = getHexBytes(); |
no outgoing calls
no test coverage detected
searching dependent graphs…