Buckets:
| ; | |
| Object.defineProperty(exports, "__esModule", { value: true }); | |
| const stringify_js_1 = require("./stringify.js"); | |
| const v1_js_1 = require("./v1.js"); | |
| const v1ToV6_js_1 = require("./v1ToV6.js"); | |
| function v6(options, buf, offset) { | |
| options ??= {}; | |
| offset ??= 0; | |
| let bytes = (0, v1_js_1.default)({ ...options, _v6: true }, new Uint8Array(16)); | |
| bytes = (0, v1ToV6_js_1.default)(bytes); | |
| if (buf) { | |
| if (offset < 0 || offset + 16 > buf.length) { | |
| throw new RangeError(`UUID byte range ${offset}:${offset + 15} is out of buffer bounds`); | |
| } | |
| for (let i = 0; i < 16; i++) { | |
| buf[offset + i] = bytes[i]; | |
| } | |
| return buf; | |
| } | |
| return (0, stringify_js_1.unsafeStringify)(bytes); | |
| } | |
| exports.default = v6; | |
Xet Storage Details
- Size:
- 786 Bytes
- Xet hash:
- 65bfe9c39e6cb3b6110dedf688bf71f7a80c0710cbd043bca25ea87ea1878ff4
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.