main
Last change
on this file since 79a0317 was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 3 days ago |
F4 Finalna Verzija
|
-
Property mode
set to
100644
|
File size:
620 bytes
|
Rev | Line | |
---|
[79a0317] | 1 | "use strict";
|
---|
| 2 | Object.defineProperty(exports, "__esModule", { value: true });
|
---|
| 3 | const stringify_js_1 = require("./stringify.js");
|
---|
| 4 | const v1_js_1 = require("./v1.js");
|
---|
| 5 | const v1ToV6_js_1 = require("./v1ToV6.js");
|
---|
| 6 | function v6(options, buf, offset) {
|
---|
| 7 | options ??= {};
|
---|
| 8 | offset ??= 0;
|
---|
| 9 | let bytes = (0, v1_js_1.default)({ ...options, _v6: true }, new Uint8Array(16));
|
---|
| 10 | bytes = (0, v1ToV6_js_1.default)(bytes);
|
---|
| 11 | if (buf) {
|
---|
| 12 | for (let i = 0; i < 16; i++) {
|
---|
| 13 | buf[offset + i] = bytes[i];
|
---|
| 14 | }
|
---|
| 15 | return buf;
|
---|
| 16 | }
|
---|
| 17 | return (0, stringify_js_1.unsafeStringify)(bytes);
|
---|
| 18 | }
|
---|
| 19 | exports.default = v6;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.