@attocash/cli 0.2.3 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +148 -7
- package/dist/application/app.d.ts +34 -3
- package/dist/application/app.js +138 -126
- package/dist/application/operations.d.ts +3 -0
- package/dist/application/operations.js +30 -8
- package/dist/cli/cli.d.ts +1 -0
- package/dist/cli/cli.js +101 -13
- package/dist/cli/onboarding.d.ts +13 -0
- package/dist/cli/onboarding.js +99 -2
- package/dist/cli/output.js +18 -2
- package/dist/doctor/profile.js +2 -1
- package/dist/internal-marketplace.d.ts +25 -0
- package/dist/internal-marketplace.js +50 -0
- package/dist/marketplace/approval-files.d.ts +3 -0
- package/dist/marketplace/approval-files.js +97 -0
- package/dist/marketplace/approval-preview.d.ts +2 -0
- package/dist/marketplace/approval-preview.js +86 -0
- package/dist/marketplace/proof-approval.d.ts +82 -0
- package/dist/marketplace/proof-approval.js +671 -0
- package/dist/marketplace/topups.d.ts +82 -0
- package/dist/marketplace/topups.js +485 -0
- package/dist/network/batching.d.ts +2 -0
- package/dist/network/batching.js +23 -0
- package/dist/network/entry.d.ts +2 -0
- package/dist/network/entry.js +35 -0
- package/dist/network/reader.d.ts +2 -0
- package/dist/network/reader.js +125 -37
- package/dist/spending/approval.d.ts +5 -0
- package/dist/spending/approval.js +2 -0
- package/dist/spending/atto-x402.d.ts +31 -0
- package/dist/spending/atto-x402.js +174 -0
- package/dist/spending/ledger.d.ts +74 -2
- package/dist/spending/ledger.js +298 -7
- package/dist/spending/payments.d.ts +105 -5
- package/dist/spending/payments.js +795 -11
- package/dist/storage/recovery-seed.d.ts +13 -0
- package/dist/storage/recovery-seed.js +93 -0
- package/dist/storage/state.d.ts +4 -0
- package/dist/storage/state.js +32 -2
- package/dist/wallet/receive.d.ts +39 -0
- package/dist/wallet/receive.js +264 -0
- package/dist/wallet/signing.d.ts +1 -0
- package/dist/wallet/signing.js +37 -21
- package/dist/wallet/types.d.ts +1 -0
- package/node_modules/@attocash/commons-core/Kotlin-DateTime-library-kotlinx-datetime.mjs +1922 -1918
- package/node_modules/@attocash/commons-core/Kotlin-DateTime-library-kotlinx-datetime.mjs.map +1 -1
- package/node_modules/@attocash/commons-core/README.md +9 -0
- package/node_modules/@attocash/commons-core/commons-commons-core.d.mts +10 -0
- package/node_modules/@attocash/commons-core/commons-commons-core.mjs +2543 -2434
- package/node_modules/@attocash/commons-core/commons-commons-core.mjs.map +1 -1
- package/node_modules/@attocash/commons-core/kotlin-kotlin-stdlib.mjs +4695 -4227
- package/node_modules/@attocash/commons-core/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/node_modules/@attocash/commons-core/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.mjs.map +1 -1
- package/node_modules/@attocash/commons-core/kotlinx-io-kotlinx-io-bytestring.mjs +60 -60
- package/node_modules/@attocash/commons-core/kotlinx-io-kotlinx-io-bytestring.mjs.map +1 -1
- package/node_modules/@attocash/commons-core/kotlinx-io-kotlinx-io-core.mjs +651 -631
- package/node_modules/@attocash/commons-core/kotlinx-io-kotlinx-io-core.mjs.map +1 -1
- package/node_modules/@attocash/commons-core/kotlinx-serialization-kotlinx-serialization-core.mjs +2294 -2295
- package/node_modules/@attocash/commons-core/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -1
- package/node_modules/@attocash/commons-core/kotlinx-serialization-kotlinx-serialization-json.mjs +1732 -1701
- package/node_modules/@attocash/commons-core/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -1
- package/node_modules/@attocash/commons-core/package.json +1 -1
- package/node_modules/@attocash/commons-node/commons-commons-node.d.mts +1 -0
- package/node_modules/@attocash/commons-node/commons-commons-node.mjs +873 -847
- package/node_modules/@attocash/commons-node/commons-commons-node.mjs.map +1 -1
- package/node_modules/@attocash/commons-node/kotlin-logging.mjs +109 -109
- package/node_modules/@attocash/commons-node/kotlin-logging.mjs.map +1 -1
- package/node_modules/@attocash/commons-node/kotlinx-serialization-kotlinx-serialization-json.mjs +1732 -1701
- package/node_modules/@attocash/commons-node/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -1
- package/node_modules/@attocash/commons-node/package.json +3 -3
- package/node_modules/@attocash/commons-node-remote/commons-commons-node-remote.d.mts +1 -0
- package/node_modules/@attocash/commons-node-remote/commons-commons-node-remote.mjs +674 -640
- package/node_modules/@attocash/commons-node-remote/commons-commons-node-remote.mjs.map +1 -1
- package/node_modules/@attocash/commons-node-remote/kotlin-logging.mjs +109 -109
- package/node_modules/@attocash/commons-node-remote/kotlin-logging.mjs.map +1 -1
- package/node_modules/@attocash/commons-node-remote/kotlinx-browser.mjs.map +1 -1
- package/node_modules/@attocash/commons-node-remote/kotlinx-serialization-kotlinx-serialization-json-io.mjs.map +1 -1
- package/node_modules/@attocash/commons-node-remote/kotlinx-serialization-kotlinx-serialization-json.mjs +1732 -1701
- package/node_modules/@attocash/commons-node-remote/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -1
- package/node_modules/@attocash/commons-node-remote/package.json +4 -4
- package/node_modules/@attocash/commons-transport/commons-commons-transport.d.mts +1 -0
- package/node_modules/@attocash/commons-transport/commons-commons-transport.mjs +52 -51
- package/node_modules/@attocash/commons-transport/commons-commons-transport.mjs.map +1 -1
- package/node_modules/@attocash/commons-transport/kotlinx-atomicfu.mjs +13 -13
- package/node_modules/@attocash/commons-transport/kotlinx-atomicfu.mjs.map +1 -1
- package/node_modules/@attocash/commons-transport/kotlinx-browser.mjs.map +1 -1
- package/node_modules/@attocash/commons-transport/kotlinx-coroutines-core.mjs +2639 -2608
- package/node_modules/@attocash/commons-transport/kotlinx-coroutines-core.mjs.map +1 -1
- package/node_modules/@attocash/commons-transport/kotlinx-serialization-kotlinx-serialization-json-io.mjs.map +1 -1
- package/node_modules/@attocash/commons-transport/kotlinx-serialization-kotlinx-serialization-json.mjs +1732 -1701
- package/node_modules/@attocash/commons-transport/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -1
- package/node_modules/@attocash/commons-transport/ktor-ktor-client-content-negotiation.mjs +411 -196
- package/node_modules/@attocash/commons-transport/ktor-ktor-client-content-negotiation.mjs.map +1 -1
- package/node_modules/@attocash/commons-transport/ktor-ktor-client-core.mjs +2115 -1976
- package/node_modules/@attocash/commons-transport/ktor-ktor-client-core.mjs.map +1 -1
- package/node_modules/@attocash/commons-transport/ktor-ktor-events.mjs +7 -7
- package/node_modules/@attocash/commons-transport/ktor-ktor-events.mjs.map +1 -1
- package/node_modules/@attocash/commons-transport/ktor-ktor-http-cio.mjs +385 -384
- package/node_modules/@attocash/commons-transport/ktor-ktor-http-cio.mjs.map +1 -1
- package/node_modules/@attocash/commons-transport/ktor-ktor-http.mjs +1261 -1185
- package/node_modules/@attocash/commons-transport/ktor-ktor-http.mjs.map +1 -1
- package/node_modules/@attocash/commons-transport/ktor-ktor-io.mjs +668 -656
- package/node_modules/@attocash/commons-transport/ktor-ktor-io.mjs.map +1 -1
- package/node_modules/@attocash/commons-transport/ktor-ktor-openapi-schema.mjs +89 -0
- package/node_modules/@attocash/commons-transport/ktor-ktor-openapi-schema.mjs.map +1 -0
- package/node_modules/@attocash/commons-transport/ktor-ktor-serialization-kotlinx-json.mjs +9 -9
- package/node_modules/@attocash/commons-transport/ktor-ktor-serialization-kotlinx-json.mjs.map +1 -1
- package/node_modules/@attocash/commons-transport/ktor-ktor-serialization-kotlinx.mjs +120 -128
- package/node_modules/@attocash/commons-transport/ktor-ktor-serialization-kotlinx.mjs.map +1 -1
- package/node_modules/@attocash/commons-transport/ktor-ktor-serialization.mjs +46 -49
- package/node_modules/@attocash/commons-transport/ktor-ktor-serialization.mjs.map +1 -1
- package/node_modules/@attocash/commons-transport/ktor-ktor-sse.mjs.map +1 -1
- package/node_modules/@attocash/commons-transport/ktor-ktor-utils.mjs +1041 -985
- package/node_modules/@attocash/commons-transport/ktor-ktor-utils.mjs.map +1 -1
- package/node_modules/@attocash/commons-transport/ktor-ktor-websocket-serialization.mjs.map +1 -1
- package/node_modules/@attocash/commons-transport/ktor-ktor-websockets.mjs +530 -455
- package/node_modules/@attocash/commons-transport/ktor-ktor-websockets.mjs.map +1 -1
- package/node_modules/@attocash/commons-transport/package.json +4 -4
- package/node_modules/@attocash/commons-worker/commons-commons-worker.d.mts +1 -0
- package/node_modules/@attocash/commons-worker/commons-commons-worker.mjs +230 -226
- package/node_modules/@attocash/commons-worker/commons-commons-worker.mjs.map +1 -1
- package/node_modules/@attocash/commons-worker/kotlin-logging.mjs +109 -109
- package/node_modules/@attocash/commons-worker/kotlin-logging.mjs.map +1 -1
- package/node_modules/@attocash/commons-worker/kotlinx-serialization-kotlinx-serialization-json.mjs +1732 -1701
- package/node_modules/@attocash/commons-worker/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -1
- package/node_modules/@attocash/commons-worker/package.json +3 -3
- package/node_modules/@attocash/commons-worker-remote/commons-commons-worker-remote.d.mts +1 -0
- package/node_modules/@attocash/commons-worker-remote/commons-commons-worker-remote.mjs +91 -86
- package/node_modules/@attocash/commons-worker-remote/commons-commons-worker-remote.mjs.map +1 -1
- package/node_modules/@attocash/commons-worker-remote/kotlin-logging.mjs +109 -109
- package/node_modules/@attocash/commons-worker-remote/kotlin-logging.mjs.map +1 -1
- package/node_modules/@attocash/commons-worker-remote/kotlinx-browser.mjs.map +1 -1
- package/node_modules/@attocash/commons-worker-remote/kotlinx-serialization-kotlinx-serialization-json-io.mjs.map +1 -1
- package/node_modules/@attocash/commons-worker-remote/kotlinx-serialization-kotlinx-serialization-json.mjs +1732 -1701
- package/node_modules/@attocash/commons-worker-remote/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -1
- package/node_modules/@attocash/commons-worker-remote/package.json +4 -4
- package/package.json +9 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"sourcesContent":[],"ignoreList":[],"x_google_ignoreList":[],"names":[],"mappings":";;"}
|
|
1
|
+
{"version":3,"sources":["NATIVE_IMPLEMENTATIONS.kt"],"sourcesContent":[null],"ignoreList":[0],"x_google_ignoreList":[0],"names":[],"mappings":";;"}
|
|
@@ -6,15 +6,15 @@ import {
|
|
|
6
6
|
copyOfRange3alro60z4hhf8 as copyOfRange,
|
|
7
7
|
getKClassFromExpression348iqjl4fnx2f as getKClassFromExpression,
|
|
8
8
|
THROW_CCE2g6jy02ryeudk as THROW_CCE,
|
|
9
|
-
|
|
9
|
+
Unit_instance3kz1zqli6gr1r as Unit_instance,
|
|
10
10
|
contentEquals1cdp6c846cfdi as contentEquals,
|
|
11
11
|
contentHashCode25jw6rgkgywwr as contentHashCode,
|
|
12
12
|
IndexOutOfBoundsException1qfr429iumro0 as IndexOutOfBoundsException,
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
_UByte___init__impl__g9hnc49zztd2brjj2m as _UByte___init__impl__g9hnc4,
|
|
14
|
+
_UByte___get_data__impl__jof9qr100nrznmlnqj as _UByte___get_data__impl__jof9qr,
|
|
15
15
|
compareTo3ankvs086tmwq as compareTo,
|
|
16
16
|
StringBuildermazzzhj6kkai as StringBuilder,
|
|
17
|
-
|
|
17
|
+
_Char___init__impl__6a9atxrzocepzq3zgi as _Char___init__impl__6a9atx,
|
|
18
18
|
Comparable198qfk8pnblz0 as Comparable,
|
|
19
19
|
initMetadataForClassbxx6q50dy2s7 as initMetadataForClass,
|
|
20
20
|
decodeToString1x4faah2liw2p as decodeToString,
|
|
@@ -27,32 +27,32 @@ var imul = Math.imul;
|
|
|
27
27
|
class Companion {
|
|
28
28
|
constructor() {
|
|
29
29
|
Companion_instance = this;
|
|
30
|
-
this.
|
|
31
|
-
this.
|
|
30
|
+
this.EMPTY_1 = ByteString.new_kotlinx_io_bytestring_ByteString_hfw4dq_k$(new Int8Array(0), null);
|
|
31
|
+
this.HEX_DIGITS_1 = toCharArray('0123456789abcdef');
|
|
32
32
|
}
|
|
33
|
-
|
|
34
|
-
return ByteString.
|
|
33
|
+
wrap_yhiemk_k$(byteArray) {
|
|
34
|
+
return ByteString.new_kotlinx_io_bytestring_ByteString_hfw4dq_k$(byteArray, null);
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
class ByteString {
|
|
38
38
|
constructor(data, dummy) {
|
|
39
|
-
return new.target.
|
|
39
|
+
return new.target.new_kotlinx_io_bytestring_ByteString_hfw4dq_k$(data, dummy);
|
|
40
40
|
}
|
|
41
|
-
static
|
|
41
|
+
static new_kotlinx_io_bytestring_ByteString_hfw4dq_k$(data, dummy) {
|
|
42
42
|
Companion_getInstance();
|
|
43
43
|
var $this = createThis(this);
|
|
44
|
-
$this.
|
|
45
|
-
$this.
|
|
44
|
+
$this.data_1 = data;
|
|
45
|
+
$this.hashCode_2 = 0;
|
|
46
46
|
return $this;
|
|
47
47
|
}
|
|
48
|
-
static
|
|
48
|
+
static new_kotlinx_io_bytestring_ByteString_507kaj_k$(data, startIndex, endIndex) {
|
|
49
49
|
Companion_getInstance();
|
|
50
50
|
startIndex = startIndex === VOID ? 0 : startIndex;
|
|
51
51
|
endIndex = endIndex === VOID ? data.length : endIndex;
|
|
52
|
-
return this.
|
|
52
|
+
return this.new_kotlinx_io_bytestring_ByteString_hfw4dq_k$(copyOfRange(data, startIndex, endIndex), null);
|
|
53
53
|
}
|
|
54
|
-
|
|
55
|
-
return this.
|
|
54
|
+
get_size_woubt6_k$() {
|
|
55
|
+
return this.data_1.length;
|
|
56
56
|
}
|
|
57
57
|
equals(other) {
|
|
58
58
|
if (this === other)
|
|
@@ -61,47 +61,47 @@ class ByteString {
|
|
|
61
61
|
return false;
|
|
62
62
|
if (!(other instanceof ByteString))
|
|
63
63
|
THROW_CCE();
|
|
64
|
-
if (!(other.
|
|
64
|
+
if (!(other.data_1.length === this.data_1.length))
|
|
65
65
|
return false;
|
|
66
|
-
if (!(other.
|
|
66
|
+
if (!(other.hashCode_2 === 0) && !(this.hashCode_2 === 0) && !(other.hashCode_2 === this.hashCode_2))
|
|
67
67
|
return false;
|
|
68
|
-
return contentEquals(this.
|
|
68
|
+
return contentEquals(this.data_1, other.data_1);
|
|
69
69
|
}
|
|
70
70
|
hashCode() {
|
|
71
|
-
var hc = this.
|
|
71
|
+
var hc = this.hashCode_2;
|
|
72
72
|
if (hc === 0) {
|
|
73
|
-
hc = contentHashCode(this.
|
|
74
|
-
this.
|
|
73
|
+
hc = contentHashCode(this.data_1);
|
|
74
|
+
this.hashCode_2 = hc;
|
|
75
75
|
}
|
|
76
76
|
return hc;
|
|
77
77
|
}
|
|
78
|
-
|
|
79
|
-
if (index < 0 || index >= this.
|
|
80
|
-
throw IndexOutOfBoundsException.
|
|
81
|
-
return this.
|
|
78
|
+
get_c1px32_k$(index) {
|
|
79
|
+
if (index < 0 || index >= this.get_size_woubt6_k$())
|
|
80
|
+
throw IndexOutOfBoundsException.new_kotlin_IndexOutOfBoundsException_ddr8db_k$('index (' + index + ') is out of byte string bounds: [0..' + this.get_size_woubt6_k$() + ')');
|
|
81
|
+
return this.data_1[index];
|
|
82
82
|
}
|
|
83
|
-
|
|
83
|
+
substring_d7lab3_k$(startIndex, endIndex) {
|
|
84
84
|
var tmp;
|
|
85
85
|
if (startIndex === endIndex) {
|
|
86
|
-
tmp = Companion_getInstance().
|
|
86
|
+
tmp = Companion_getInstance().EMPTY_1;
|
|
87
87
|
} else {
|
|
88
|
-
tmp = ByteString.
|
|
88
|
+
tmp = ByteString.new_kotlinx_io_bytestring_ByteString_507kaj_k$(this.data_1, startIndex, endIndex);
|
|
89
89
|
}
|
|
90
90
|
return tmp;
|
|
91
91
|
}
|
|
92
|
-
|
|
93
|
-
endIndex = endIndex === VOID ? this.
|
|
94
|
-
return $super === VOID ? this.
|
|
92
|
+
substring$default_wq769b_k$(startIndex, endIndex, $super) {
|
|
93
|
+
endIndex = endIndex === VOID ? this.get_size_woubt6_k$() : endIndex;
|
|
94
|
+
return $super === VOID ? this.substring_d7lab3_k$(startIndex, endIndex) : $super.substring_d7lab3_k$.call(this, startIndex, endIndex);
|
|
95
95
|
}
|
|
96
|
-
|
|
96
|
+
compareTo_370sij_k$(other) {
|
|
97
97
|
if (other === this)
|
|
98
98
|
return 0;
|
|
99
|
-
var localData = this.
|
|
100
|
-
var otherData = other.
|
|
99
|
+
var localData = this.data_1;
|
|
100
|
+
var otherData = other.data_1;
|
|
101
101
|
var inductionVariable = 0;
|
|
102
|
-
var tmp0 = this.
|
|
102
|
+
var tmp0 = this.get_size_woubt6_k$();
|
|
103
103
|
// Inline function 'kotlin.math.min' call
|
|
104
|
-
var b = other.
|
|
104
|
+
var b = other.get_size_woubt6_k$();
|
|
105
105
|
var last = Math.min(tmp0, b);
|
|
106
106
|
if (inductionVariable < last)
|
|
107
107
|
do {
|
|
@@ -123,43 +123,43 @@ class ByteString {
|
|
|
123
123
|
return cmp;
|
|
124
124
|
}
|
|
125
125
|
while (inductionVariable < last);
|
|
126
|
-
return compareTo(this.
|
|
126
|
+
return compareTo(this.get_size_woubt6_k$(), other.get_size_woubt6_k$());
|
|
127
127
|
}
|
|
128
|
-
|
|
129
|
-
return this.
|
|
128
|
+
compareTo_hpufkf_k$(other) {
|
|
129
|
+
return this.compareTo_370sij_k$(other instanceof ByteString ? other : THROW_CCE());
|
|
130
130
|
}
|
|
131
131
|
toString() {
|
|
132
132
|
if (isEmpty(this)) {
|
|
133
133
|
return 'ByteString(size=0)';
|
|
134
134
|
}
|
|
135
|
-
var sizeStr = this.
|
|
136
|
-
var len = (22 + sizeStr.length | 0) + imul(this.
|
|
135
|
+
var sizeStr = this.get_size_woubt6_k$().toString();
|
|
136
|
+
var len = (22 + sizeStr.length | 0) + imul(this.get_size_woubt6_k$(), 2) | 0;
|
|
137
137
|
// Inline function 'kotlin.with' call
|
|
138
|
-
var $this$with = StringBuilder.
|
|
139
|
-
$this$with.
|
|
140
|
-
$this$with.
|
|
141
|
-
$this$with.
|
|
142
|
-
var localData = this.
|
|
138
|
+
var $this$with = StringBuilder.new_kotlin_text_StringBuilder_wcb3z_k$(len);
|
|
139
|
+
$this$with.append_22ad7x_k$('ByteString(size=');
|
|
140
|
+
$this$with.append_22ad7x_k$(sizeStr);
|
|
141
|
+
$this$with.append_22ad7x_k$(' hex=');
|
|
142
|
+
var localData = this.data_1;
|
|
143
143
|
var inductionVariable = 0;
|
|
144
|
-
var last = this.
|
|
144
|
+
var last = this.get_size_woubt6_k$();
|
|
145
145
|
if (inductionVariable < last)
|
|
146
146
|
do {
|
|
147
147
|
var i = inductionVariable;
|
|
148
148
|
inductionVariable = inductionVariable + 1 | 0;
|
|
149
149
|
var b = localData[i];
|
|
150
|
-
$this$with.
|
|
151
|
-
$this$with.
|
|
150
|
+
$this$with.append_58al37_k$(Companion_getInstance().HEX_DIGITS_1[(b >>> 4 | 0) & 15]);
|
|
151
|
+
$this$with.append_58al37_k$(Companion_getInstance().HEX_DIGITS_1[b & 15]);
|
|
152
152
|
}
|
|
153
153
|
while (inductionVariable < last);
|
|
154
|
-
return $this$with.
|
|
154
|
+
return $this$with.append_58al37_k$(_Char___init__impl__6a9atx(41)).toString();
|
|
155
155
|
}
|
|
156
|
-
|
|
157
|
-
return this.
|
|
156
|
+
getBackingArrayReference_x19ruh_k$() {
|
|
157
|
+
return this.data_1;
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
160
|
class UnsafeByteStringOperations {
|
|
161
|
-
|
|
162
|
-
return Companion_getInstance().
|
|
161
|
+
wrapUnsafe_3fobxs_k$(array) {
|
|
162
|
+
return Companion_getInstance().wrap_yhiemk_k$(array);
|
|
163
163
|
}
|
|
164
164
|
}
|
|
165
165
|
//endregion
|
|
@@ -173,17 +173,17 @@ function ByteString_0(bytes) {
|
|
|
173
173
|
var tmp;
|
|
174
174
|
// Inline function 'kotlin.collections.isEmpty' call
|
|
175
175
|
if (bytes.length === 0) {
|
|
176
|
-
tmp = Companion_getInstance().
|
|
176
|
+
tmp = Companion_getInstance().EMPTY_1;
|
|
177
177
|
} else {
|
|
178
|
-
tmp = Companion_getInstance().
|
|
178
|
+
tmp = Companion_getInstance().wrap_yhiemk_k$(bytes);
|
|
179
179
|
}
|
|
180
180
|
return tmp;
|
|
181
181
|
}
|
|
182
182
|
function decodeToString_0(_this__u8e3s4) {
|
|
183
|
-
return decodeToString(_this__u8e3s4.
|
|
183
|
+
return decodeToString(_this__u8e3s4.getBackingArrayReference_x19ruh_k$());
|
|
184
184
|
}
|
|
185
185
|
function isEmpty(_this__u8e3s4) {
|
|
186
|
-
return _this__u8e3s4.
|
|
186
|
+
return _this__u8e3s4.get_size_woubt6_k$() === 0;
|
|
187
187
|
}
|
|
188
188
|
var UnsafeByteStringOperations_instance;
|
|
189
189
|
function UnsafeByteStringOperations_getInstance() {
|
|
@@ -199,7 +199,7 @@ UnsafeByteStringOperations_instance = new UnsafeByteStringOperations();
|
|
|
199
199
|
//endregion
|
|
200
200
|
//region block: exports
|
|
201
201
|
export {
|
|
202
|
-
UnsafeByteStringOperations_instance as
|
|
202
|
+
UnsafeByteStringOperations_instance as UnsafeByteStringOperations_instance2qzwn5iz9dqfo,
|
|
203
203
|
ByteString_0 as ByteString3c9fk8lsh3lvs,
|
|
204
204
|
ByteString as ByteString10sanmoo66key,
|
|
205
205
|
decodeToString_0 as decodeToString2ede220pr5xir,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["
|
|
1
|
+
{"version":3,"sources":["NATIVE_IMPLEMENTATIONS.kt","Z:/BuildAgent/work/22e3a7db6b861ba7/bytestring/common/src/ByteString.kt","js/src/kotlin/math.kt","unsigned/src/kotlin/UByte.kt","Z:/BuildAgent/work/22e3a7db6b861ba7/bytestring/common/src/unsafe/UnsafeByteStringOperations.kt","common/src/generated/_Arrays.kt"],"sourcesContent":[null,null,null,null,null,null],"ignoreList":[0],"x_google_ignoreList":[0],"names":["wrap","byteArray","<get-size>","equals","other","hashCode","hc","get","index","substring","startIndex","endIndex","compareTo","localData","otherData","cmp","toString","sizeStr","len","b","getBackingArrayReference","wrapUnsafe","array","ByteString","bytes","decodeToString","<this>","isEmpty"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;ICwGyC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