@doordeck/doordeck-headless-sdk 0.50.0 → 0.52.0
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 +6 -6
- package/kotlin/Kotlin-DateTime-library-kotlinx-datetime.js +1323 -1323
- package/kotlin/KotlinMultiplatformLibsodium-multiplatform-crypto-libsodium-bindings.js +35 -35
- package/kotlin/MultiplatformSettings-multiplatform-settings.js +9 -9
- package/kotlin/doordeck-sdk.d.ts +2 -3
- package/kotlin/doordeck-sdk.js +12511 -12705
- package/kotlin/kotlin-kotlin-stdlib.js +1845 -2257
- package/kotlin/kotlinx-atomicfu.js +19 -19
- package/kotlin/kotlinx-coroutines-core.js +1923 -1923
- package/kotlin/kotlinx-io-kotlinx-io-core.js +454 -454
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +1937 -1937
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +1541 -1541
- package/kotlin/ktor-ktor-client-ktor-client-core.js +2846 -2847
- package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-auth.js +403 -400
- package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-content-negotiation.js +210 -210
- package/kotlin/ktor-ktor-http.js +814 -814
- package/kotlin/ktor-ktor-io.js +667 -667
- package/kotlin/ktor-ktor-shared-ktor-events.js +12 -12
- package/kotlin/ktor-ktor-shared-ktor-serialization-ktor-serialization-kotlinx-ktor-serialization-kotlinx-json.js +8 -8
- package/kotlin/ktor-ktor-shared-ktor-serialization-ktor-serialization-kotlinx.js +271 -271
- package/kotlin/ktor-ktor-shared-ktor-serialization.js +127 -127
- package/kotlin/ktor-ktor-shared-ktor-websockets.js +55 -55
- package/kotlin/ktor-ktor-utils.js +632 -632
- package/package.json +1 -1
- package/kotlin/Stately-stately-concurrency.js +0 -30
- package/kotlin/Stately-stately-concurrent-collections.js +0 -302
- package/kotlin/Stately-stately-strict.js +0 -10
- package/kotlin/projects-core-koin-core.js +0 -1147
|
@@ -2,38 +2,38 @@
|
|
|
2
2
|
'use strict';
|
|
3
3
|
//region block: imports
|
|
4
4
|
var imul = Math.imul;
|
|
5
|
-
var IndexOutOfBoundsException_init_$Create$ = kotlin_kotlin.$_$.
|
|
6
|
-
var Long = kotlin_kotlin.$_$.
|
|
7
|
-
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.
|
|
8
|
-
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.
|
|
9
|
-
var charArrayOf = kotlin_kotlin.$_$.
|
|
10
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
11
|
-
var toString = kotlin_kotlin.$_$.
|
|
12
|
-
var Unit_instance = kotlin_kotlin.$_$.
|
|
13
|
-
var toShort = kotlin_kotlin.$_$.
|
|
14
|
-
var ensureNotNull = kotlin_kotlin.$_$.
|
|
15
|
-
var toLong = kotlin_kotlin.$_$.
|
|
16
|
-
var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.
|
|
17
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
5
|
+
var IndexOutOfBoundsException_init_$Create$ = kotlin_kotlin.$_$.b2;
|
|
6
|
+
var Long = kotlin_kotlin.$_$.oe;
|
|
7
|
+
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.u1;
|
|
8
|
+
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.p2;
|
|
9
|
+
var charArrayOf = kotlin_kotlin.$_$.u9;
|
|
10
|
+
var protoOf = kotlin_kotlin.$_$.ib;
|
|
11
|
+
var toString = kotlin_kotlin.$_$.mb;
|
|
12
|
+
var Unit_instance = kotlin_kotlin.$_$.g5;
|
|
13
|
+
var toShort = kotlin_kotlin.$_$.lb;
|
|
14
|
+
var ensureNotNull = kotlin_kotlin.$_$.lf;
|
|
15
|
+
var toLong = kotlin_kotlin.$_$.kb;
|
|
16
|
+
var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.h1;
|
|
17
|
+
var initMetadataForClass = kotlin_kotlin.$_$.ia;
|
|
18
18
|
var VOID = kotlin_kotlin.$_$.h;
|
|
19
|
-
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.
|
|
20
|
-
var objectCreate = kotlin_kotlin.$_$.
|
|
21
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.
|
|
22
|
-
var arrayCopy = kotlin_kotlin.$_$.
|
|
23
|
-
var toByte = kotlin_kotlin.$_$.
|
|
24
|
-
var IllegalArgumentException_init_$Create$_0 = kotlin_kotlin.$_$.
|
|
25
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
26
|
-
var initMetadataForInterface = kotlin_kotlin.$_$.
|
|
27
|
-
var charSequenceGet = kotlin_kotlin.$_$.
|
|
28
|
-
var Char__toInt_impl_vasixd = kotlin_kotlin.$_$.
|
|
29
|
-
var charArray = kotlin_kotlin.$_$.
|
|
30
|
-
var numberToChar = kotlin_kotlin.$_$.
|
|
31
|
-
var concatToString = kotlin_kotlin.$_$.
|
|
32
|
-
var Exception_init_$Init$ = kotlin_kotlin.$_$.
|
|
33
|
-
var captureStack = kotlin_kotlin.$_$.
|
|
34
|
-
var Exception_init_$Init$_0 = kotlin_kotlin.$_$.
|
|
35
|
-
var Exception_init_$Init$_1 = kotlin_kotlin.$_$.
|
|
36
|
-
var Exception = kotlin_kotlin.$_$.
|
|
19
|
+
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.y1;
|
|
20
|
+
var objectCreate = kotlin_kotlin.$_$.hb;
|
|
21
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.ja;
|
|
22
|
+
var arrayCopy = kotlin_kotlin.$_$.w5;
|
|
23
|
+
var toByte = kotlin_kotlin.$_$.jb;
|
|
24
|
+
var IllegalArgumentException_init_$Create$_0 = kotlin_kotlin.$_$.s1;
|
|
25
|
+
var initMetadataForObject = kotlin_kotlin.$_$.oa;
|
|
26
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.ma;
|
|
27
|
+
var charSequenceGet = kotlin_kotlin.$_$.w9;
|
|
28
|
+
var Char__toInt_impl_vasixd = kotlin_kotlin.$_$.v2;
|
|
29
|
+
var charArray = kotlin_kotlin.$_$.v9;
|
|
30
|
+
var numberToChar = kotlin_kotlin.$_$.eb;
|
|
31
|
+
var concatToString = kotlin_kotlin.$_$.cc;
|
|
32
|
+
var Exception_init_$Init$ = kotlin_kotlin.$_$.m1;
|
|
33
|
+
var captureStack = kotlin_kotlin.$_$.t9;
|
|
34
|
+
var Exception_init_$Init$_0 = kotlin_kotlin.$_$.n1;
|
|
35
|
+
var Exception_init_$Init$_1 = kotlin_kotlin.$_$.o1;
|
|
36
|
+
var Exception = kotlin_kotlin.$_$.le;
|
|
37
37
|
//endregion
|
|
38
38
|
//region block: pre-declaration
|
|
39
39
|
initMetadataForInterface(Source, 'Source');
|
|
@@ -42,10 +42,10 @@
|
|
|
42
42
|
endIndex = endIndex === VOID ? source.length : endIndex;
|
|
43
43
|
var tmp;
|
|
44
44
|
if ($super === VOID) {
|
|
45
|
-
this.
|
|
45
|
+
this.l1c(source, startIndex, endIndex);
|
|
46
46
|
tmp = Unit_instance;
|
|
47
47
|
} else {
|
|
48
|
-
tmp = $super.
|
|
48
|
+
tmp = $super.l1c.call(this, source, startIndex, endIndex);
|
|
49
49
|
}
|
|
50
50
|
return tmp;
|
|
51
51
|
}
|
|
@@ -97,20 +97,20 @@
|
|
|
97
97
|
throw EOFException_init_$Create$_0("Buffer doesn't contain required number of bytes (size: " + $this.s().toString() + ', required: ' + byteCount.toString() + ')');
|
|
98
98
|
}
|
|
99
99
|
function Buffer() {
|
|
100
|
-
this.
|
|
101
|
-
this.
|
|
102
|
-
this.
|
|
100
|
+
this.z1a_1 = null;
|
|
101
|
+
this.a1b_1 = null;
|
|
102
|
+
this.b1b_1 = new Long(0, 0);
|
|
103
103
|
}
|
|
104
104
|
protoOf(Buffer).s = function () {
|
|
105
|
-
return this.
|
|
105
|
+
return this.b1b_1;
|
|
106
106
|
};
|
|
107
|
-
protoOf(Buffer).
|
|
107
|
+
protoOf(Buffer).c1b = function () {
|
|
108
108
|
return this;
|
|
109
109
|
};
|
|
110
|
-
protoOf(Buffer).
|
|
110
|
+
protoOf(Buffer).d1b = function () {
|
|
111
111
|
return this.s().equals(new Long(0, 0));
|
|
112
112
|
};
|
|
113
|
-
protoOf(Buffer).
|
|
113
|
+
protoOf(Buffer).e1b = function (byteCount) {
|
|
114
114
|
// Inline function 'kotlin.require' call
|
|
115
115
|
if (!(byteCount.e1(new Long(0, 0)) >= 0)) {
|
|
116
116
|
// Inline function 'kotlinx.io.Buffer.require.<anonymous>' call
|
|
@@ -121,7 +121,7 @@
|
|
|
121
121
|
throw EOFException_init_$Create$_0("Buffer doesn't contain required number of bytes (size: " + this.s().toString() + ', required: ' + byteCount.toString() + ')');
|
|
122
122
|
}
|
|
123
123
|
};
|
|
124
|
-
protoOf(Buffer).
|
|
124
|
+
protoOf(Buffer).f1b = function (byteCount) {
|
|
125
125
|
// Inline function 'kotlin.require' call
|
|
126
126
|
if (!(byteCount.e1(new Long(0, 0)) >= 0)) {
|
|
127
127
|
// Inline function 'kotlinx.io.Buffer.request.<anonymous>' call
|
|
@@ -130,8 +130,8 @@
|
|
|
130
130
|
}
|
|
131
131
|
return this.s().e1(byteCount) >= 0;
|
|
132
132
|
};
|
|
133
|
-
protoOf(Buffer).
|
|
134
|
-
var tmp0_elvis_lhs = this.
|
|
133
|
+
protoOf(Buffer).g1b = function () {
|
|
134
|
+
var tmp0_elvis_lhs = this.z1a_1;
|
|
135
135
|
var tmp;
|
|
136
136
|
if (tmp0_elvis_lhs == null) {
|
|
137
137
|
throwEof(this, new Long(1, 0));
|
|
@@ -139,20 +139,20 @@
|
|
|
139
139
|
tmp = tmp0_elvis_lhs;
|
|
140
140
|
}
|
|
141
141
|
var segment = tmp;
|
|
142
|
-
var segmentSize = segment.
|
|
142
|
+
var segmentSize = segment.o1b();
|
|
143
143
|
if (segmentSize === 0) {
|
|
144
|
-
this.
|
|
145
|
-
return this.
|
|
144
|
+
this.p1b();
|
|
145
|
+
return this.g1b();
|
|
146
146
|
}
|
|
147
|
-
var v = segment.
|
|
148
|
-
this.
|
|
147
|
+
var v = segment.q1b();
|
|
148
|
+
this.b1b_1 = this.b1b_1.a3(new Long(1, 0));
|
|
149
149
|
if (segmentSize === 1) {
|
|
150
|
-
this.
|
|
150
|
+
this.p1b();
|
|
151
151
|
}
|
|
152
152
|
return v;
|
|
153
153
|
};
|
|
154
|
-
protoOf(Buffer).
|
|
155
|
-
var tmp0_elvis_lhs = this.
|
|
154
|
+
protoOf(Buffer).r1b = function () {
|
|
155
|
+
var tmp0_elvis_lhs = this.z1a_1;
|
|
156
156
|
var tmp;
|
|
157
157
|
if (tmp0_elvis_lhs == null) {
|
|
158
158
|
throwEof(this, new Long(2, 0));
|
|
@@ -160,80 +160,80 @@
|
|
|
160
160
|
tmp = tmp0_elvis_lhs;
|
|
161
161
|
}
|
|
162
162
|
var segment = tmp;
|
|
163
|
-
var segmentSize = segment.
|
|
163
|
+
var segmentSize = segment.o1b();
|
|
164
164
|
if (segmentSize < 2) {
|
|
165
|
-
this.
|
|
165
|
+
this.e1b(new Long(2, 0));
|
|
166
166
|
if (segmentSize === 0) {
|
|
167
|
-
this.
|
|
168
|
-
return this.
|
|
167
|
+
this.p1b();
|
|
168
|
+
return this.r1b();
|
|
169
169
|
}
|
|
170
170
|
// Inline function 'kotlinx.io.and' call
|
|
171
|
-
var tmp_0 = (this.
|
|
171
|
+
var tmp_0 = (this.g1b() & 255) << 8;
|
|
172
172
|
// Inline function 'kotlinx.io.and' call
|
|
173
|
-
var tmp$ret$1 = this.
|
|
173
|
+
var tmp$ret$1 = this.g1b() & 255;
|
|
174
174
|
return toShort(tmp_0 | tmp$ret$1);
|
|
175
175
|
}
|
|
176
|
-
var v = segment.
|
|
177
|
-
this.
|
|
176
|
+
var v = segment.s1b();
|
|
177
|
+
this.b1b_1 = this.b1b_1.a3(new Long(2, 0));
|
|
178
178
|
if (segmentSize === 2) {
|
|
179
|
-
this.
|
|
179
|
+
this.p1b();
|
|
180
180
|
}
|
|
181
181
|
return v;
|
|
182
182
|
};
|
|
183
|
-
protoOf(Buffer).
|
|
183
|
+
protoOf(Buffer).t1b = function () {
|
|
184
184
|
return Unit_instance;
|
|
185
185
|
};
|
|
186
|
-
protoOf(Buffer).
|
|
186
|
+
protoOf(Buffer).u1b = function (out, startIndex, endIndex) {
|
|
187
187
|
checkBounds(this.s(), startIndex, endIndex);
|
|
188
188
|
if (startIndex.equals(endIndex))
|
|
189
189
|
return Unit_instance;
|
|
190
190
|
var currentOffset = startIndex;
|
|
191
191
|
var remainingByteCount = endIndex.a3(startIndex);
|
|
192
|
-
out.
|
|
193
|
-
var s = this.
|
|
194
|
-
while (currentOffset.e1(toLong(ensureNotNull(s).
|
|
195
|
-
currentOffset = currentOffset.a3(toLong(s.
|
|
196
|
-
s = s.
|
|
192
|
+
out.b1b_1 = out.b1b_1.z2(remainingByteCount);
|
|
193
|
+
var s = this.z1a_1;
|
|
194
|
+
while (currentOffset.e1(toLong(ensureNotNull(s).j1b_1 - s.i1b_1 | 0)) >= 0) {
|
|
195
|
+
currentOffset = currentOffset.a3(toLong(s.j1b_1 - s.i1b_1 | 0));
|
|
196
|
+
s = s.m1b_1;
|
|
197
197
|
}
|
|
198
198
|
while (remainingByteCount.e1(new Long(0, 0)) > 0) {
|
|
199
|
-
var copy = ensureNotNull(s).
|
|
200
|
-
copy.
|
|
199
|
+
var copy = ensureNotNull(s).v1b();
|
|
200
|
+
copy.i1b_1 = copy.i1b_1 + currentOffset.j1() | 0;
|
|
201
201
|
var tmp = copy;
|
|
202
|
-
var tmp0 = copy.
|
|
202
|
+
var tmp0 = copy.i1b_1 + remainingByteCount.j1() | 0;
|
|
203
203
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
204
|
-
var b = copy.
|
|
205
|
-
tmp.
|
|
204
|
+
var b = copy.j1b_1;
|
|
205
|
+
tmp.j1b_1 = Math.min(tmp0, b);
|
|
206
206
|
// Inline function 'kotlinx.io.Buffer.pushSegment' call
|
|
207
|
-
if (out.
|
|
208
|
-
out.
|
|
209
|
-
out.
|
|
207
|
+
if (out.z1a_1 == null) {
|
|
208
|
+
out.z1a_1 = copy;
|
|
209
|
+
out.a1b_1 = copy;
|
|
210
210
|
} else if (false) {
|
|
211
|
-
out.
|
|
212
|
-
if (ensureNotNull(out.
|
|
213
|
-
out.
|
|
211
|
+
out.a1b_1 = ensureNotNull(out.a1b_1).w1b(copy).x1b();
|
|
212
|
+
if (ensureNotNull(out.a1b_1).n1b_1 == null) {
|
|
213
|
+
out.z1a_1 = out.a1b_1;
|
|
214
214
|
}
|
|
215
215
|
} else {
|
|
216
|
-
out.
|
|
216
|
+
out.a1b_1 = ensureNotNull(out.a1b_1).w1b(copy);
|
|
217
217
|
}
|
|
218
|
-
remainingByteCount = remainingByteCount.a3(toLong(copy.
|
|
218
|
+
remainingByteCount = remainingByteCount.a3(toLong(copy.j1b_1 - copy.i1b_1 | 0));
|
|
219
219
|
currentOffset = new Long(0, 0);
|
|
220
|
-
s = s.
|
|
220
|
+
s = s.m1b_1;
|
|
221
221
|
}
|
|
222
222
|
};
|
|
223
|
-
protoOf(Buffer).
|
|
223
|
+
protoOf(Buffer).y1b = function () {
|
|
224
224
|
var result = this.s();
|
|
225
225
|
if (result.equals(new Long(0, 0)))
|
|
226
226
|
return new Long(0, 0);
|
|
227
|
-
var tail = ensureNotNull(this.
|
|
228
|
-
if (tail.
|
|
229
|
-
result = result.a3(toLong(tail.
|
|
227
|
+
var tail = ensureNotNull(this.a1b_1);
|
|
228
|
+
if (tail.j1b_1 < 8192 && tail.l1b_1) {
|
|
229
|
+
result = result.a3(toLong(tail.j1b_1 - tail.i1b_1 | 0));
|
|
230
230
|
}
|
|
231
231
|
return result;
|
|
232
232
|
};
|
|
233
233
|
protoOf(Buffer).e2 = function () {
|
|
234
|
-
return this.
|
|
234
|
+
return this.z1b(this.s());
|
|
235
235
|
};
|
|
236
|
-
protoOf(Buffer).
|
|
236
|
+
protoOf(Buffer).z1b = function (byteCount) {
|
|
237
237
|
// Inline function 'kotlinx.io.checkByteCount' call
|
|
238
238
|
// Inline function 'kotlin.require' call
|
|
239
239
|
if (!(byteCount.e1(new Long(0, 0)) >= 0)) {
|
|
@@ -243,7 +243,7 @@
|
|
|
243
243
|
}
|
|
244
244
|
var remainingByteCount = byteCount;
|
|
245
245
|
while (remainingByteCount.e1(new Long(0, 0)) > 0) {
|
|
246
|
-
var tmp0_elvis_lhs = this.
|
|
246
|
+
var tmp0_elvis_lhs = this.z1a_1;
|
|
247
247
|
var tmp;
|
|
248
248
|
if (tmp0_elvis_lhs == null) {
|
|
249
249
|
throw EOFException_init_$Create$_0('Buffer exhausted before skipping ' + byteCount.toString() + ' bytes.');
|
|
@@ -253,23 +253,23 @@
|
|
|
253
253
|
var head = tmp;
|
|
254
254
|
var tmp1 = remainingByteCount;
|
|
255
255
|
// Inline function 'kotlinx.io.minOf' call
|
|
256
|
-
var b = head.
|
|
256
|
+
var b = head.j1b_1 - head.i1b_1 | 0;
|
|
257
257
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
258
258
|
var b_0 = toLong(b);
|
|
259
259
|
var toSkip = (tmp1.e1(b_0) <= 0 ? tmp1 : b_0).j1();
|
|
260
|
-
this.
|
|
260
|
+
this.b1b_1 = this.b1b_1.a3(toLong(toSkip));
|
|
261
261
|
remainingByteCount = remainingByteCount.a3(toLong(toSkip));
|
|
262
|
-
head.
|
|
263
|
-
if (head.
|
|
264
|
-
this.
|
|
262
|
+
head.i1b_1 = head.i1b_1 + toSkip | 0;
|
|
263
|
+
if (head.i1b_1 === head.j1b_1) {
|
|
264
|
+
this.p1b();
|
|
265
265
|
}
|
|
266
266
|
}
|
|
267
267
|
};
|
|
268
|
-
protoOf(Buffer).
|
|
268
|
+
protoOf(Buffer).a1c = function (sink, startIndex, endIndex) {
|
|
269
269
|
// Inline function 'kotlinx.io.checkBounds' call
|
|
270
270
|
var size = sink.length;
|
|
271
271
|
checkBounds(toLong(size), toLong(startIndex), toLong(endIndex));
|
|
272
|
-
var tmp0_elvis_lhs = this.
|
|
272
|
+
var tmp0_elvis_lhs = this.z1a_1;
|
|
273
273
|
var tmp;
|
|
274
274
|
if (tmp0_elvis_lhs == null) {
|
|
275
275
|
return -1;
|
|
@@ -279,16 +279,16 @@
|
|
|
279
279
|
var s = tmp;
|
|
280
280
|
var tmp3 = endIndex - startIndex | 0;
|
|
281
281
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
282
|
-
var b = s.
|
|
282
|
+
var b = s.o1b();
|
|
283
283
|
var toCopy = Math.min(tmp3, b);
|
|
284
|
-
s.
|
|
285
|
-
this.
|
|
284
|
+
s.b1c(sink, startIndex, startIndex + toCopy | 0);
|
|
285
|
+
this.b1b_1 = this.b1b_1.a3(toLong(toCopy));
|
|
286
286
|
if (isEmpty(s)) {
|
|
287
|
-
this.
|
|
287
|
+
this.p1b();
|
|
288
288
|
}
|
|
289
289
|
return toCopy;
|
|
290
290
|
};
|
|
291
|
-
protoOf(Buffer).
|
|
291
|
+
protoOf(Buffer).c1c = function (sink, byteCount) {
|
|
292
292
|
// Inline function 'kotlinx.io.checkByteCount' call
|
|
293
293
|
// Inline function 'kotlin.require' call
|
|
294
294
|
if (!(byteCount.e1(new Long(0, 0)) >= 0)) {
|
|
@@ -299,10 +299,10 @@
|
|
|
299
299
|
if (this.s().equals(new Long(0, 0)))
|
|
300
300
|
return new Long(-1, -1);
|
|
301
301
|
var bytesWritten = byteCount.e1(this.s()) > 0 ? this.s() : byteCount;
|
|
302
|
-
sink.
|
|
302
|
+
sink.d1c(this, bytesWritten);
|
|
303
303
|
return bytesWritten;
|
|
304
304
|
};
|
|
305
|
-
protoOf(Buffer).
|
|
305
|
+
protoOf(Buffer).e1c = function (sink, byteCount) {
|
|
306
306
|
// Inline function 'kotlinx.io.checkByteCount' call
|
|
307
307
|
// Inline function 'kotlin.require' call
|
|
308
308
|
if (!(byteCount.e1(new Long(0, 0)) >= 0)) {
|
|
@@ -311,137 +311,137 @@
|
|
|
311
311
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
312
312
|
}
|
|
313
313
|
if (this.s().e1(byteCount) < 0) {
|
|
314
|
-
sink.
|
|
314
|
+
sink.d1c(this, this.s());
|
|
315
315
|
throw EOFException_init_$Create$_0('Buffer exhausted before writing ' + byteCount.toString() + ' bytes. Only ' + this.s().toString() + ' bytes were written.');
|
|
316
316
|
}
|
|
317
|
-
sink.
|
|
317
|
+
sink.d1c(this, byteCount);
|
|
318
318
|
};
|
|
319
|
-
protoOf(Buffer).
|
|
319
|
+
protoOf(Buffer).f1c = function (sink) {
|
|
320
320
|
var byteCount = this.s();
|
|
321
321
|
if (byteCount.e1(new Long(0, 0)) > 0) {
|
|
322
|
-
sink.
|
|
322
|
+
sink.d1c(this, byteCount);
|
|
323
323
|
}
|
|
324
324
|
return byteCount;
|
|
325
325
|
};
|
|
326
|
-
protoOf(Buffer).
|
|
326
|
+
protoOf(Buffer).g1c = function () {
|
|
327
327
|
return buffered(new PeekSource(this));
|
|
328
328
|
};
|
|
329
|
-
protoOf(Buffer).
|
|
329
|
+
protoOf(Buffer).h1c = function (minimumCapacity) {
|
|
330
330
|
// Inline function 'kotlin.require' call
|
|
331
331
|
if (!(minimumCapacity >= 1 && minimumCapacity <= 8192)) {
|
|
332
332
|
// Inline function 'kotlinx.io.Buffer.writableSegment.<anonymous>' call
|
|
333
333
|
var message = 'unexpected capacity';
|
|
334
334
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
335
335
|
}
|
|
336
|
-
if (this.
|
|
337
|
-
var result = SegmentPool_instance.
|
|
338
|
-
this.
|
|
339
|
-
this.
|
|
336
|
+
if (this.a1b_1 == null) {
|
|
337
|
+
var result = SegmentPool_instance.k1c();
|
|
338
|
+
this.z1a_1 = result;
|
|
339
|
+
this.a1b_1 = result;
|
|
340
340
|
return result;
|
|
341
341
|
}
|
|
342
|
-
var t = ensureNotNull(this.
|
|
343
|
-
if ((t.
|
|
344
|
-
var newTail = t.
|
|
345
|
-
this.
|
|
342
|
+
var t = ensureNotNull(this.a1b_1);
|
|
343
|
+
if ((t.j1b_1 + minimumCapacity | 0) > 8192 || !t.l1b_1) {
|
|
344
|
+
var newTail = t.w1b(SegmentPool_instance.k1c());
|
|
345
|
+
this.a1b_1 = newTail;
|
|
346
346
|
return newTail;
|
|
347
347
|
}
|
|
348
348
|
return t;
|
|
349
349
|
};
|
|
350
|
-
protoOf(Buffer).
|
|
350
|
+
protoOf(Buffer).l1c = function (source, startIndex, endIndex) {
|
|
351
351
|
// Inline function 'kotlinx.io.checkBounds' call
|
|
352
352
|
var size = source.length;
|
|
353
353
|
checkBounds(toLong(size), toLong(startIndex), toLong(endIndex));
|
|
354
354
|
var currentOffset = startIndex;
|
|
355
355
|
while (currentOffset < endIndex) {
|
|
356
|
-
var tail = this.
|
|
356
|
+
var tail = this.h1c(1);
|
|
357
357
|
var tmp3 = endIndex - currentOffset | 0;
|
|
358
358
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
359
|
-
var b = tail.
|
|
359
|
+
var b = tail.m1c();
|
|
360
360
|
var toCopy = Math.min(tmp3, b);
|
|
361
|
-
tail.
|
|
361
|
+
tail.n1c(source, currentOffset, currentOffset + toCopy | 0);
|
|
362
362
|
currentOffset = currentOffset + toCopy | 0;
|
|
363
363
|
}
|
|
364
364
|
var tmp = this;
|
|
365
|
-
var tmp5 = this.
|
|
365
|
+
var tmp5 = this.b1b_1;
|
|
366
366
|
// Inline function 'kotlin.Long.plus' call
|
|
367
367
|
var other = endIndex - startIndex | 0;
|
|
368
|
-
tmp.
|
|
368
|
+
tmp.b1b_1 = tmp5.z2(toLong(other));
|
|
369
369
|
};
|
|
370
|
-
protoOf(Buffer).
|
|
370
|
+
protoOf(Buffer).d1c = function (source, byteCount) {
|
|
371
371
|
// Inline function 'kotlin.require' call
|
|
372
372
|
if (!!(source === this)) {
|
|
373
373
|
// Inline function 'kotlinx.io.Buffer.write.<anonymous>' call
|
|
374
374
|
var message = 'source == this';
|
|
375
375
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
376
376
|
}
|
|
377
|
-
checkOffsetAndCount(source.
|
|
377
|
+
checkOffsetAndCount(source.b1b_1, new Long(0, 0), byteCount);
|
|
378
378
|
var remainingByteCount = byteCount;
|
|
379
379
|
while (remainingByteCount.e1(new Long(0, 0)) > 0) {
|
|
380
|
-
if (remainingByteCount.e1(toLong(ensureNotNull(source.
|
|
381
|
-
var tail = this.
|
|
380
|
+
if (remainingByteCount.e1(toLong(ensureNotNull(source.z1a_1).o1b())) < 0) {
|
|
381
|
+
var tail = this.a1b_1;
|
|
382
382
|
var tmp;
|
|
383
|
-
if (!(tail == null) && tail.
|
|
383
|
+
if (!(tail == null) && tail.l1b_1) {
|
|
384
384
|
var tmp1 = remainingByteCount;
|
|
385
385
|
// Inline function 'kotlin.Long.plus' call
|
|
386
|
-
var other = tail.
|
|
386
|
+
var other = tail.j1b_1;
|
|
387
387
|
var tmp3 = tmp1.z2(toLong(other));
|
|
388
388
|
// Inline function 'kotlin.Long.minus' call
|
|
389
|
-
var other_0 = tail.
|
|
389
|
+
var other_0 = tail.p1c() ? 0 : tail.i1b_1;
|
|
390
390
|
tmp = tmp3.a3(toLong(other_0)).e1(new Long(8192, 0)) <= 0;
|
|
391
391
|
} else {
|
|
392
392
|
tmp = false;
|
|
393
393
|
}
|
|
394
394
|
if (tmp) {
|
|
395
|
-
ensureNotNull(source.
|
|
396
|
-
source.
|
|
397
|
-
this.
|
|
395
|
+
ensureNotNull(source.z1a_1).r1c(tail, remainingByteCount.j1());
|
|
396
|
+
source.b1b_1 = source.b1b_1.a3(remainingByteCount);
|
|
397
|
+
this.b1b_1 = this.b1b_1.z2(remainingByteCount);
|
|
398
398
|
return Unit_instance;
|
|
399
399
|
} else {
|
|
400
|
-
source.
|
|
400
|
+
source.z1a_1 = ensureNotNull(source.z1a_1).q1c(remainingByteCount.j1());
|
|
401
401
|
}
|
|
402
402
|
}
|
|
403
|
-
var segmentToMove = ensureNotNull(source.
|
|
404
|
-
var movedByteCount = toLong(segmentToMove.
|
|
405
|
-
source.
|
|
406
|
-
if (source.
|
|
407
|
-
source.
|
|
403
|
+
var segmentToMove = ensureNotNull(source.z1a_1);
|
|
404
|
+
var movedByteCount = toLong(segmentToMove.o1b());
|
|
405
|
+
source.z1a_1 = segmentToMove.s1c();
|
|
406
|
+
if (source.z1a_1 == null) {
|
|
407
|
+
source.a1b_1 = null;
|
|
408
408
|
}
|
|
409
409
|
// Inline function 'kotlinx.io.Buffer.pushSegment' call
|
|
410
|
-
if (this.
|
|
411
|
-
this.
|
|
412
|
-
this.
|
|
410
|
+
if (this.z1a_1 == null) {
|
|
411
|
+
this.z1a_1 = segmentToMove;
|
|
412
|
+
this.a1b_1 = segmentToMove;
|
|
413
413
|
} else if (true) {
|
|
414
|
-
this.
|
|
415
|
-
if (ensureNotNull(this.
|
|
416
|
-
this.
|
|
414
|
+
this.a1b_1 = ensureNotNull(this.a1b_1).w1b(segmentToMove).x1b();
|
|
415
|
+
if (ensureNotNull(this.a1b_1).n1b_1 == null) {
|
|
416
|
+
this.z1a_1 = this.a1b_1;
|
|
417
417
|
}
|
|
418
418
|
} else {
|
|
419
|
-
this.
|
|
419
|
+
this.a1b_1 = ensureNotNull(this.a1b_1).w1b(segmentToMove);
|
|
420
420
|
}
|
|
421
|
-
source.
|
|
422
|
-
this.
|
|
421
|
+
source.b1b_1 = source.b1b_1.a3(movedByteCount);
|
|
422
|
+
this.b1b_1 = this.b1b_1.z2(movedByteCount);
|
|
423
423
|
remainingByteCount = remainingByteCount.a3(movedByteCount);
|
|
424
424
|
}
|
|
425
425
|
};
|
|
426
|
-
protoOf(Buffer).
|
|
426
|
+
protoOf(Buffer).t1c = function (source) {
|
|
427
427
|
var totalBytesRead = new Long(0, 0);
|
|
428
428
|
$l$loop: while (true) {
|
|
429
|
-
var readCount = source.
|
|
429
|
+
var readCount = source.c1c(this, new Long(8192, 0));
|
|
430
430
|
if (readCount.equals(new Long(-1, -1)))
|
|
431
431
|
break $l$loop;
|
|
432
432
|
totalBytesRead = totalBytesRead.z2(readCount);
|
|
433
433
|
}
|
|
434
434
|
return totalBytesRead;
|
|
435
435
|
};
|
|
436
|
-
protoOf(Buffer).
|
|
437
|
-
this.
|
|
438
|
-
this.
|
|
436
|
+
protoOf(Buffer).u1c = function (byte) {
|
|
437
|
+
this.h1c(1).v1c(byte);
|
|
438
|
+
this.b1b_1 = this.b1b_1.z2(new Long(1, 0));
|
|
439
439
|
};
|
|
440
|
-
protoOf(Buffer).
|
|
441
|
-
this.
|
|
442
|
-
this.
|
|
440
|
+
protoOf(Buffer).w1c = function (short) {
|
|
441
|
+
this.h1c(2).x1c(short);
|
|
442
|
+
this.b1b_1 = this.b1b_1.z2(new Long(2, 0));
|
|
443
443
|
};
|
|
444
|
-
protoOf(Buffer).
|
|
444
|
+
protoOf(Buffer).y1c = function () {
|
|
445
445
|
return Unit_instance;
|
|
446
446
|
};
|
|
447
447
|
protoOf(Buffer).toString = function () {
|
|
@@ -456,74 +456,74 @@
|
|
|
456
456
|
var builder = StringBuilder_init_$Create$(imul(len, 2) + (this.s().e1(toLong(maxPrintableBytes)) > 0 ? 1 : 0) | 0);
|
|
457
457
|
var bytesWritten = 0;
|
|
458
458
|
// Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.forEachSegment' call
|
|
459
|
-
var curr = this.
|
|
459
|
+
var curr = this.z1a_1;
|
|
460
460
|
while (!(curr == null)) {
|
|
461
461
|
var tmp4 = get_SegmentReadContextImpl();
|
|
462
462
|
// Inline function 'kotlinx.io.Buffer.toString.<anonymous>' call
|
|
463
463
|
var segment = curr;
|
|
464
464
|
var idx = 0;
|
|
465
|
-
while (bytesWritten < len && idx < segment.
|
|
465
|
+
while (bytesWritten < len && idx < segment.o1b()) {
|
|
466
466
|
var _unary__edvuaz = idx;
|
|
467
467
|
idx = _unary__edvuaz + 1 | 0;
|
|
468
|
-
var b_0 = tmp4.
|
|
468
|
+
var b_0 = tmp4.z1c(segment, _unary__edvuaz);
|
|
469
469
|
bytesWritten = bytesWritten + 1 | 0;
|
|
470
470
|
var tmp = get_HEX_DIGIT_CHARS();
|
|
471
471
|
// Inline function 'kotlinx.io.shr' call
|
|
472
472
|
var tmp$ret$2 = b_0 >> 4;
|
|
473
|
-
var tmp_0 = builder.
|
|
473
|
+
var tmp_0 = builder.p8(tmp[tmp$ret$2 & 15]);
|
|
474
474
|
var tmp_1 = get_HEX_DIGIT_CHARS();
|
|
475
475
|
// Inline function 'kotlinx.io.and' call
|
|
476
476
|
var tmp$ret$3 = b_0 & 15;
|
|
477
|
-
tmp_0.
|
|
477
|
+
tmp_0.p8(tmp_1[tmp$ret$3]);
|
|
478
478
|
}
|
|
479
|
-
curr = curr.
|
|
479
|
+
curr = curr.m1b_1;
|
|
480
480
|
}
|
|
481
481
|
if (this.s().e1(toLong(maxPrintableBytes)) > 0) {
|
|
482
|
-
builder.
|
|
482
|
+
builder.p8(_Char___init__impl__6a9atx(8230));
|
|
483
483
|
}
|
|
484
484
|
return 'Buffer(size=' + this.s().toString() + ' hex=' + builder.toString() + ')';
|
|
485
485
|
};
|
|
486
|
-
protoOf(Buffer).
|
|
487
|
-
var oldHead = ensureNotNull(this.
|
|
488
|
-
var nextHead = oldHead.
|
|
489
|
-
this.
|
|
486
|
+
protoOf(Buffer).p1b = function () {
|
|
487
|
+
var oldHead = ensureNotNull(this.z1a_1);
|
|
488
|
+
var nextHead = oldHead.m1b_1;
|
|
489
|
+
this.z1a_1 = nextHead;
|
|
490
490
|
if (nextHead == null) {
|
|
491
|
-
this.
|
|
491
|
+
this.a1b_1 = null;
|
|
492
492
|
} else {
|
|
493
|
-
nextHead.
|
|
493
|
+
nextHead.n1b_1 = null;
|
|
494
494
|
}
|
|
495
|
-
oldHead.
|
|
496
|
-
SegmentPool_instance.
|
|
495
|
+
oldHead.m1b_1 = null;
|
|
496
|
+
SegmentPool_instance.a1d(oldHead);
|
|
497
497
|
};
|
|
498
|
-
protoOf(Buffer).
|
|
499
|
-
var oldTail = ensureNotNull(this.
|
|
500
|
-
var newTail = oldTail.
|
|
501
|
-
this.
|
|
498
|
+
protoOf(Buffer).b1d = function () {
|
|
499
|
+
var oldTail = ensureNotNull(this.a1b_1);
|
|
500
|
+
var newTail = oldTail.n1b_1;
|
|
501
|
+
this.a1b_1 = newTail;
|
|
502
502
|
if (newTail == null) {
|
|
503
|
-
this.
|
|
503
|
+
this.z1a_1 = null;
|
|
504
504
|
} else {
|
|
505
|
-
newTail.
|
|
505
|
+
newTail.m1b_1 = null;
|
|
506
506
|
}
|
|
507
|
-
oldTail.
|
|
508
|
-
SegmentPool_instance.
|
|
507
|
+
oldTail.n1b_1 = null;
|
|
508
|
+
SegmentPool_instance.a1d(oldTail);
|
|
509
509
|
};
|
|
510
510
|
function buffered(_this__u8e3s4) {
|
|
511
511
|
return new RealSource(_this__u8e3s4);
|
|
512
512
|
}
|
|
513
513
|
function PeekSource(upstream) {
|
|
514
|
-
this.
|
|
515
|
-
this.
|
|
516
|
-
this.
|
|
514
|
+
this.c1d_1 = upstream;
|
|
515
|
+
this.d1d_1 = this.c1d_1.c1b();
|
|
516
|
+
this.e1d_1 = this.d1d_1.z1a_1;
|
|
517
517
|
var tmp = this;
|
|
518
|
-
var tmp0_safe_receiver = this.
|
|
519
|
-
var tmp0_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
520
|
-
tmp.
|
|
521
|
-
this.
|
|
522
|
-
this.
|
|
518
|
+
var tmp0_safe_receiver = this.d1d_1.z1a_1;
|
|
519
|
+
var tmp0_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.i1b_1;
|
|
520
|
+
tmp.f1d_1 = tmp0_elvis_lhs == null ? -1 : tmp0_elvis_lhs;
|
|
521
|
+
this.g1d_1 = false;
|
|
522
|
+
this.h1d_1 = new Long(0, 0);
|
|
523
523
|
}
|
|
524
|
-
protoOf(PeekSource).
|
|
524
|
+
protoOf(PeekSource).c1c = function (sink, byteCount) {
|
|
525
525
|
// Inline function 'kotlin.check' call
|
|
526
|
-
if (!!this.
|
|
526
|
+
if (!!this.g1d_1) {
|
|
527
527
|
// Inline function 'kotlinx.io.PeekSource.readAtMostTo.<anonymous>' call
|
|
528
528
|
var message = 'Source is closed.';
|
|
529
529
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
@@ -536,7 +536,7 @@
|
|
|
536
536
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
537
537
|
}
|
|
538
538
|
// Inline function 'kotlin.check' call
|
|
539
|
-
if (!(this.
|
|
539
|
+
if (!(this.e1d_1 == null || (this.e1d_1 === this.d1d_1.z1a_1 && this.f1d_1 === ensureNotNull(this.d1d_1.z1a_1).i1b_1))) {
|
|
540
540
|
// Inline function 'kotlinx.io.PeekSource.readAtMostTo.<anonymous>' call
|
|
541
541
|
var message_1 = 'Peek source is invalid because upstream source was used';
|
|
542
542
|
throw IllegalStateException_init_$Create$(toString(message_1));
|
|
@@ -544,35 +544,35 @@
|
|
|
544
544
|
if (byteCount.equals(new Long(0, 0)))
|
|
545
545
|
return new Long(0, 0);
|
|
546
546
|
// Inline function 'kotlin.Long.plus' call
|
|
547
|
-
var tmp$ret$3 = this.
|
|
548
|
-
if (!this.
|
|
547
|
+
var tmp$ret$3 = this.h1d_1.z2(toLong(1));
|
|
548
|
+
if (!this.c1d_1.f1b(tmp$ret$3))
|
|
549
549
|
return new Long(-1, -1);
|
|
550
|
-
if (this.
|
|
551
|
-
this.
|
|
552
|
-
this.
|
|
550
|
+
if (this.e1d_1 == null && !(this.d1d_1.z1a_1 == null)) {
|
|
551
|
+
this.e1d_1 = this.d1d_1.z1a_1;
|
|
552
|
+
this.f1d_1 = ensureNotNull(this.d1d_1.z1a_1).i1b_1;
|
|
553
553
|
}
|
|
554
554
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
555
|
-
var b = this.
|
|
555
|
+
var b = this.d1d_1.s().a3(this.h1d_1);
|
|
556
556
|
var toCopy = byteCount.e1(b) <= 0 ? byteCount : b;
|
|
557
|
-
this.
|
|
558
|
-
this.
|
|
557
|
+
this.d1d_1.u1b(sink, this.h1d_1, this.h1d_1.z2(toCopy));
|
|
558
|
+
this.h1d_1 = this.h1d_1.z2(toCopy);
|
|
559
559
|
return toCopy;
|
|
560
560
|
};
|
|
561
|
-
protoOf(PeekSource).
|
|
562
|
-
this.
|
|
561
|
+
protoOf(PeekSource).y1c = function () {
|
|
562
|
+
this.g1d_1 = true;
|
|
563
563
|
};
|
|
564
564
|
function RealSource(source) {
|
|
565
|
-
this.
|
|
566
|
-
this.
|
|
567
|
-
this.
|
|
565
|
+
this.i1d_1 = source;
|
|
566
|
+
this.j1d_1 = false;
|
|
567
|
+
this.k1d_1 = new Buffer();
|
|
568
568
|
}
|
|
569
|
-
protoOf(RealSource).
|
|
570
|
-
return this.
|
|
569
|
+
protoOf(RealSource).c1b = function () {
|
|
570
|
+
return this.k1d_1;
|
|
571
571
|
};
|
|
572
|
-
protoOf(RealSource).
|
|
572
|
+
protoOf(RealSource).c1c = function (sink, byteCount) {
|
|
573
573
|
// Inline function 'kotlinx.io.RealSource.checkNotClosed' call
|
|
574
574
|
// Inline function 'kotlin.check' call
|
|
575
|
-
if (!!this.
|
|
575
|
+
if (!!this.j1d_1) {
|
|
576
576
|
// Inline function 'kotlinx.io.RealSource.checkNotClosed.<anonymous>' call
|
|
577
577
|
var message = 'Source is closed.';
|
|
578
578
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
@@ -583,34 +583,34 @@
|
|
|
583
583
|
var message_0 = 'byteCount: ' + byteCount.toString();
|
|
584
584
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
585
585
|
}
|
|
586
|
-
if (this.
|
|
587
|
-
var read = this.
|
|
586
|
+
if (this.k1d_1.s().equals(new Long(0, 0))) {
|
|
587
|
+
var read = this.i1d_1.c1c(this.k1d_1, new Long(8192, 0));
|
|
588
588
|
if (read.equals(new Long(-1, -1)))
|
|
589
589
|
return new Long(-1, -1);
|
|
590
590
|
}
|
|
591
591
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
592
|
-
var b = this.
|
|
592
|
+
var b = this.k1d_1.s();
|
|
593
593
|
var toRead = byteCount.e1(b) <= 0 ? byteCount : b;
|
|
594
|
-
return this.
|
|
594
|
+
return this.k1d_1.c1c(sink, toRead);
|
|
595
595
|
};
|
|
596
|
-
protoOf(RealSource).
|
|
596
|
+
protoOf(RealSource).d1b = function () {
|
|
597
597
|
// Inline function 'kotlinx.io.RealSource.checkNotClosed' call
|
|
598
598
|
// Inline function 'kotlin.check' call
|
|
599
|
-
if (!!this.
|
|
599
|
+
if (!!this.j1d_1) {
|
|
600
600
|
// Inline function 'kotlinx.io.RealSource.checkNotClosed.<anonymous>' call
|
|
601
601
|
var message = 'Source is closed.';
|
|
602
602
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
603
603
|
}
|
|
604
|
-
return this.
|
|
604
|
+
return this.k1d_1.d1b() && this.i1d_1.c1c(this.k1d_1, new Long(8192, 0)).equals(new Long(-1, -1));
|
|
605
605
|
};
|
|
606
|
-
protoOf(RealSource).
|
|
607
|
-
if (!this.
|
|
606
|
+
protoOf(RealSource).e1b = function (byteCount) {
|
|
607
|
+
if (!this.f1b(byteCount))
|
|
608
608
|
throw EOFException_init_$Create$_0("Source doesn't contain required number of bytes (" + byteCount.toString() + ').');
|
|
609
609
|
};
|
|
610
|
-
protoOf(RealSource).
|
|
610
|
+
protoOf(RealSource).f1b = function (byteCount) {
|
|
611
611
|
// Inline function 'kotlinx.io.RealSource.checkNotClosed' call
|
|
612
612
|
// Inline function 'kotlin.check' call
|
|
613
|
-
if (!!this.
|
|
613
|
+
if (!!this.j1d_1) {
|
|
614
614
|
// Inline function 'kotlinx.io.RealSource.checkNotClosed.<anonymous>' call
|
|
615
615
|
var message = 'Source is closed.';
|
|
616
616
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
@@ -621,87 +621,87 @@
|
|
|
621
621
|
var message_0 = 'byteCount: ' + byteCount.toString();
|
|
622
622
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
623
623
|
}
|
|
624
|
-
while (this.
|
|
625
|
-
if (this.
|
|
624
|
+
while (this.k1d_1.s().e1(byteCount) < 0) {
|
|
625
|
+
if (this.i1d_1.c1c(this.k1d_1, new Long(8192, 0)).equals(new Long(-1, -1)))
|
|
626
626
|
return false;
|
|
627
627
|
}
|
|
628
628
|
return true;
|
|
629
629
|
};
|
|
630
|
-
protoOf(RealSource).
|
|
630
|
+
protoOf(RealSource).a1c = function (sink, startIndex, endIndex) {
|
|
631
631
|
// Inline function 'kotlinx.io.checkBounds' call
|
|
632
632
|
var size = sink.length;
|
|
633
633
|
checkBounds(toLong(size), toLong(startIndex), toLong(endIndex));
|
|
634
|
-
if (this.
|
|
635
|
-
var read = this.
|
|
634
|
+
if (this.k1d_1.s().equals(new Long(0, 0))) {
|
|
635
|
+
var read = this.i1d_1.c1c(this.k1d_1, new Long(8192, 0));
|
|
636
636
|
if (read.equals(new Long(-1, -1)))
|
|
637
637
|
return -1;
|
|
638
638
|
}
|
|
639
639
|
var tmp3 = endIndex - startIndex | 0;
|
|
640
640
|
// Inline function 'kotlinx.io.minOf' call
|
|
641
|
-
var b = this.
|
|
641
|
+
var b = this.k1d_1.s();
|
|
642
642
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
643
643
|
var a = toLong(tmp3);
|
|
644
644
|
var toRead = (a.e1(b) <= 0 ? a : b).j1();
|
|
645
|
-
return this.
|
|
645
|
+
return this.k1d_1.a1c(sink, startIndex, startIndex + toRead | 0);
|
|
646
646
|
};
|
|
647
|
-
protoOf(RealSource).
|
|
647
|
+
protoOf(RealSource).e1c = function (sink, byteCount) {
|
|
648
648
|
try {
|
|
649
|
-
this.
|
|
649
|
+
this.e1b(byteCount);
|
|
650
650
|
} catch ($p) {
|
|
651
651
|
if ($p instanceof EOFException) {
|
|
652
652
|
var e = $p;
|
|
653
|
-
sink.
|
|
653
|
+
sink.d1c(this.k1d_1, this.k1d_1.s());
|
|
654
654
|
throw e;
|
|
655
655
|
} else {
|
|
656
656
|
throw $p;
|
|
657
657
|
}
|
|
658
658
|
}
|
|
659
|
-
this.
|
|
659
|
+
this.k1d_1.e1c(sink, byteCount);
|
|
660
660
|
};
|
|
661
|
-
protoOf(RealSource).
|
|
661
|
+
protoOf(RealSource).f1c = function (sink) {
|
|
662
662
|
var totalBytesWritten = new Long(0, 0);
|
|
663
|
-
while (!this.
|
|
664
|
-
var emitByteCount = this.
|
|
663
|
+
while (!this.i1d_1.c1c(this.k1d_1, new Long(8192, 0)).equals(new Long(-1, -1))) {
|
|
664
|
+
var emitByteCount = this.k1d_1.y1b();
|
|
665
665
|
if (emitByteCount.e1(new Long(0, 0)) > 0) {
|
|
666
666
|
totalBytesWritten = totalBytesWritten.z2(emitByteCount);
|
|
667
|
-
sink.
|
|
667
|
+
sink.d1c(this.k1d_1, emitByteCount);
|
|
668
668
|
}
|
|
669
669
|
}
|
|
670
|
-
if (this.
|
|
671
|
-
totalBytesWritten = totalBytesWritten.z2(this.
|
|
672
|
-
sink.
|
|
670
|
+
if (this.k1d_1.s().e1(new Long(0, 0)) > 0) {
|
|
671
|
+
totalBytesWritten = totalBytesWritten.z2(this.k1d_1.s());
|
|
672
|
+
sink.d1c(this.k1d_1, this.k1d_1.s());
|
|
673
673
|
}
|
|
674
674
|
return totalBytesWritten;
|
|
675
675
|
};
|
|
676
|
-
protoOf(RealSource).
|
|
677
|
-
this.
|
|
678
|
-
return this.
|
|
676
|
+
protoOf(RealSource).r1b = function () {
|
|
677
|
+
this.e1b(new Long(2, 0));
|
|
678
|
+
return this.k1d_1.r1b();
|
|
679
679
|
};
|
|
680
|
-
protoOf(RealSource).
|
|
680
|
+
protoOf(RealSource).g1c = function () {
|
|
681
681
|
// Inline function 'kotlinx.io.RealSource.checkNotClosed' call
|
|
682
682
|
// Inline function 'kotlin.check' call
|
|
683
|
-
if (!!this.
|
|
683
|
+
if (!!this.j1d_1) {
|
|
684
684
|
// Inline function 'kotlinx.io.RealSource.checkNotClosed.<anonymous>' call
|
|
685
685
|
var message = 'Source is closed.';
|
|
686
686
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
687
687
|
}
|
|
688
688
|
return buffered(new PeekSource(this));
|
|
689
689
|
};
|
|
690
|
-
protoOf(RealSource).
|
|
691
|
-
if (this.
|
|
690
|
+
protoOf(RealSource).y1c = function () {
|
|
691
|
+
if (this.j1d_1)
|
|
692
692
|
return Unit_instance;
|
|
693
|
-
this.
|
|
694
|
-
this.
|
|
695
|
-
this.
|
|
693
|
+
this.j1d_1 = true;
|
|
694
|
+
this.i1d_1.y1c();
|
|
695
|
+
this.k1d_1.e2();
|
|
696
696
|
};
|
|
697
697
|
protoOf(RealSource).toString = function () {
|
|
698
|
-
return 'buffered(' + toString(this.
|
|
698
|
+
return 'buffered(' + toString(this.i1d_1) + ')';
|
|
699
699
|
};
|
|
700
700
|
function Segment_init_$Init$($this) {
|
|
701
701
|
Segment.call($this);
|
|
702
|
-
$this.
|
|
703
|
-
$this.
|
|
704
|
-
$this.
|
|
702
|
+
$this.h1b_1 = new Int8Array(8192);
|
|
703
|
+
$this.l1b_1 = true;
|
|
704
|
+
$this.k1b_1 = null;
|
|
705
705
|
return $this;
|
|
706
706
|
}
|
|
707
707
|
function Segment_init_$Create$() {
|
|
@@ -709,90 +709,90 @@
|
|
|
709
709
|
}
|
|
710
710
|
function Segment_init_$Init$_0(data, pos, limit, shareToken, owner, $this) {
|
|
711
711
|
Segment.call($this);
|
|
712
|
-
$this.
|
|
713
|
-
$this.
|
|
714
|
-
$this.
|
|
715
|
-
$this.
|
|
716
|
-
$this.
|
|
712
|
+
$this.h1b_1 = data;
|
|
713
|
+
$this.i1b_1 = pos;
|
|
714
|
+
$this.j1b_1 = limit;
|
|
715
|
+
$this.k1b_1 = shareToken;
|
|
716
|
+
$this.l1b_1 = owner;
|
|
717
717
|
return $this;
|
|
718
718
|
}
|
|
719
719
|
function Segment_init_$Create$_0(data, pos, limit, shareToken, owner) {
|
|
720
720
|
return Segment_init_$Init$_0(data, pos, limit, shareToken, owner, objectCreate(protoOf(Segment)));
|
|
721
721
|
}
|
|
722
722
|
function Companion() {
|
|
723
|
-
this.
|
|
724
|
-
this.
|
|
723
|
+
this.l1d_1 = 8192;
|
|
724
|
+
this.m1d_1 = 1024;
|
|
725
725
|
}
|
|
726
|
-
protoOf(Companion).
|
|
726
|
+
protoOf(Companion).n1d = function () {
|
|
727
727
|
return Segment_init_$Create$();
|
|
728
728
|
};
|
|
729
729
|
var Companion_instance;
|
|
730
730
|
function Companion_getInstance() {
|
|
731
731
|
return Companion_instance;
|
|
732
732
|
}
|
|
733
|
-
protoOf(Segment).
|
|
734
|
-
var tmp1_safe_receiver = this.
|
|
735
|
-
var tmp0_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
733
|
+
protoOf(Segment).p1c = function () {
|
|
734
|
+
var tmp1_safe_receiver = this.k1b_1;
|
|
735
|
+
var tmp0_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.o1d();
|
|
736
736
|
return tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs;
|
|
737
737
|
};
|
|
738
|
-
protoOf(Segment).
|
|
739
|
-
var tmp0_elvis_lhs = this.
|
|
738
|
+
protoOf(Segment).v1b = function () {
|
|
739
|
+
var tmp0_elvis_lhs = this.k1b_1;
|
|
740
740
|
var tmp;
|
|
741
741
|
if (tmp0_elvis_lhs == null) {
|
|
742
742
|
// Inline function 'kotlin.also' call
|
|
743
|
-
var this_0 = SegmentPool_instance.
|
|
743
|
+
var this_0 = SegmentPool_instance.p1d();
|
|
744
744
|
// Inline function 'kotlinx.io.Segment.sharedCopy.<anonymous>' call
|
|
745
|
-
this.
|
|
745
|
+
this.k1b_1 = this_0;
|
|
746
746
|
tmp = this_0;
|
|
747
747
|
} else {
|
|
748
748
|
tmp = tmp0_elvis_lhs;
|
|
749
749
|
}
|
|
750
750
|
var t = tmp;
|
|
751
|
-
var tmp_0 = this.
|
|
752
|
-
var tmp_1 = this.
|
|
751
|
+
var tmp_0 = this.i1b_1;
|
|
752
|
+
var tmp_1 = this.j1b_1;
|
|
753
753
|
// Inline function 'kotlin.also' call
|
|
754
754
|
// Inline function 'kotlinx.io.Segment.sharedCopy.<anonymous>' call
|
|
755
|
-
t.
|
|
756
|
-
return Segment_init_$Create$_0(this.
|
|
755
|
+
t.q1d();
|
|
756
|
+
return Segment_init_$Create$_0(this.h1b_1, tmp_0, tmp_1, t, false);
|
|
757
757
|
};
|
|
758
|
-
protoOf(Segment).
|
|
759
|
-
var result = this.
|
|
760
|
-
if (!(this.
|
|
761
|
-
ensureNotNull(this.
|
|
758
|
+
protoOf(Segment).s1c = function () {
|
|
759
|
+
var result = this.m1b_1;
|
|
760
|
+
if (!(this.n1b_1 == null)) {
|
|
761
|
+
ensureNotNull(this.n1b_1).m1b_1 = this.m1b_1;
|
|
762
762
|
}
|
|
763
|
-
if (!(this.
|
|
764
|
-
ensureNotNull(this.
|
|
763
|
+
if (!(this.m1b_1 == null)) {
|
|
764
|
+
ensureNotNull(this.m1b_1).n1b_1 = this.n1b_1;
|
|
765
765
|
}
|
|
766
|
-
this.
|
|
767
|
-
this.
|
|
766
|
+
this.m1b_1 = null;
|
|
767
|
+
this.n1b_1 = null;
|
|
768
768
|
return result;
|
|
769
769
|
};
|
|
770
|
-
protoOf(Segment).
|
|
771
|
-
segment.
|
|
772
|
-
segment.
|
|
773
|
-
if (!(this.
|
|
774
|
-
ensureNotNull(this.
|
|
770
|
+
protoOf(Segment).w1b = function (segment) {
|
|
771
|
+
segment.n1b_1 = this;
|
|
772
|
+
segment.m1b_1 = this.m1b_1;
|
|
773
|
+
if (!(this.m1b_1 == null)) {
|
|
774
|
+
ensureNotNull(this.m1b_1).n1b_1 = segment;
|
|
775
775
|
}
|
|
776
|
-
this.
|
|
776
|
+
this.m1b_1 = segment;
|
|
777
777
|
return segment;
|
|
778
778
|
};
|
|
779
|
-
protoOf(Segment).
|
|
779
|
+
protoOf(Segment).q1c = function (byteCount) {
|
|
780
780
|
// Inline function 'kotlin.require' call
|
|
781
|
-
if (!(byteCount > 0 && byteCount <= (this.
|
|
781
|
+
if (!(byteCount > 0 && byteCount <= (this.j1b_1 - this.i1b_1 | 0))) {
|
|
782
782
|
// Inline function 'kotlinx.io.Segment.split.<anonymous>' call
|
|
783
783
|
var message = 'byteCount out of range';
|
|
784
784
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
785
785
|
}
|
|
786
786
|
var prefix;
|
|
787
787
|
if (byteCount >= 1024) {
|
|
788
|
-
prefix = this.
|
|
788
|
+
prefix = this.v1b();
|
|
789
789
|
} else {
|
|
790
|
-
prefix = SegmentPool_instance.
|
|
791
|
-
var tmp1 = this.
|
|
792
|
-
var tmp2 = prefix.
|
|
793
|
-
var tmp3 = this.
|
|
790
|
+
prefix = SegmentPool_instance.k1c();
|
|
791
|
+
var tmp1 = this.h1b_1;
|
|
792
|
+
var tmp2 = prefix.h1b_1;
|
|
793
|
+
var tmp3 = this.i1b_1;
|
|
794
794
|
// Inline function 'kotlin.collections.copyInto' call
|
|
795
|
-
var endIndex = this.
|
|
795
|
+
var endIndex = this.i1b_1 + byteCount | 0;
|
|
796
796
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
797
797
|
// Inline function 'kotlin.js.asDynamic' call
|
|
798
798
|
var tmp = tmp1;
|
|
@@ -800,63 +800,63 @@
|
|
|
800
800
|
// Inline function 'kotlin.js.asDynamic' call
|
|
801
801
|
arrayCopy(tmp, tmp2, 0, tmp3, endIndex);
|
|
802
802
|
}
|
|
803
|
-
prefix.
|
|
804
|
-
this.
|
|
805
|
-
if (!(this.
|
|
806
|
-
ensureNotNull(this.
|
|
803
|
+
prefix.j1b_1 = prefix.i1b_1 + byteCount | 0;
|
|
804
|
+
this.i1b_1 = this.i1b_1 + byteCount | 0;
|
|
805
|
+
if (!(this.n1b_1 == null)) {
|
|
806
|
+
ensureNotNull(this.n1b_1).w1b(prefix);
|
|
807
807
|
} else {
|
|
808
|
-
prefix.
|
|
809
|
-
this.
|
|
808
|
+
prefix.m1b_1 = this;
|
|
809
|
+
this.n1b_1 = prefix;
|
|
810
810
|
}
|
|
811
811
|
return prefix;
|
|
812
812
|
};
|
|
813
|
-
protoOf(Segment).
|
|
813
|
+
protoOf(Segment).x1b = function () {
|
|
814
814
|
// Inline function 'kotlin.check' call
|
|
815
|
-
if (!!(this.
|
|
815
|
+
if (!!(this.n1b_1 == null)) {
|
|
816
816
|
// Inline function 'kotlinx.io.Segment.compact.<anonymous>' call
|
|
817
817
|
var message = 'cannot compact';
|
|
818
818
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
819
819
|
}
|
|
820
|
-
if (!ensureNotNull(this.
|
|
820
|
+
if (!ensureNotNull(this.n1b_1).l1b_1)
|
|
821
821
|
return this;
|
|
822
|
-
var byteCount = this.
|
|
823
|
-
var availableByteCount = (8192 - ensureNotNull(this.
|
|
822
|
+
var byteCount = this.j1b_1 - this.i1b_1 | 0;
|
|
823
|
+
var availableByteCount = (8192 - ensureNotNull(this.n1b_1).j1b_1 | 0) + (ensureNotNull(this.n1b_1).p1c() ? 0 : ensureNotNull(this.n1b_1).i1b_1) | 0;
|
|
824
824
|
if (byteCount > availableByteCount)
|
|
825
825
|
return this;
|
|
826
|
-
var predecessor = this.
|
|
827
|
-
this.
|
|
828
|
-
var successor = this.
|
|
826
|
+
var predecessor = this.n1b_1;
|
|
827
|
+
this.r1c(ensureNotNull(predecessor), byteCount);
|
|
828
|
+
var successor = this.s1c();
|
|
829
829
|
// Inline function 'kotlin.check' call
|
|
830
830
|
if (!(successor == null)) {
|
|
831
831
|
throw IllegalStateException_init_$Create$('Check failed.');
|
|
832
832
|
}
|
|
833
|
-
SegmentPool_instance.
|
|
833
|
+
SegmentPool_instance.a1d(this);
|
|
834
834
|
return predecessor;
|
|
835
835
|
};
|
|
836
|
-
protoOf(Segment).
|
|
837
|
-
var _unary__edvuaz = this.
|
|
838
|
-
this.
|
|
839
|
-
this.
|
|
836
|
+
protoOf(Segment).v1c = function (byte) {
|
|
837
|
+
var _unary__edvuaz = this.j1b_1;
|
|
838
|
+
this.j1b_1 = _unary__edvuaz + 1 | 0;
|
|
839
|
+
this.h1b_1[_unary__edvuaz] = byte;
|
|
840
840
|
};
|
|
841
|
-
protoOf(Segment).
|
|
842
|
-
var data = this.
|
|
843
|
-
var limit = this.
|
|
841
|
+
protoOf(Segment).x1c = function (short) {
|
|
842
|
+
var data = this.h1b_1;
|
|
843
|
+
var limit = this.j1b_1;
|
|
844
844
|
var _unary__edvuaz = limit;
|
|
845
845
|
limit = _unary__edvuaz + 1 | 0;
|
|
846
846
|
data[_unary__edvuaz] = toByte((short >>> 8 | 0) & 255);
|
|
847
847
|
var _unary__edvuaz_0 = limit;
|
|
848
848
|
limit = _unary__edvuaz_0 + 1 | 0;
|
|
849
849
|
data[_unary__edvuaz_0] = toByte(short & 255);
|
|
850
|
-
this.
|
|
850
|
+
this.j1b_1 = limit;
|
|
851
851
|
};
|
|
852
|
-
protoOf(Segment).
|
|
853
|
-
var _unary__edvuaz = this.
|
|
854
|
-
this.
|
|
855
|
-
return this.
|
|
852
|
+
protoOf(Segment).q1b = function () {
|
|
853
|
+
var _unary__edvuaz = this.i1b_1;
|
|
854
|
+
this.i1b_1 = _unary__edvuaz + 1 | 0;
|
|
855
|
+
return this.h1b_1[_unary__edvuaz];
|
|
856
856
|
};
|
|
857
|
-
protoOf(Segment).
|
|
858
|
-
var data = this.
|
|
859
|
-
var pos = this.
|
|
857
|
+
protoOf(Segment).s1b = function () {
|
|
858
|
+
var data = this.h1b_1;
|
|
859
|
+
var pos = this.i1b_1;
|
|
860
860
|
var _unary__edvuaz = pos;
|
|
861
861
|
pos = _unary__edvuaz + 1 | 0;
|
|
862
862
|
// Inline function 'kotlinx.io.and' call
|
|
@@ -866,133 +866,133 @@
|
|
|
866
866
|
// Inline function 'kotlinx.io.and' call
|
|
867
867
|
var tmp$ret$1 = data[_unary__edvuaz_0] & 255;
|
|
868
868
|
var s = toShort(tmp | tmp$ret$1);
|
|
869
|
-
this.
|
|
869
|
+
this.i1b_1 = pos;
|
|
870
870
|
return s;
|
|
871
871
|
};
|
|
872
|
-
protoOf(Segment).
|
|
872
|
+
protoOf(Segment).r1c = function (sink, byteCount) {
|
|
873
873
|
// Inline function 'kotlin.check' call
|
|
874
|
-
if (!sink.
|
|
874
|
+
if (!sink.l1b_1) {
|
|
875
875
|
// Inline function 'kotlinx.io.Segment.writeTo.<anonymous>' call
|
|
876
876
|
var message = 'only owner can write';
|
|
877
877
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
878
878
|
}
|
|
879
|
-
if ((sink.
|
|
880
|
-
if (sink.
|
|
879
|
+
if ((sink.j1b_1 + byteCount | 0) > 8192) {
|
|
880
|
+
if (sink.p1c())
|
|
881
881
|
throw IllegalArgumentException_init_$Create$_0();
|
|
882
|
-
if (((sink.
|
|
882
|
+
if (((sink.j1b_1 + byteCount | 0) - sink.i1b_1 | 0) > 8192)
|
|
883
883
|
throw IllegalArgumentException_init_$Create$_0();
|
|
884
|
-
var tmp1 = sink.
|
|
885
|
-
var tmp2 = sink.
|
|
886
|
-
var tmp3 = sink.
|
|
884
|
+
var tmp1 = sink.h1b_1;
|
|
885
|
+
var tmp2 = sink.h1b_1;
|
|
886
|
+
var tmp3 = sink.i1b_1;
|
|
887
887
|
// Inline function 'kotlin.collections.copyInto' call
|
|
888
|
-
var endIndex = sink.
|
|
888
|
+
var endIndex = sink.j1b_1;
|
|
889
889
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
890
890
|
// Inline function 'kotlin.js.asDynamic' call
|
|
891
891
|
var tmp = tmp1;
|
|
892
892
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
893
893
|
// Inline function 'kotlin.js.asDynamic' call
|
|
894
894
|
arrayCopy(tmp, tmp2, 0, tmp3, endIndex);
|
|
895
|
-
sink.
|
|
896
|
-
sink.
|
|
895
|
+
sink.j1b_1 = sink.j1b_1 - sink.i1b_1 | 0;
|
|
896
|
+
sink.i1b_1 = 0;
|
|
897
897
|
}
|
|
898
|
-
var tmp6 = this.
|
|
899
|
-
var tmp7 = sink.
|
|
900
|
-
var tmp8 = sink.
|
|
901
|
-
var tmp9 = this.
|
|
898
|
+
var tmp6 = this.h1b_1;
|
|
899
|
+
var tmp7 = sink.h1b_1;
|
|
900
|
+
var tmp8 = sink.j1b_1;
|
|
901
|
+
var tmp9 = this.i1b_1;
|
|
902
902
|
// Inline function 'kotlin.collections.copyInto' call
|
|
903
|
-
var endIndex_0 = this.
|
|
903
|
+
var endIndex_0 = this.i1b_1 + byteCount | 0;
|
|
904
904
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
905
905
|
// Inline function 'kotlin.js.asDynamic' call
|
|
906
906
|
var tmp_0 = tmp6;
|
|
907
907
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
908
908
|
// Inline function 'kotlin.js.asDynamic' call
|
|
909
909
|
arrayCopy(tmp_0, tmp7, tmp8, tmp9, endIndex_0);
|
|
910
|
-
sink.
|
|
911
|
-
this.
|
|
910
|
+
sink.j1b_1 = sink.j1b_1 + byteCount | 0;
|
|
911
|
+
this.i1b_1 = this.i1b_1 + byteCount | 0;
|
|
912
912
|
};
|
|
913
|
-
protoOf(Segment).
|
|
913
|
+
protoOf(Segment).b1c = function (dst, dstStartOffset, dstEndOffset) {
|
|
914
914
|
var len = dstEndOffset - dstStartOffset | 0;
|
|
915
|
-
var tmp0 = this.
|
|
916
|
-
var tmp3 = this.
|
|
915
|
+
var tmp0 = this.h1b_1;
|
|
916
|
+
var tmp3 = this.i1b_1;
|
|
917
917
|
// Inline function 'kotlin.collections.copyInto' call
|
|
918
|
-
var endIndex = this.
|
|
918
|
+
var endIndex = this.i1b_1 + len | 0;
|
|
919
919
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
920
920
|
// Inline function 'kotlin.js.asDynamic' call
|
|
921
921
|
var tmp = tmp0;
|
|
922
922
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
923
923
|
// Inline function 'kotlin.js.asDynamic' call
|
|
924
924
|
arrayCopy(tmp, dst, dstStartOffset, tmp3, endIndex);
|
|
925
|
-
this.
|
|
925
|
+
this.i1b_1 = this.i1b_1 + len | 0;
|
|
926
926
|
};
|
|
927
|
-
protoOf(Segment).
|
|
928
|
-
var tmp1 = this.
|
|
927
|
+
protoOf(Segment).n1c = function (src, srcStartOffset, srcEndOffset) {
|
|
928
|
+
var tmp1 = this.h1b_1;
|
|
929
929
|
// Inline function 'kotlin.collections.copyInto' call
|
|
930
|
-
var destinationOffset = this.
|
|
930
|
+
var destinationOffset = this.j1b_1;
|
|
931
931
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
932
932
|
// Inline function 'kotlin.js.asDynamic' call
|
|
933
933
|
var tmp = src;
|
|
934
934
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
935
935
|
// Inline function 'kotlin.js.asDynamic' call
|
|
936
936
|
arrayCopy(tmp, tmp1, destinationOffset, srcStartOffset, srcEndOffset);
|
|
937
|
-
this.
|
|
937
|
+
this.j1b_1 = this.j1b_1 + (srcEndOffset - srcStartOffset | 0) | 0;
|
|
938
938
|
};
|
|
939
|
-
protoOf(Segment).
|
|
940
|
-
return this.
|
|
939
|
+
protoOf(Segment).o1b = function () {
|
|
940
|
+
return this.j1b_1 - this.i1b_1 | 0;
|
|
941
941
|
};
|
|
942
|
-
protoOf(Segment).
|
|
943
|
-
return this.
|
|
942
|
+
protoOf(Segment).m1c = function () {
|
|
943
|
+
return this.h1b_1.length - this.j1b_1 | 0;
|
|
944
944
|
};
|
|
945
|
-
protoOf(Segment).
|
|
946
|
-
return this.
|
|
945
|
+
protoOf(Segment).r1d = function (readOnly) {
|
|
946
|
+
return this.h1b_1;
|
|
947
947
|
};
|
|
948
|
-
protoOf(Segment).
|
|
949
|
-
return this.
|
|
948
|
+
protoOf(Segment).s1d = function (index) {
|
|
949
|
+
return this.h1b_1[this.i1b_1 + index | 0];
|
|
950
950
|
};
|
|
951
|
-
protoOf(Segment).
|
|
952
|
-
this.
|
|
951
|
+
protoOf(Segment).t1d = function (index, value) {
|
|
952
|
+
this.h1b_1[this.j1b_1 + index | 0] = value;
|
|
953
953
|
};
|
|
954
|
-
protoOf(Segment).
|
|
955
|
-
var d = this.
|
|
956
|
-
var l = this.
|
|
954
|
+
protoOf(Segment).u1d = function (index, b0, b1) {
|
|
955
|
+
var d = this.h1b_1;
|
|
956
|
+
var l = this.j1b_1;
|
|
957
957
|
d[l + index | 0] = b0;
|
|
958
958
|
d[(l + index | 0) + 1 | 0] = b1;
|
|
959
959
|
};
|
|
960
|
-
protoOf(Segment).
|
|
961
|
-
var d = this.
|
|
962
|
-
var l = this.
|
|
960
|
+
protoOf(Segment).v1d = function (index, b0, b1, b2) {
|
|
961
|
+
var d = this.h1b_1;
|
|
962
|
+
var l = this.j1b_1;
|
|
963
963
|
d[l + index | 0] = b0;
|
|
964
964
|
d[(l + index | 0) + 1 | 0] = b1;
|
|
965
965
|
d[(l + index | 0) + 2 | 0] = b2;
|
|
966
966
|
};
|
|
967
|
-
protoOf(Segment).
|
|
968
|
-
var d = this.
|
|
969
|
-
var l = this.
|
|
967
|
+
protoOf(Segment).w1d = function (index, b0, b1, b2, b3) {
|
|
968
|
+
var d = this.h1b_1;
|
|
969
|
+
var l = this.j1b_1;
|
|
970
970
|
d[l + index | 0] = b0;
|
|
971
971
|
d[(l + index | 0) + 1 | 0] = b1;
|
|
972
972
|
d[(l + index | 0) + 2 | 0] = b2;
|
|
973
973
|
d[(l + index | 0) + 3 | 0] = b3;
|
|
974
974
|
};
|
|
975
975
|
function Segment() {
|
|
976
|
-
this.
|
|
977
|
-
this.
|
|
978
|
-
this.
|
|
979
|
-
this.
|
|
980
|
-
this.
|
|
981
|
-
this.
|
|
976
|
+
this.i1b_1 = 0;
|
|
977
|
+
this.j1b_1 = 0;
|
|
978
|
+
this.k1b_1 = null;
|
|
979
|
+
this.l1b_1 = false;
|
|
980
|
+
this.m1b_1 = null;
|
|
981
|
+
this.n1b_1 = null;
|
|
982
982
|
}
|
|
983
983
|
function SegmentCopyTracker() {
|
|
984
984
|
}
|
|
985
985
|
function isEmpty(_this__u8e3s4) {
|
|
986
|
-
return _this__u8e3s4.
|
|
986
|
+
return _this__u8e3s4.o1b() === 0;
|
|
987
987
|
}
|
|
988
988
|
function AlwaysSharedCopyTracker() {
|
|
989
989
|
AlwaysSharedCopyTracker_instance = this;
|
|
990
990
|
SegmentCopyTracker.call(this);
|
|
991
991
|
}
|
|
992
|
-
protoOf(AlwaysSharedCopyTracker).
|
|
992
|
+
protoOf(AlwaysSharedCopyTracker).o1d = function () {
|
|
993
993
|
return true;
|
|
994
994
|
};
|
|
995
|
-
protoOf(AlwaysSharedCopyTracker).
|
|
995
|
+
protoOf(AlwaysSharedCopyTracker).q1d = function () {
|
|
996
996
|
return Unit_instance;
|
|
997
997
|
};
|
|
998
998
|
var AlwaysSharedCopyTracker_instance;
|
|
@@ -1012,22 +1012,22 @@
|
|
|
1012
1012
|
var arraySize = size;
|
|
1013
1013
|
if (size === -1) {
|
|
1014
1014
|
var fetchSize = new Long(2147483647, 0);
|
|
1015
|
-
while (_this__u8e3s4.
|
|
1015
|
+
while (_this__u8e3s4.c1b().s().e1(new Long(2147483647, 0)) < 0 && _this__u8e3s4.f1b(fetchSize)) {
|
|
1016
1016
|
// Inline function 'kotlin.Long.times' call
|
|
1017
1017
|
fetchSize = fetchSize.b3(toLong(2));
|
|
1018
1018
|
}
|
|
1019
1019
|
// Inline function 'kotlin.check' call
|
|
1020
|
-
if (!(_this__u8e3s4.
|
|
1020
|
+
if (!(_this__u8e3s4.c1b().s().e1(new Long(2147483647, 0)) < 0)) {
|
|
1021
1021
|
// Inline function 'kotlinx.io.readByteArrayImpl.<anonymous>' call
|
|
1022
|
-
var message = "Can't create an array of size " + _this__u8e3s4.
|
|
1022
|
+
var message = "Can't create an array of size " + _this__u8e3s4.c1b().s().toString();
|
|
1023
1023
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
1024
1024
|
}
|
|
1025
|
-
arraySize = _this__u8e3s4.
|
|
1025
|
+
arraySize = _this__u8e3s4.c1b().s().j1();
|
|
1026
1026
|
} else {
|
|
1027
|
-
_this__u8e3s4.
|
|
1027
|
+
_this__u8e3s4.e1b(toLong(size));
|
|
1028
1028
|
}
|
|
1029
1029
|
var array = new Int8Array(arraySize);
|
|
1030
|
-
readTo(_this__u8e3s4.
|
|
1030
|
+
readTo(_this__u8e3s4.c1b(), array);
|
|
1031
1031
|
return array;
|
|
1032
1032
|
}
|
|
1033
1033
|
function readTo(_this__u8e3s4, sink, startIndex, endIndex) {
|
|
@@ -1038,7 +1038,7 @@
|
|
|
1038
1038
|
checkBounds(toLong(size), toLong(startIndex), toLong(endIndex));
|
|
1039
1039
|
var offset = startIndex;
|
|
1040
1040
|
while (offset < endIndex) {
|
|
1041
|
-
var bytesRead = _this__u8e3s4.
|
|
1041
|
+
var bytesRead = _this__u8e3s4.a1c(sink, offset, endIndex);
|
|
1042
1042
|
if (bytesRead === -1) {
|
|
1043
1043
|
throw EOFException_init_$Create$_0('Source exhausted before reading ' + (endIndex - startIndex | 0) + ' bytes. ' + ('Only ' + bytesRead + ' bytes were read.'));
|
|
1044
1044
|
}
|
|
@@ -1057,33 +1057,33 @@
|
|
|
1057
1057
|
return readByteArrayImpl(_this__u8e3s4, byteCount);
|
|
1058
1058
|
}
|
|
1059
1059
|
function readString(_this__u8e3s4) {
|
|
1060
|
-
_this__u8e3s4.
|
|
1061
|
-
return commonReadUtf8(_this__u8e3s4.
|
|
1060
|
+
_this__u8e3s4.f1b(new Long(-1, 2147483647));
|
|
1061
|
+
return commonReadUtf8(_this__u8e3s4.c1b(), _this__u8e3s4.c1b().s());
|
|
1062
1062
|
}
|
|
1063
1063
|
function readString_0(_this__u8e3s4, byteCount) {
|
|
1064
|
-
_this__u8e3s4.
|
|
1065
|
-
return commonReadUtf8(_this__u8e3s4.
|
|
1064
|
+
_this__u8e3s4.e1b(byteCount);
|
|
1065
|
+
return commonReadUtf8(_this__u8e3s4.c1b(), byteCount);
|
|
1066
1066
|
}
|
|
1067
1067
|
function commonReadUtf8(_this__u8e3s4, byteCount) {
|
|
1068
1068
|
if (byteCount.equals(new Long(0, 0)))
|
|
1069
1069
|
return '';
|
|
1070
1070
|
// Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.forEachSegment' call
|
|
1071
|
-
var curr = _this__u8e3s4.
|
|
1071
|
+
var curr = _this__u8e3s4.z1a_1;
|
|
1072
1072
|
while (!(curr == null)) {
|
|
1073
1073
|
get_SegmentReadContextImpl();
|
|
1074
1074
|
// Inline function 'kotlinx.io.commonReadUtf8.<anonymous>' call
|
|
1075
|
-
if (toLong(curr.
|
|
1075
|
+
if (toLong(curr.o1b()).e1(byteCount) >= 0) {
|
|
1076
1076
|
var result = '';
|
|
1077
1077
|
// Inline function 'kotlinx.io.unsafe.withData' call
|
|
1078
|
-
var tmp2 = curr.
|
|
1079
|
-
var tmp3 = curr.
|
|
1078
|
+
var tmp2 = curr.r1d(true);
|
|
1079
|
+
var tmp3 = curr.i1b_1;
|
|
1080
1080
|
// Inline function 'kotlinx.io.commonReadUtf8.<anonymous>.<anonymous>' call
|
|
1081
|
-
var tmp0 = curr.
|
|
1081
|
+
var tmp0 = curr.j1b_1;
|
|
1082
1082
|
// Inline function 'kotlin.math.min' call
|
|
1083
1083
|
var b = tmp3 + byteCount.j1() | 0;
|
|
1084
1084
|
var tmp$ret$0 = Math.min(tmp0, b);
|
|
1085
1085
|
result = commonToUtf8String(tmp2, tmp3, tmp$ret$0);
|
|
1086
|
-
_this__u8e3s4.
|
|
1086
|
+
_this__u8e3s4.z1b(byteCount);
|
|
1087
1087
|
return result;
|
|
1088
1088
|
}
|
|
1089
1089
|
return commonToUtf8String(readByteArray_0(_this__u8e3s4, byteCount.j1()));
|
|
@@ -1101,7 +1101,7 @@
|
|
|
1101
1101
|
// Inline function 'kotlinx.io.writeToInternalBuffer' call
|
|
1102
1102
|
// Inline function 'kotlinx.io.writeString.<anonymous>' call
|
|
1103
1103
|
// Inline function 'kotlinx.io.commonWriteUtf8' call
|
|
1104
|
-
var this_0 = _this__u8e3s4.
|
|
1104
|
+
var this_0 = _this__u8e3s4.c1b();
|
|
1105
1105
|
var i = startIndex;
|
|
1106
1106
|
while (i < endIndex) {
|
|
1107
1107
|
// Inline function 'kotlinx.io.writeString.<anonymous>.stub_for_inlining' call
|
|
@@ -1112,16 +1112,16 @@
|
|
|
1112
1112
|
if (c < 128) {
|
|
1113
1113
|
$l$block_0: {
|
|
1114
1114
|
// Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.writeToTail' call
|
|
1115
|
-
var tail = this_0.
|
|
1115
|
+
var tail = this_0.h1c(1);
|
|
1116
1116
|
// Inline function 'kotlinx.io.commonWriteUtf8.<anonymous>' call
|
|
1117
1117
|
var ctx = get_SegmentWriteContextImpl();
|
|
1118
1118
|
var segmentOffset = -i | 0;
|
|
1119
1119
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
1120
|
-
var b = i + tail.
|
|
1120
|
+
var b = i + tail.m1c() | 0;
|
|
1121
1121
|
var runLimit = Math.min(endIndex, b);
|
|
1122
1122
|
var _unary__edvuaz = i;
|
|
1123
1123
|
i = _unary__edvuaz + 1 | 0;
|
|
1124
|
-
ctx.
|
|
1124
|
+
ctx.a1e(tail, segmentOffset + _unary__edvuaz | 0, toByte(c));
|
|
1125
1125
|
$l$loop: while (i < runLimit) {
|
|
1126
1126
|
// Inline function 'kotlinx.io.writeString.<anonymous>.stub_for_inlining' call
|
|
1127
1127
|
var p0_0 = i;
|
|
@@ -1132,94 +1132,94 @@
|
|
|
1132
1132
|
break $l$loop;
|
|
1133
1133
|
var _unary__edvuaz_0 = i;
|
|
1134
1134
|
i = _unary__edvuaz_0 + 1 | 0;
|
|
1135
|
-
ctx.
|
|
1135
|
+
ctx.a1e(tail, segmentOffset + _unary__edvuaz_0 | 0, toByte(c));
|
|
1136
1136
|
}
|
|
1137
1137
|
var bytesWritten = i + segmentOffset | 0;
|
|
1138
1138
|
if (bytesWritten === 1) {
|
|
1139
|
-
tail.
|
|
1139
|
+
tail.j1b_1 = tail.j1b_1 + bytesWritten | 0;
|
|
1140
1140
|
var tmp = this_0;
|
|
1141
1141
|
// Inline function 'kotlin.Long.plus' call
|
|
1142
|
-
tmp.
|
|
1142
|
+
tmp.b1b_1 = this_0.b1b_1.z2(toLong(bytesWritten));
|
|
1143
1143
|
break $l$block_0;
|
|
1144
1144
|
}
|
|
1145
1145
|
// Inline function 'kotlin.check' call
|
|
1146
|
-
if (!(0 <= bytesWritten ? bytesWritten <= tail.
|
|
1146
|
+
if (!(0 <= bytesWritten ? bytesWritten <= tail.m1c() : false)) {
|
|
1147
1147
|
// Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.writeToTail.<anonymous>' call
|
|
1148
|
-
var message = 'Invalid number of bytes written: ' + bytesWritten + '. Should be in 0..' + tail.
|
|
1148
|
+
var message = 'Invalid number of bytes written: ' + bytesWritten + '. Should be in 0..' + tail.m1c();
|
|
1149
1149
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
1150
1150
|
}
|
|
1151
1151
|
if (!(bytesWritten === 0)) {
|
|
1152
|
-
tail.
|
|
1152
|
+
tail.j1b_1 = tail.j1b_1 + bytesWritten | 0;
|
|
1153
1153
|
var tmp_0 = this_0;
|
|
1154
1154
|
// Inline function 'kotlin.Long.plus' call
|
|
1155
|
-
tmp_0.
|
|
1155
|
+
tmp_0.b1b_1 = this_0.b1b_1.z2(toLong(bytesWritten));
|
|
1156
1156
|
break $l$block_0;
|
|
1157
1157
|
}
|
|
1158
1158
|
if (isEmpty(tail)) {
|
|
1159
|
-
this_0.
|
|
1159
|
+
this_0.b1d();
|
|
1160
1160
|
}
|
|
1161
1161
|
}
|
|
1162
1162
|
} else if (c < 2048) {
|
|
1163
1163
|
$l$block_2: {
|
|
1164
1164
|
// Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.writeToTail' call
|
|
1165
|
-
var tail_0 = this_0.
|
|
1165
|
+
var tail_0 = this_0.h1c(2);
|
|
1166
1166
|
// Inline function 'kotlinx.io.commonWriteUtf8.<anonymous>' call
|
|
1167
|
-
get_SegmentWriteContextImpl().
|
|
1167
|
+
get_SegmentWriteContextImpl().z1d(tail_0, 0, toByte(c >> 6 | 192), toByte(c & 63 | 128));
|
|
1168
1168
|
var bytesWritten_0 = 2;
|
|
1169
1169
|
if (bytesWritten_0 === 2) {
|
|
1170
|
-
tail_0.
|
|
1170
|
+
tail_0.j1b_1 = tail_0.j1b_1 + bytesWritten_0 | 0;
|
|
1171
1171
|
var tmp_1 = this_0;
|
|
1172
1172
|
// Inline function 'kotlin.Long.plus' call
|
|
1173
|
-
tmp_1.
|
|
1173
|
+
tmp_1.b1b_1 = this_0.b1b_1.z2(toLong(bytesWritten_0));
|
|
1174
1174
|
break $l$block_2;
|
|
1175
1175
|
}
|
|
1176
1176
|
// Inline function 'kotlin.check' call
|
|
1177
|
-
if (!(0 <= bytesWritten_0 ? bytesWritten_0 <= tail_0.
|
|
1177
|
+
if (!(0 <= bytesWritten_0 ? bytesWritten_0 <= tail_0.m1c() : false)) {
|
|
1178
1178
|
// Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.writeToTail.<anonymous>' call
|
|
1179
|
-
var message_0 = 'Invalid number of bytes written: ' + bytesWritten_0 + '. Should be in 0..' + tail_0.
|
|
1179
|
+
var message_0 = 'Invalid number of bytes written: ' + bytesWritten_0 + '. Should be in 0..' + tail_0.m1c();
|
|
1180
1180
|
throw IllegalStateException_init_$Create$(toString(message_0));
|
|
1181
1181
|
}
|
|
1182
1182
|
if (!(bytesWritten_0 === 0)) {
|
|
1183
|
-
tail_0.
|
|
1183
|
+
tail_0.j1b_1 = tail_0.j1b_1 + bytesWritten_0 | 0;
|
|
1184
1184
|
var tmp_2 = this_0;
|
|
1185
1185
|
// Inline function 'kotlin.Long.plus' call
|
|
1186
|
-
tmp_2.
|
|
1186
|
+
tmp_2.b1b_1 = this_0.b1b_1.z2(toLong(bytesWritten_0));
|
|
1187
1187
|
break $l$block_2;
|
|
1188
1188
|
}
|
|
1189
1189
|
if (isEmpty(tail_0)) {
|
|
1190
|
-
this_0.
|
|
1190
|
+
this_0.b1d();
|
|
1191
1191
|
}
|
|
1192
1192
|
}
|
|
1193
1193
|
i = i + 1 | 0;
|
|
1194
1194
|
} else if (c < 55296 || c > 57343) {
|
|
1195
1195
|
$l$block_4: {
|
|
1196
1196
|
// Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.writeToTail' call
|
|
1197
|
-
var tail_1 = this_0.
|
|
1197
|
+
var tail_1 = this_0.h1c(3);
|
|
1198
1198
|
// Inline function 'kotlinx.io.commonWriteUtf8.<anonymous>' call
|
|
1199
|
-
get_SegmentWriteContextImpl().
|
|
1199
|
+
get_SegmentWriteContextImpl().y1d(tail_1, 0, toByte(c >> 12 | 224), toByte(c >> 6 & 63 | 128), toByte(c & 63 | 128));
|
|
1200
1200
|
var bytesWritten_1 = 3;
|
|
1201
1201
|
if (bytesWritten_1 === 3) {
|
|
1202
|
-
tail_1.
|
|
1202
|
+
tail_1.j1b_1 = tail_1.j1b_1 + bytesWritten_1 | 0;
|
|
1203
1203
|
var tmp_3 = this_0;
|
|
1204
1204
|
// Inline function 'kotlin.Long.plus' call
|
|
1205
|
-
tmp_3.
|
|
1205
|
+
tmp_3.b1b_1 = this_0.b1b_1.z2(toLong(bytesWritten_1));
|
|
1206
1206
|
break $l$block_4;
|
|
1207
1207
|
}
|
|
1208
1208
|
// Inline function 'kotlin.check' call
|
|
1209
|
-
if (!(0 <= bytesWritten_1 ? bytesWritten_1 <= tail_1.
|
|
1209
|
+
if (!(0 <= bytesWritten_1 ? bytesWritten_1 <= tail_1.m1c() : false)) {
|
|
1210
1210
|
// Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.writeToTail.<anonymous>' call
|
|
1211
|
-
var message_1 = 'Invalid number of bytes written: ' + bytesWritten_1 + '. Should be in 0..' + tail_1.
|
|
1211
|
+
var message_1 = 'Invalid number of bytes written: ' + bytesWritten_1 + '. Should be in 0..' + tail_1.m1c();
|
|
1212
1212
|
throw IllegalStateException_init_$Create$(toString(message_1));
|
|
1213
1213
|
}
|
|
1214
1214
|
if (!(bytesWritten_1 === 0)) {
|
|
1215
|
-
tail_1.
|
|
1215
|
+
tail_1.j1b_1 = tail_1.j1b_1 + bytesWritten_1 | 0;
|
|
1216
1216
|
var tmp_4 = this_0;
|
|
1217
1217
|
// Inline function 'kotlin.Long.plus' call
|
|
1218
|
-
tmp_4.
|
|
1218
|
+
tmp_4.b1b_1 = this_0.b1b_1.z2(toLong(bytesWritten_1));
|
|
1219
1219
|
break $l$block_4;
|
|
1220
1220
|
}
|
|
1221
1221
|
if (isEmpty(tail_1)) {
|
|
1222
|
-
this_0.
|
|
1222
|
+
this_0.b1d();
|
|
1223
1223
|
}
|
|
1224
1224
|
}
|
|
1225
1225
|
i = i + 1 | 0;
|
|
@@ -1239,45 +1239,45 @@
|
|
|
1239
1239
|
// Inline function 'kotlin.code' call
|
|
1240
1240
|
var this_4 = _Char___init__impl__6a9atx(63);
|
|
1241
1241
|
var tmp$ret$23 = Char__toInt_impl_vasixd(this_4);
|
|
1242
|
-
this_0.
|
|
1242
|
+
this_0.u1c(toByte(tmp$ret$23));
|
|
1243
1243
|
i = i + 1 | 0;
|
|
1244
1244
|
} else {
|
|
1245
1245
|
var codePoint = 65536 + ((c & 1023) << 10 | low & 1023) | 0;
|
|
1246
1246
|
$l$block_6: {
|
|
1247
1247
|
// Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.writeToTail' call
|
|
1248
|
-
var tail_2 = this_0.
|
|
1248
|
+
var tail_2 = this_0.h1c(4);
|
|
1249
1249
|
// Inline function 'kotlinx.io.commonWriteUtf8.<anonymous>' call
|
|
1250
|
-
get_SegmentWriteContextImpl().
|
|
1250
|
+
get_SegmentWriteContextImpl().x1d(tail_2, 0, toByte(codePoint >> 18 | 240), toByte(codePoint >> 12 & 63 | 128), toByte(codePoint >> 6 & 63 | 128), toByte(codePoint & 63 | 128));
|
|
1251
1251
|
var bytesWritten_2 = 4;
|
|
1252
1252
|
if (bytesWritten_2 === 4) {
|
|
1253
|
-
tail_2.
|
|
1253
|
+
tail_2.j1b_1 = tail_2.j1b_1 + bytesWritten_2 | 0;
|
|
1254
1254
|
var tmp_6 = this_0;
|
|
1255
1255
|
// Inline function 'kotlin.Long.plus' call
|
|
1256
|
-
tmp_6.
|
|
1256
|
+
tmp_6.b1b_1 = this_0.b1b_1.z2(toLong(bytesWritten_2));
|
|
1257
1257
|
break $l$block_6;
|
|
1258
1258
|
}
|
|
1259
1259
|
// Inline function 'kotlin.check' call
|
|
1260
|
-
if (!(0 <= bytesWritten_2 ? bytesWritten_2 <= tail_2.
|
|
1260
|
+
if (!(0 <= bytesWritten_2 ? bytesWritten_2 <= tail_2.m1c() : false)) {
|
|
1261
1261
|
// Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.writeToTail.<anonymous>' call
|
|
1262
|
-
var message_2 = 'Invalid number of bytes written: ' + bytesWritten_2 + '. Should be in 0..' + tail_2.
|
|
1262
|
+
var message_2 = 'Invalid number of bytes written: ' + bytesWritten_2 + '. Should be in 0..' + tail_2.m1c();
|
|
1263
1263
|
throw IllegalStateException_init_$Create$(toString(message_2));
|
|
1264
1264
|
}
|
|
1265
1265
|
if (!(bytesWritten_2 === 0)) {
|
|
1266
|
-
tail_2.
|
|
1266
|
+
tail_2.j1b_1 = tail_2.j1b_1 + bytesWritten_2 | 0;
|
|
1267
1267
|
var tmp_7 = this_0;
|
|
1268
1268
|
// Inline function 'kotlin.Long.plus' call
|
|
1269
|
-
tmp_7.
|
|
1269
|
+
tmp_7.b1b_1 = this_0.b1b_1.z2(toLong(bytesWritten_2));
|
|
1270
1270
|
break $l$block_6;
|
|
1271
1271
|
}
|
|
1272
1272
|
if (isEmpty(tail_2)) {
|
|
1273
|
-
this_0.
|
|
1273
|
+
this_0.b1d();
|
|
1274
1274
|
}
|
|
1275
1275
|
}
|
|
1276
1276
|
i = i + 2 | 0;
|
|
1277
1277
|
}
|
|
1278
1278
|
}
|
|
1279
1279
|
}
|
|
1280
|
-
_this__u8e3s4.
|
|
1280
|
+
_this__u8e3s4.t1b();
|
|
1281
1281
|
}
|
|
1282
1282
|
function commonToUtf8String(_this__u8e3s4, beginIndex, endIndex) {
|
|
1283
1283
|
beginIndex = beginIndex === VOID ? 0 : beginIndex;
|
|
@@ -1696,27 +1696,27 @@
|
|
|
1696
1696
|
}
|
|
1697
1697
|
function SegmentReadContextImpl$1() {
|
|
1698
1698
|
}
|
|
1699
|
-
protoOf(SegmentReadContextImpl$1).
|
|
1700
|
-
return segment.
|
|
1699
|
+
protoOf(SegmentReadContextImpl$1).z1c = function (segment, offset) {
|
|
1700
|
+
return segment.s1d(offset);
|
|
1701
1701
|
};
|
|
1702
1702
|
function SegmentWriteContextImpl$1() {
|
|
1703
1703
|
}
|
|
1704
|
-
protoOf(SegmentWriteContextImpl$1).
|
|
1705
|
-
segment.
|
|
1704
|
+
protoOf(SegmentWriteContextImpl$1).a1e = function (segment, offset, value) {
|
|
1705
|
+
segment.t1d(offset, value);
|
|
1706
1706
|
};
|
|
1707
|
-
protoOf(SegmentWriteContextImpl$1).
|
|
1708
|
-
segment.
|
|
1707
|
+
protoOf(SegmentWriteContextImpl$1).z1d = function (segment, offset, b0, b1) {
|
|
1708
|
+
segment.u1d(offset, b0, b1);
|
|
1709
1709
|
};
|
|
1710
|
-
protoOf(SegmentWriteContextImpl$1).
|
|
1711
|
-
segment.
|
|
1710
|
+
protoOf(SegmentWriteContextImpl$1).y1d = function (segment, offset, b0, b1, b2) {
|
|
1711
|
+
segment.v1d(offset, b0, b1, b2);
|
|
1712
1712
|
};
|
|
1713
|
-
protoOf(SegmentWriteContextImpl$1).
|
|
1714
|
-
segment.
|
|
1713
|
+
protoOf(SegmentWriteContextImpl$1).x1d = function (segment, offset, b0, b1, b2, b3) {
|
|
1714
|
+
segment.w1d(offset, b0, b1, b2, b3);
|
|
1715
1715
|
};
|
|
1716
1716
|
function BufferIterationContextImpl$1() {
|
|
1717
1717
|
}
|
|
1718
|
-
protoOf(BufferIterationContextImpl$1).
|
|
1719
|
-
return get_SegmentReadContextImpl().
|
|
1718
|
+
protoOf(BufferIterationContextImpl$1).z1c = function (segment, offset) {
|
|
1719
|
+
return get_SegmentReadContextImpl().z1c(segment, offset);
|
|
1720
1720
|
};
|
|
1721
1721
|
var properties_initialized_UnsafeBufferOperations_kt_2xfgoc;
|
|
1722
1722
|
function _init_properties_UnsafeBufferOperations_kt__xw75gy() {
|
|
@@ -1784,15 +1784,15 @@
|
|
|
1784
1784
|
captureStack(this, EOFException);
|
|
1785
1785
|
}
|
|
1786
1786
|
function SegmentPool() {
|
|
1787
|
-
this.
|
|
1788
|
-
this.
|
|
1787
|
+
this.i1c_1 = 0;
|
|
1788
|
+
this.j1c_1 = 0;
|
|
1789
1789
|
}
|
|
1790
|
-
protoOf(SegmentPool).
|
|
1791
|
-
return Companion_instance.
|
|
1790
|
+
protoOf(SegmentPool).k1c = function () {
|
|
1791
|
+
return Companion_instance.n1d();
|
|
1792
1792
|
};
|
|
1793
|
-
protoOf(SegmentPool).
|
|
1793
|
+
protoOf(SegmentPool).a1d = function (segment) {
|
|
1794
1794
|
};
|
|
1795
|
-
protoOf(SegmentPool).
|
|
1795
|
+
protoOf(SegmentPool).p1d = function () {
|
|
1796
1796
|
return AlwaysSharedCopyTracker_getInstance();
|
|
1797
1797
|
};
|
|
1798
1798
|
var SegmentPool_instance;
|
|
@@ -1800,7 +1800,7 @@
|
|
|
1800
1800
|
return SegmentPool_instance;
|
|
1801
1801
|
}
|
|
1802
1802
|
//region block: post-declaration
|
|
1803
|
-
protoOf(Buffer).
|
|
1803
|
+
protoOf(Buffer).o1c = write$default;
|
|
1804
1804
|
//endregion
|
|
1805
1805
|
//region block: init
|
|
1806
1806
|
Companion_instance = new Companion();
|