client_plugin_logic_deb 1.8.472 → 1.8.474
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/Kosi-Kaverit-kaverit.js +70 -70
- package/Kosi-Kodein-kodein-di.js +568 -568
- package/Kotlin-DateTime-library-kotlinx-datetime.js +1587 -1587
- package/Logic_Debertz-ai_module.js +528 -528
- package/Logic_Debertz-bot_engine.js +4078 -1090
- package/Logic_Debertz-bot_engine.js.map +1 -1
- package/Logic_Debertz-client_plugin.d.ts +30 -2
- package/Logic_Debertz-client_plugin.js +3256 -3256
- package/Logic_Debertz-core.js +1829 -1829
- package/Logic_Debertz-core.js.map +1 -1
- package/Logic_Debertz-engine.js +18189 -18187
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_client.js +9798 -9746
- package/Logic_Debertz-game_client.js.map +1 -1
- package/Logic_Debertz-game_server.js +1602 -1551
- package/Logic_Debertz-game_server.js.map +1 -1
- package/error-library-error.js +5 -5
- package/kotlin-kotlin-stdlib.js +816 -792
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-atomicfu.js +22 -22
- package/kotlinx-coroutines-core.js +2557 -2557
- package/kotlinx-io-kotlinx-io-bytestring.js +43 -43
- package/kotlinx-io-kotlinx-io-core.js +571 -571
- package/kotlinx-serialization-kotlinx-serialization-core.js +1819 -1819
- package/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.js +1404 -1404
- package/ktor-ktor-client-content-negotiation.js +150 -150
- package/ktor-ktor-client-core.js +1917 -1917
- package/ktor-ktor-client-logging.js +644 -644
- package/ktor-ktor-events.js +11 -11
- package/ktor-ktor-http-cio.js +358 -358
- package/ktor-ktor-http.js +707 -707
- package/ktor-ktor-io.js +646 -646
- package/ktor-ktor-serialization-kotlinx-json.js +6 -6
- package/ktor-ktor-serialization-kotlinx.js +143 -143
- package/ktor-ktor-serialization.js +71 -71
- package/ktor-ktor-utils.js +670 -670
- package/ktor-ktor-websockets.js +49 -49
- package/package.json +1 -1
- package/random-library-crypto-rand.js +12 -12
- package/random-library-secure-random.js +7 -7
- package/raspberry-cardgame-lib-core.js +243 -233
- package/raspberry-cardgame-lib-core.js.map +1 -1
- package/raspberry-cardgame-lib-logger.js +101 -101
- package/raspberry-cardgame-lib-random.js +833 -833
- package/uuid.js +23 -23
|
@@ -17,59 +17,59 @@
|
|
|
17
17
|
//region block: imports
|
|
18
18
|
var imul = Math.imul;
|
|
19
19
|
var IndexOutOfBoundsException_init_$Create$ = kotlin_kotlin.$_$.v1;
|
|
20
|
-
var Long = kotlin_kotlin.$_$.
|
|
21
|
-
var compare = kotlin_kotlin.$_$.
|
|
20
|
+
var Long = kotlin_kotlin.$_$.yi;
|
|
21
|
+
var compare = kotlin_kotlin.$_$.ac;
|
|
22
22
|
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.o1;
|
|
23
|
-
var subtract = kotlin_kotlin.$_$.
|
|
23
|
+
var subtract = kotlin_kotlin.$_$.rc;
|
|
24
24
|
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.q2;
|
|
25
|
-
var charArrayOf = kotlin_kotlin.$_$.
|
|
26
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
27
|
-
var equalsLong = kotlin_kotlin.$_$.
|
|
28
|
-
var toString = kotlin_kotlin.$_$.
|
|
25
|
+
var charArrayOf = kotlin_kotlin.$_$.yc;
|
|
26
|
+
var protoOf = kotlin_kotlin.$_$.pe;
|
|
27
|
+
var equalsLong = kotlin_kotlin.$_$.fc;
|
|
28
|
+
var toString = kotlin_kotlin.$_$.se;
|
|
29
29
|
var Unit_instance = kotlin_kotlin.$_$.l5;
|
|
30
|
-
var toShort = kotlin_kotlin.$_$.
|
|
31
|
-
var add = kotlin_kotlin.$_$.
|
|
32
|
-
var ensureNotNull = kotlin_kotlin.$_$.
|
|
33
|
-
var fromInt = kotlin_kotlin.$_$.
|
|
34
|
-
var convertToInt = kotlin_kotlin.$_$.
|
|
30
|
+
var toShort = kotlin_kotlin.$_$.re;
|
|
31
|
+
var add = kotlin_kotlin.$_$.wb;
|
|
32
|
+
var ensureNotNull = kotlin_kotlin.$_$.wj;
|
|
33
|
+
var fromInt = kotlin_kotlin.$_$.gc;
|
|
34
|
+
var convertToInt = kotlin_kotlin.$_$.cc;
|
|
35
35
|
var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.b1;
|
|
36
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
36
|
+
var initMetadataForClass = kotlin_kotlin.$_$.od;
|
|
37
37
|
var VOID = kotlin_kotlin.$_$.b;
|
|
38
38
|
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.s1;
|
|
39
39
|
var UnsafeByteStringOperations_instance = kotlin_org_jetbrains_kotlinx_kotlinx_io_bytestring.$_$.b;
|
|
40
|
-
var AutoCloseable = kotlin_kotlin.$_$.
|
|
41
|
-
var objectCreate = kotlin_kotlin.$_$.
|
|
42
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.
|
|
40
|
+
var AutoCloseable = kotlin_kotlin.$_$.mi;
|
|
41
|
+
var objectCreate = kotlin_kotlin.$_$.oe;
|
|
42
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.pd;
|
|
43
43
|
var arrayCopy = kotlin_kotlin.$_$.e6;
|
|
44
|
-
var toByte = kotlin_kotlin.$_$.
|
|
44
|
+
var toByte = kotlin_kotlin.$_$.qe;
|
|
45
45
|
var IllegalArgumentException_init_$Create$_0 = kotlin_kotlin.$_$.m1;
|
|
46
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
47
|
-
var initMetadataForInterface = kotlin_kotlin.$_$.
|
|
48
|
-
var multiply = kotlin_kotlin.$_$.
|
|
49
|
-
var charCodeAt = kotlin_kotlin.$_$.
|
|
46
|
+
var initMetadataForObject = kotlin_kotlin.$_$.ud;
|
|
47
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.sd;
|
|
48
|
+
var multiply = kotlin_kotlin.$_$.lc;
|
|
49
|
+
var charCodeAt = kotlin_kotlin.$_$.ad;
|
|
50
50
|
var Char__toInt_impl_vasixd = kotlin_kotlin.$_$.w2;
|
|
51
51
|
var StringBuilder_init_$Create$_0 = kotlin_kotlin.$_$.c1;
|
|
52
|
-
var charSequenceLength = kotlin_kotlin.$_$.
|
|
53
|
-
var endsWith = kotlin_kotlin.$_$.
|
|
54
|
-
var startsWith = kotlin_kotlin.$_$.
|
|
55
|
-
var substring = kotlin_kotlin.$_$.
|
|
56
|
-
var charArray = kotlin_kotlin.$_$.
|
|
57
|
-
var numberToChar = kotlin_kotlin.$_$.
|
|
58
|
-
var concatToString = kotlin_kotlin.$_$.
|
|
52
|
+
var charSequenceLength = kotlin_kotlin.$_$.cd;
|
|
53
|
+
var endsWith = kotlin_kotlin.$_$.jg;
|
|
54
|
+
var startsWith = kotlin_kotlin.$_$.fh;
|
|
55
|
+
var substring = kotlin_kotlin.$_$.mh;
|
|
56
|
+
var charArray = kotlin_kotlin.$_$.zc;
|
|
57
|
+
var numberToChar = kotlin_kotlin.$_$.me;
|
|
58
|
+
var concatToString = kotlin_kotlin.$_$.cg;
|
|
59
59
|
var Exception_init_$Init$ = kotlin_kotlin.$_$.g1;
|
|
60
|
-
var captureStack = kotlin_kotlin.$_$.
|
|
60
|
+
var captureStack = kotlin_kotlin.$_$.xc;
|
|
61
61
|
var Exception_init_$Init$_0 = kotlin_kotlin.$_$.h1;
|
|
62
62
|
var Exception_init_$Init$_1 = kotlin_kotlin.$_$.j1;
|
|
63
|
-
var Exception = kotlin_kotlin.$_$.
|
|
64
|
-
var KProperty0 = kotlin_kotlin.$_$.
|
|
65
|
-
var getPropertyCallableRef = kotlin_kotlin.$_$.
|
|
63
|
+
var Exception = kotlin_kotlin.$_$.vi;
|
|
64
|
+
var KProperty0 = kotlin_kotlin.$_$.qf;
|
|
65
|
+
var getPropertyCallableRef = kotlin_kotlin.$_$.ld;
|
|
66
66
|
var UnsupportedOperationException_init_$Create$ = kotlin_kotlin.$_$.h2;
|
|
67
|
-
var lazy = kotlin_kotlin.$_$.
|
|
67
|
+
var lazy = kotlin_kotlin.$_$.ck;
|
|
68
68
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.j;
|
|
69
69
|
var asReversed = kotlin_kotlin.$_$.g6;
|
|
70
|
-
var contains = kotlin_kotlin.$_$.
|
|
71
|
-
var getStringHashCode = kotlin_kotlin.$_$.
|
|
72
|
-
var Char = kotlin_kotlin.$_$.
|
|
70
|
+
var contains = kotlin_kotlin.$_$.eg;
|
|
71
|
+
var getStringHashCode = kotlin_kotlin.$_$.md;
|
|
72
|
+
var Char = kotlin_kotlin.$_$.oi;
|
|
73
73
|
//endregion
|
|
74
74
|
//region block: pre-declaration
|
|
75
75
|
initMetadataForInterface(Source, 'Source', VOID, VOID, [AutoCloseable]);
|
|
@@ -78,10 +78,10 @@
|
|
|
78
78
|
endIndex = endIndex === VOID ? source.length : endIndex;
|
|
79
79
|
var tmp;
|
|
80
80
|
if ($super === VOID) {
|
|
81
|
-
this.
|
|
81
|
+
this.b1l(source, startIndex, endIndex);
|
|
82
82
|
tmp = Unit_instance;
|
|
83
83
|
} else {
|
|
84
|
-
tmp = $super.
|
|
84
|
+
tmp = $super.b1l.call(this, source, startIndex, endIndex);
|
|
85
85
|
}
|
|
86
86
|
return tmp;
|
|
87
87
|
}
|
|
@@ -98,10 +98,10 @@
|
|
|
98
98
|
mustExist = mustExist === VOID ? true : mustExist;
|
|
99
99
|
var tmp;
|
|
100
100
|
if ($super === VOID) {
|
|
101
|
-
this.
|
|
101
|
+
this.u1m(path, mustExist);
|
|
102
102
|
tmp = Unit_instance;
|
|
103
103
|
} else {
|
|
104
|
-
tmp = $super.
|
|
104
|
+
tmp = $super.u1m.call(this, path, mustExist);
|
|
105
105
|
}
|
|
106
106
|
return tmp;
|
|
107
107
|
}
|
|
@@ -109,10 +109,10 @@
|
|
|
109
109
|
mustCreate = mustCreate === VOID ? false : mustCreate;
|
|
110
110
|
var tmp;
|
|
111
111
|
if ($super === VOID) {
|
|
112
|
-
this.
|
|
112
|
+
this.w1m(path, mustCreate);
|
|
113
113
|
tmp = Unit_instance;
|
|
114
114
|
} else {
|
|
115
|
-
tmp = $super.
|
|
115
|
+
tmp = $super.w1m.call(this, path, mustCreate);
|
|
116
116
|
}
|
|
117
117
|
return tmp;
|
|
118
118
|
}
|
|
@@ -163,20 +163,20 @@
|
|
|
163
163
|
throw EOFException_init_$Create$_0("Buffer doesn't contain required number of bytes (size: " + $this.g1().toString() + ', required: ' + byteCount.toString() + ')');
|
|
164
164
|
}
|
|
165
165
|
function Buffer() {
|
|
166
|
-
this.n1j_1 = null;
|
|
167
166
|
this.o1j_1 = null;
|
|
168
|
-
this.p1j_1 =
|
|
167
|
+
this.p1j_1 = null;
|
|
168
|
+
this.q1j_1 = new Long(0, 0);
|
|
169
169
|
}
|
|
170
170
|
protoOf(Buffer).g1 = function () {
|
|
171
|
-
return this.
|
|
171
|
+
return this.q1j_1;
|
|
172
172
|
};
|
|
173
|
-
protoOf(Buffer).
|
|
173
|
+
protoOf(Buffer).r1j = function () {
|
|
174
174
|
return this;
|
|
175
175
|
};
|
|
176
|
-
protoOf(Buffer).
|
|
176
|
+
protoOf(Buffer).s1j = function () {
|
|
177
177
|
return equalsLong(this.g1(), new Long(0, 0));
|
|
178
178
|
};
|
|
179
|
-
protoOf(Buffer).
|
|
179
|
+
protoOf(Buffer).t1j = function (byteCount) {
|
|
180
180
|
// Inline function 'kotlin.require' call
|
|
181
181
|
if (!(compare(byteCount, new Long(0, 0)) >= 0)) {
|
|
182
182
|
var message = 'byteCount: ' + byteCount.toString();
|
|
@@ -186,7 +186,7 @@
|
|
|
186
186
|
throw EOFException_init_$Create$_0("Buffer doesn't contain required number of bytes (size: " + this.g1().toString() + ', required: ' + byteCount.toString() + ')');
|
|
187
187
|
}
|
|
188
188
|
};
|
|
189
|
-
protoOf(Buffer).
|
|
189
|
+
protoOf(Buffer).u1j = function (byteCount) {
|
|
190
190
|
// Inline function 'kotlin.require' call
|
|
191
191
|
if (!(compare(byteCount, new Long(0, 0)) >= 0)) {
|
|
192
192
|
var message = 'byteCount: ' + byteCount.toString() + ' < 0';
|
|
@@ -194,8 +194,8 @@
|
|
|
194
194
|
}
|
|
195
195
|
return compare(this.g1(), byteCount) >= 0;
|
|
196
196
|
};
|
|
197
|
-
protoOf(Buffer).
|
|
198
|
-
var tmp0_elvis_lhs = this.
|
|
197
|
+
protoOf(Buffer).v1j = function () {
|
|
198
|
+
var tmp0_elvis_lhs = this.o1j_1;
|
|
199
199
|
var tmp;
|
|
200
200
|
if (tmp0_elvis_lhs == null) {
|
|
201
201
|
throwEof(this, new Long(1, 0));
|
|
@@ -205,18 +205,18 @@
|
|
|
205
205
|
var segment = tmp;
|
|
206
206
|
var segmentSize = segment.g1();
|
|
207
207
|
if (segmentSize === 0) {
|
|
208
|
-
this.
|
|
209
|
-
return this.
|
|
208
|
+
this.d1k();
|
|
209
|
+
return this.v1j();
|
|
210
210
|
}
|
|
211
|
-
var v = segment.
|
|
212
|
-
this.
|
|
211
|
+
var v = segment.e1k();
|
|
212
|
+
this.q1j_1 = subtract(this.q1j_1, new Long(1, 0));
|
|
213
213
|
if (segmentSize === 1) {
|
|
214
|
-
this.
|
|
214
|
+
this.d1k();
|
|
215
215
|
}
|
|
216
216
|
return v;
|
|
217
217
|
};
|
|
218
|
-
protoOf(Buffer).
|
|
219
|
-
var tmp0_elvis_lhs = this.
|
|
218
|
+
protoOf(Buffer).f1k = function () {
|
|
219
|
+
var tmp0_elvis_lhs = this.o1j_1;
|
|
220
220
|
var tmp;
|
|
221
221
|
if (tmp0_elvis_lhs == null) {
|
|
222
222
|
throwEof(this, new Long(2, 0));
|
|
@@ -226,120 +226,120 @@
|
|
|
226
226
|
var segment = tmp;
|
|
227
227
|
var segmentSize = segment.g1();
|
|
228
228
|
if (segmentSize < 2) {
|
|
229
|
-
this.
|
|
229
|
+
this.t1j(new Long(2, 0));
|
|
230
230
|
if (segmentSize === 0) {
|
|
231
|
-
this.
|
|
232
|
-
return this.
|
|
231
|
+
this.d1k();
|
|
232
|
+
return this.f1k();
|
|
233
233
|
}
|
|
234
234
|
// Inline function 'kotlinx.io.and' call
|
|
235
|
-
var tmp_0 = (this.
|
|
235
|
+
var tmp_0 = (this.v1j() & 255) << 8;
|
|
236
236
|
// Inline function 'kotlinx.io.and' call
|
|
237
|
-
var tmp$ret$1 = this.
|
|
237
|
+
var tmp$ret$1 = this.v1j() & 255;
|
|
238
238
|
return toShort(tmp_0 | tmp$ret$1);
|
|
239
239
|
}
|
|
240
|
-
var v = segment.
|
|
241
|
-
this.
|
|
240
|
+
var v = segment.g1k();
|
|
241
|
+
this.q1j_1 = subtract(this.q1j_1, new Long(2, 0));
|
|
242
242
|
if (segmentSize === 2) {
|
|
243
|
-
this.
|
|
243
|
+
this.d1k();
|
|
244
244
|
}
|
|
245
245
|
return v;
|
|
246
246
|
};
|
|
247
|
-
protoOf(Buffer).
|
|
247
|
+
protoOf(Buffer).h1k = function () {
|
|
248
248
|
return Unit_instance;
|
|
249
249
|
};
|
|
250
|
-
protoOf(Buffer).
|
|
250
|
+
protoOf(Buffer).i1k = function (out, startIndex, endIndex) {
|
|
251
251
|
checkBounds(this.g1(), startIndex, endIndex);
|
|
252
252
|
if (equalsLong(startIndex, endIndex))
|
|
253
253
|
return Unit_instance;
|
|
254
254
|
var currentOffset = startIndex;
|
|
255
255
|
var remainingByteCount = subtract(endIndex, startIndex);
|
|
256
|
-
out.
|
|
257
|
-
var s = this.
|
|
258
|
-
while (compare(currentOffset, fromInt(ensureNotNull(s).
|
|
259
|
-
currentOffset = subtract(currentOffset, fromInt(s.
|
|
260
|
-
s = s.
|
|
256
|
+
out.q1j_1 = add(out.q1j_1, remainingByteCount);
|
|
257
|
+
var s = this.o1j_1;
|
|
258
|
+
while (compare(currentOffset, fromInt(ensureNotNull(s).y1j_1 - s.x1j_1 | 0)) >= 0) {
|
|
259
|
+
currentOffset = subtract(currentOffset, fromInt(s.y1j_1 - s.x1j_1 | 0));
|
|
260
|
+
s = s.b1k_1;
|
|
261
261
|
}
|
|
262
262
|
while (compare(remainingByteCount, new Long(0, 0)) > 0) {
|
|
263
|
-
var copy = ensureNotNull(s).
|
|
264
|
-
copy.
|
|
263
|
+
var copy = ensureNotNull(s).j1k();
|
|
264
|
+
copy.x1j_1 = copy.x1j_1 + convertToInt(currentOffset) | 0;
|
|
265
265
|
var tmp = copy;
|
|
266
|
-
var tmp0 = copy.
|
|
266
|
+
var tmp0 = copy.x1j_1 + convertToInt(remainingByteCount) | 0;
|
|
267
267
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
268
|
-
var b = copy.
|
|
269
|
-
tmp.
|
|
268
|
+
var b = copy.y1j_1;
|
|
269
|
+
tmp.y1j_1 = Math.min(tmp0, b);
|
|
270
270
|
// Inline function 'kotlinx.io.Buffer.pushSegment' call
|
|
271
|
-
if (out.
|
|
272
|
-
out.n1j_1 = copy;
|
|
271
|
+
if (out.o1j_1 == null) {
|
|
273
272
|
out.o1j_1 = copy;
|
|
273
|
+
out.p1j_1 = copy;
|
|
274
274
|
} else if (false) {
|
|
275
|
-
out.
|
|
276
|
-
if (ensureNotNull(out.
|
|
277
|
-
out.
|
|
275
|
+
out.p1j_1 = ensureNotNull(out.p1j_1).k1k(copy).l1k();
|
|
276
|
+
if (ensureNotNull(out.p1j_1).c1k_1 == null) {
|
|
277
|
+
out.o1j_1 = out.p1j_1;
|
|
278
278
|
}
|
|
279
279
|
} else {
|
|
280
|
-
out.
|
|
280
|
+
out.p1j_1 = ensureNotNull(out.p1j_1).k1k(copy);
|
|
281
281
|
}
|
|
282
|
-
remainingByteCount = subtract(remainingByteCount, fromInt(copy.
|
|
282
|
+
remainingByteCount = subtract(remainingByteCount, fromInt(copy.y1j_1 - copy.x1j_1 | 0));
|
|
283
283
|
currentOffset = new Long(0, 0);
|
|
284
|
-
s = s.
|
|
284
|
+
s = s.b1k_1;
|
|
285
285
|
}
|
|
286
286
|
};
|
|
287
|
-
protoOf(Buffer).
|
|
287
|
+
protoOf(Buffer).m1k = function () {
|
|
288
288
|
var result = this.g1();
|
|
289
289
|
if (equalsLong(result, new Long(0, 0)))
|
|
290
290
|
return new Long(0, 0);
|
|
291
|
-
var tail = ensureNotNull(this.
|
|
292
|
-
if (tail.
|
|
293
|
-
result = subtract(result, fromInt(tail.
|
|
291
|
+
var tail = ensureNotNull(this.p1j_1);
|
|
292
|
+
if (tail.y1j_1 < 8192 && tail.a1k_1) {
|
|
293
|
+
result = subtract(result, fromInt(tail.y1j_1 - tail.x1j_1 | 0));
|
|
294
294
|
}
|
|
295
295
|
return result;
|
|
296
296
|
};
|
|
297
|
-
protoOf(Buffer).
|
|
297
|
+
protoOf(Buffer).n1k = function (position) {
|
|
298
298
|
if (compare(position, new Long(0, 0)) < 0 || compare(position, this.g1()) >= 0) {
|
|
299
299
|
throw IndexOutOfBoundsException_init_$Create$('position (' + position.toString() + ') is not within the range [0..size(' + this.g1().toString() + '))');
|
|
300
300
|
}
|
|
301
301
|
if (equalsLong(position, new Long(0, 0))) {
|
|
302
|
-
return ensureNotNull(this.
|
|
302
|
+
return ensureNotNull(this.o1j_1).o1k(0);
|
|
303
303
|
}
|
|
304
304
|
// Inline function 'kotlinx.io.seek' call
|
|
305
|
-
if (this.
|
|
305
|
+
if (this.o1j_1 == null) {
|
|
306
306
|
var offset = new Long(-1, -1);
|
|
307
|
-
return ensureNotNull(null).
|
|
307
|
+
return ensureNotNull(null).o1k(convertToInt(subtract(position, offset)));
|
|
308
308
|
}
|
|
309
309
|
if (compare(subtract(this.g1(), position), position) < 0) {
|
|
310
|
-
var s = this.
|
|
310
|
+
var s = this.p1j_1;
|
|
311
311
|
var offset_0 = this.g1();
|
|
312
312
|
$l$loop: while (!(s == null) && compare(offset_0, position) > 0) {
|
|
313
|
-
offset_0 = subtract(offset_0, fromInt(s.
|
|
313
|
+
offset_0 = subtract(offset_0, fromInt(s.y1j_1 - s.x1j_1 | 0));
|
|
314
314
|
if (compare(offset_0, position) <= 0)
|
|
315
315
|
break $l$loop;
|
|
316
|
-
s = s.
|
|
316
|
+
s = s.c1k_1;
|
|
317
317
|
}
|
|
318
318
|
var tmp0 = s;
|
|
319
319
|
var offset_1 = offset_0;
|
|
320
|
-
return ensureNotNull(tmp0).
|
|
320
|
+
return ensureNotNull(tmp0).o1k(convertToInt(subtract(position, offset_1)));
|
|
321
321
|
} else {
|
|
322
|
-
var s_0 = this.
|
|
322
|
+
var s_0 = this.o1j_1;
|
|
323
323
|
var offset_2 = new Long(0, 0);
|
|
324
324
|
$l$loop_0: while (!(s_0 == null)) {
|
|
325
325
|
var tmp0_0 = offset_2;
|
|
326
326
|
// Inline function 'kotlin.Long.plus' call
|
|
327
|
-
var other = s_0.
|
|
327
|
+
var other = s_0.y1j_1 - s_0.x1j_1 | 0;
|
|
328
328
|
var nextOffset = add(tmp0_0, fromInt(other));
|
|
329
329
|
if (compare(nextOffset, position) > 0)
|
|
330
330
|
break $l$loop_0;
|
|
331
|
-
s_0 = s_0.
|
|
331
|
+
s_0 = s_0.b1k_1;
|
|
332
332
|
offset_2 = nextOffset;
|
|
333
333
|
}
|
|
334
334
|
var tmp0_1 = s_0;
|
|
335
335
|
var offset_3 = offset_2;
|
|
336
|
-
return ensureNotNull(tmp0_1).
|
|
336
|
+
return ensureNotNull(tmp0_1).o1k(convertToInt(subtract(position, offset_3)));
|
|
337
337
|
}
|
|
338
338
|
};
|
|
339
339
|
protoOf(Buffer).b3 = function () {
|
|
340
|
-
return this.
|
|
340
|
+
return this.p1k(this.g1());
|
|
341
341
|
};
|
|
342
|
-
protoOf(Buffer).
|
|
342
|
+
protoOf(Buffer).p1k = function (byteCount) {
|
|
343
343
|
// Inline function 'kotlinx.io.checkByteCount' call
|
|
344
344
|
// Inline function 'kotlin.require' call
|
|
345
345
|
if (!(compare(byteCount, new Long(0, 0)) >= 0)) {
|
|
@@ -348,7 +348,7 @@
|
|
|
348
348
|
}
|
|
349
349
|
var remainingByteCount = byteCount;
|
|
350
350
|
while (compare(remainingByteCount, new Long(0, 0)) > 0) {
|
|
351
|
-
var tmp0_elvis_lhs = this.
|
|
351
|
+
var tmp0_elvis_lhs = this.o1j_1;
|
|
352
352
|
var tmp;
|
|
353
353
|
if (tmp0_elvis_lhs == null) {
|
|
354
354
|
throw EOFException_init_$Create$_0('Buffer exhausted before skipping ' + byteCount.toString() + ' bytes.');
|
|
@@ -358,24 +358,24 @@
|
|
|
358
358
|
var head = tmp;
|
|
359
359
|
var tmp0 = remainingByteCount;
|
|
360
360
|
// Inline function 'kotlinx.io.minOf' call
|
|
361
|
-
var b = head.
|
|
361
|
+
var b = head.y1j_1 - head.x1j_1 | 0;
|
|
362
362
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
363
363
|
var b_0 = fromInt(b);
|
|
364
364
|
var tmp$ret$4 = compare(tmp0, b_0) <= 0 ? tmp0 : b_0;
|
|
365
365
|
var toSkip = convertToInt(tmp$ret$4);
|
|
366
|
-
this.
|
|
366
|
+
this.q1j_1 = subtract(this.q1j_1, fromInt(toSkip));
|
|
367
367
|
remainingByteCount = subtract(remainingByteCount, fromInt(toSkip));
|
|
368
|
-
head.
|
|
369
|
-
if (head.
|
|
370
|
-
this.
|
|
368
|
+
head.x1j_1 = head.x1j_1 + toSkip | 0;
|
|
369
|
+
if (head.x1j_1 === head.y1j_1) {
|
|
370
|
+
this.d1k();
|
|
371
371
|
}
|
|
372
372
|
}
|
|
373
373
|
};
|
|
374
|
-
protoOf(Buffer).
|
|
374
|
+
protoOf(Buffer).q1k = function (sink, startIndex, endIndex) {
|
|
375
375
|
// Inline function 'kotlinx.io.checkBounds' call
|
|
376
376
|
var size = sink.length;
|
|
377
377
|
checkBounds(fromInt(size), fromInt(startIndex), fromInt(endIndex));
|
|
378
|
-
var tmp0_elvis_lhs = this.
|
|
378
|
+
var tmp0_elvis_lhs = this.o1j_1;
|
|
379
379
|
var tmp;
|
|
380
380
|
if (tmp0_elvis_lhs == null) {
|
|
381
381
|
return -1;
|
|
@@ -387,14 +387,14 @@
|
|
|
387
387
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
388
388
|
var b = s.g1();
|
|
389
389
|
var toCopy = Math.min(tmp0, b);
|
|
390
|
-
s.
|
|
391
|
-
this.
|
|
390
|
+
s.r1k(sink, startIndex, startIndex + toCopy | 0);
|
|
391
|
+
this.q1j_1 = subtract(this.q1j_1, fromInt(toCopy));
|
|
392
392
|
if (isEmpty(s)) {
|
|
393
|
-
this.
|
|
393
|
+
this.d1k();
|
|
394
394
|
}
|
|
395
395
|
return toCopy;
|
|
396
396
|
};
|
|
397
|
-
protoOf(Buffer).
|
|
397
|
+
protoOf(Buffer).s1k = function (sink, byteCount) {
|
|
398
398
|
// Inline function 'kotlinx.io.checkByteCount' call
|
|
399
399
|
// Inline function 'kotlin.require' call
|
|
400
400
|
if (!(compare(byteCount, new Long(0, 0)) >= 0)) {
|
|
@@ -404,10 +404,10 @@
|
|
|
404
404
|
if (equalsLong(this.g1(), new Long(0, 0)))
|
|
405
405
|
return new Long(-1, -1);
|
|
406
406
|
var bytesWritten = compare(byteCount, this.g1()) > 0 ? this.g1() : byteCount;
|
|
407
|
-
sink.
|
|
407
|
+
sink.t1k(this, bytesWritten);
|
|
408
408
|
return bytesWritten;
|
|
409
409
|
};
|
|
410
|
-
protoOf(Buffer).
|
|
410
|
+
protoOf(Buffer).u1k = function (sink, byteCount) {
|
|
411
411
|
// Inline function 'kotlinx.io.checkByteCount' call
|
|
412
412
|
// Inline function 'kotlin.require' call
|
|
413
413
|
if (!(compare(byteCount, new Long(0, 0)) >= 0)) {
|
|
@@ -415,62 +415,62 @@
|
|
|
415
415
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
416
416
|
}
|
|
417
417
|
if (compare(this.g1(), byteCount) < 0) {
|
|
418
|
-
sink.
|
|
418
|
+
sink.t1k(this, this.g1());
|
|
419
419
|
throw EOFException_init_$Create$_0('Buffer exhausted before writing ' + byteCount.toString() + ' bytes. Only ' + this.g1().toString() + ' bytes were written.');
|
|
420
420
|
}
|
|
421
|
-
sink.
|
|
421
|
+
sink.t1k(this, byteCount);
|
|
422
422
|
};
|
|
423
|
-
protoOf(Buffer).
|
|
423
|
+
protoOf(Buffer).v1k = function (sink) {
|
|
424
424
|
var byteCount = this.g1();
|
|
425
425
|
if (compare(byteCount, new Long(0, 0)) > 0) {
|
|
426
|
-
sink.
|
|
426
|
+
sink.t1k(this, byteCount);
|
|
427
427
|
}
|
|
428
428
|
return byteCount;
|
|
429
429
|
};
|
|
430
|
-
protoOf(Buffer).
|
|
430
|
+
protoOf(Buffer).w1k = function () {
|
|
431
431
|
return buffered_0(new PeekSource(this));
|
|
432
432
|
};
|
|
433
|
-
protoOf(Buffer).
|
|
433
|
+
protoOf(Buffer).x1k = function (minimumCapacity) {
|
|
434
434
|
// Inline function 'kotlin.require' call
|
|
435
435
|
if (!(minimumCapacity >= 1 && minimumCapacity <= 8192)) {
|
|
436
436
|
var message = 'unexpected capacity (' + minimumCapacity + '), should be in range [1, 8192]';
|
|
437
437
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
438
438
|
}
|
|
439
|
-
if (this.
|
|
440
|
-
var result = SegmentPool_instance.
|
|
441
|
-
this.n1j_1 = result;
|
|
439
|
+
if (this.p1j_1 == null) {
|
|
440
|
+
var result = SegmentPool_instance.a1l();
|
|
442
441
|
this.o1j_1 = result;
|
|
442
|
+
this.p1j_1 = result;
|
|
443
443
|
return result;
|
|
444
444
|
}
|
|
445
|
-
var t = ensureNotNull(this.
|
|
446
|
-
if ((t.
|
|
447
|
-
var newTail = t.
|
|
448
|
-
this.
|
|
445
|
+
var t = ensureNotNull(this.p1j_1);
|
|
446
|
+
if ((t.y1j_1 + minimumCapacity | 0) > 8192 || !t.a1k_1) {
|
|
447
|
+
var newTail = t.k1k(SegmentPool_instance.a1l());
|
|
448
|
+
this.p1j_1 = newTail;
|
|
449
449
|
return newTail;
|
|
450
450
|
}
|
|
451
451
|
return t;
|
|
452
452
|
};
|
|
453
|
-
protoOf(Buffer).
|
|
453
|
+
protoOf(Buffer).b1l = function (source, startIndex, endIndex) {
|
|
454
454
|
// Inline function 'kotlinx.io.checkBounds' call
|
|
455
455
|
var size = source.length;
|
|
456
456
|
checkBounds(fromInt(size), fromInt(startIndex), fromInt(endIndex));
|
|
457
457
|
var currentOffset = startIndex;
|
|
458
458
|
while (currentOffset < endIndex) {
|
|
459
|
-
var tail = this.
|
|
459
|
+
var tail = this.x1k(1);
|
|
460
460
|
var tmp0 = endIndex - currentOffset | 0;
|
|
461
461
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
462
|
-
var b = tail.
|
|
462
|
+
var b = tail.c1l();
|
|
463
463
|
var toCopy = Math.min(tmp0, b);
|
|
464
|
-
tail.
|
|
464
|
+
tail.d1l(source, currentOffset, currentOffset + toCopy | 0);
|
|
465
465
|
currentOffset = currentOffset + toCopy | 0;
|
|
466
466
|
}
|
|
467
467
|
var tmp = this;
|
|
468
|
-
var tmp0_0 = this.
|
|
468
|
+
var tmp0_0 = this.q1j_1;
|
|
469
469
|
// Inline function 'kotlin.Long.plus' call
|
|
470
470
|
var other = endIndex - startIndex | 0;
|
|
471
|
-
tmp.
|
|
471
|
+
tmp.q1j_1 = add(tmp0_0, fromInt(other));
|
|
472
472
|
};
|
|
473
|
-
protoOf(Buffer).
|
|
473
|
+
protoOf(Buffer).f1l = function (source, byteCount) {
|
|
474
474
|
// Inline function 'kotlinx.io.checkByteCount' call
|
|
475
475
|
// Inline function 'kotlin.require' call
|
|
476
476
|
if (!(compare(byteCount, new Long(0, 0)) >= 0)) {
|
|
@@ -479,86 +479,86 @@
|
|
|
479
479
|
}
|
|
480
480
|
var remainingByteCount = byteCount;
|
|
481
481
|
while (compare(remainingByteCount, new Long(0, 0)) > 0) {
|
|
482
|
-
var read = source.
|
|
482
|
+
var read = source.s1k(this, remainingByteCount);
|
|
483
483
|
if (equalsLong(read, new Long(-1, -1))) {
|
|
484
484
|
throw EOFException_init_$Create$_0('Source exhausted before reading ' + byteCount.toString() + ' bytes. ' + ('Only ' + subtract(byteCount, remainingByteCount).toString() + ' were read.'));
|
|
485
485
|
}
|
|
486
486
|
remainingByteCount = subtract(remainingByteCount, read);
|
|
487
487
|
}
|
|
488
488
|
};
|
|
489
|
-
protoOf(Buffer).
|
|
489
|
+
protoOf(Buffer).t1k = function (source, byteCount) {
|
|
490
490
|
// Inline function 'kotlin.require' call
|
|
491
491
|
if (!!(source === this)) {
|
|
492
492
|
var message = 'source == this';
|
|
493
493
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
494
494
|
}
|
|
495
|
-
checkOffsetAndCount(source.
|
|
495
|
+
checkOffsetAndCount(source.q1j_1, new Long(0, 0), byteCount);
|
|
496
496
|
var remainingByteCount = byteCount;
|
|
497
497
|
while (compare(remainingByteCount, new Long(0, 0)) > 0) {
|
|
498
|
-
if (compare(remainingByteCount, fromInt(ensureNotNull(source.
|
|
499
|
-
var tail = this.
|
|
498
|
+
if (compare(remainingByteCount, fromInt(ensureNotNull(source.o1j_1).g1())) < 0) {
|
|
499
|
+
var tail = this.p1j_1;
|
|
500
500
|
var tmp;
|
|
501
|
-
if (!(tail == null) && tail.
|
|
501
|
+
if (!(tail == null) && tail.a1k_1) {
|
|
502
502
|
var tmp0 = remainingByteCount;
|
|
503
503
|
// Inline function 'kotlin.Long.plus' call
|
|
504
|
-
var other = tail.
|
|
504
|
+
var other = tail.y1j_1;
|
|
505
505
|
var tmp0_0 = add(tmp0, fromInt(other));
|
|
506
506
|
// Inline function 'kotlin.Long.minus' call
|
|
507
|
-
var other_0 = tail.
|
|
507
|
+
var other_0 = tail.g1l() ? 0 : tail.x1j_1;
|
|
508
508
|
var tmp$ret$3 = subtract(tmp0_0, fromInt(other_0));
|
|
509
509
|
tmp = compare(tmp$ret$3, new Long(8192, 0)) <= 0;
|
|
510
510
|
} else {
|
|
511
511
|
tmp = false;
|
|
512
512
|
}
|
|
513
513
|
if (tmp) {
|
|
514
|
-
ensureNotNull(source.
|
|
515
|
-
source.
|
|
516
|
-
this.
|
|
514
|
+
ensureNotNull(source.o1j_1).i1l(tail, convertToInt(remainingByteCount));
|
|
515
|
+
source.q1j_1 = subtract(source.q1j_1, remainingByteCount);
|
|
516
|
+
this.q1j_1 = add(this.q1j_1, remainingByteCount);
|
|
517
517
|
return Unit_instance;
|
|
518
518
|
} else {
|
|
519
|
-
source.
|
|
519
|
+
source.o1j_1 = ensureNotNull(source.o1j_1).h1l(convertToInt(remainingByteCount));
|
|
520
520
|
}
|
|
521
521
|
}
|
|
522
|
-
var segmentToMove = ensureNotNull(source.
|
|
522
|
+
var segmentToMove = ensureNotNull(source.o1j_1);
|
|
523
523
|
var movedByteCount = fromInt(segmentToMove.g1());
|
|
524
|
-
source.
|
|
525
|
-
if (source.
|
|
526
|
-
source.
|
|
524
|
+
source.o1j_1 = segmentToMove.j1l();
|
|
525
|
+
if (source.o1j_1 == null) {
|
|
526
|
+
source.p1j_1 = null;
|
|
527
527
|
}
|
|
528
528
|
// Inline function 'kotlinx.io.Buffer.pushSegment' call
|
|
529
|
-
if (this.
|
|
530
|
-
this.n1j_1 = segmentToMove;
|
|
529
|
+
if (this.o1j_1 == null) {
|
|
531
530
|
this.o1j_1 = segmentToMove;
|
|
531
|
+
this.p1j_1 = segmentToMove;
|
|
532
532
|
} else if (true) {
|
|
533
|
-
this.
|
|
534
|
-
if (ensureNotNull(this.
|
|
535
|
-
this.
|
|
533
|
+
this.p1j_1 = ensureNotNull(this.p1j_1).k1k(segmentToMove).l1k();
|
|
534
|
+
if (ensureNotNull(this.p1j_1).c1k_1 == null) {
|
|
535
|
+
this.o1j_1 = this.p1j_1;
|
|
536
536
|
}
|
|
537
537
|
} else {
|
|
538
|
-
this.
|
|
538
|
+
this.p1j_1 = ensureNotNull(this.p1j_1).k1k(segmentToMove);
|
|
539
539
|
}
|
|
540
|
-
source.
|
|
541
|
-
this.
|
|
540
|
+
source.q1j_1 = subtract(source.q1j_1, movedByteCount);
|
|
541
|
+
this.q1j_1 = add(this.q1j_1, movedByteCount);
|
|
542
542
|
remainingByteCount = subtract(remainingByteCount, movedByteCount);
|
|
543
543
|
}
|
|
544
544
|
};
|
|
545
|
-
protoOf(Buffer).
|
|
545
|
+
protoOf(Buffer).k1l = function (source) {
|
|
546
546
|
var totalBytesRead = new Long(0, 0);
|
|
547
547
|
$l$loop: while (true) {
|
|
548
|
-
var readCount = source.
|
|
548
|
+
var readCount = source.s1k(this, new Long(8192, 0));
|
|
549
549
|
if (equalsLong(readCount, new Long(-1, -1)))
|
|
550
550
|
break $l$loop;
|
|
551
551
|
totalBytesRead = add(totalBytesRead, readCount);
|
|
552
552
|
}
|
|
553
553
|
return totalBytesRead;
|
|
554
554
|
};
|
|
555
|
-
protoOf(Buffer).
|
|
556
|
-
this.
|
|
557
|
-
this.
|
|
555
|
+
protoOf(Buffer).l1l = function (byte) {
|
|
556
|
+
this.x1k(1).m1l(byte);
|
|
557
|
+
this.q1j_1 = add(this.q1j_1, new Long(1, 0));
|
|
558
558
|
};
|
|
559
|
-
protoOf(Buffer).
|
|
560
|
-
this.
|
|
561
|
-
this.
|
|
559
|
+
protoOf(Buffer).n1l = function (short) {
|
|
560
|
+
this.x1k(2).o1l(short);
|
|
561
|
+
this.q1j_1 = add(this.q1j_1, new Long(2, 0));
|
|
562
562
|
};
|
|
563
563
|
protoOf(Buffer).r4 = function () {
|
|
564
564
|
return Unit_instance;
|
|
@@ -576,7 +576,7 @@
|
|
|
576
576
|
var builder = StringBuilder_init_$Create$(imul(len, 2) + (compare(this.g1(), fromInt(maxPrintableBytes)) > 0 ? 1 : 0) | 0);
|
|
577
577
|
var bytesWritten = 0;
|
|
578
578
|
// Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.forEachSegment' call
|
|
579
|
-
var curr = this.
|
|
579
|
+
var curr = this.o1j_1;
|
|
580
580
|
while (!(curr == null)) {
|
|
581
581
|
var tmp0 = get_SegmentReadContextImpl();
|
|
582
582
|
var segment = curr;
|
|
@@ -584,7 +584,7 @@
|
|
|
584
584
|
while (bytesWritten < len && idx < segment.g1()) {
|
|
585
585
|
var _unary__edvuaz = idx;
|
|
586
586
|
idx = _unary__edvuaz + 1 | 0;
|
|
587
|
-
var b_0 = tmp0.
|
|
587
|
+
var b_0 = tmp0.p1l(segment, _unary__edvuaz);
|
|
588
588
|
bytesWritten = bytesWritten + 1 | 0;
|
|
589
589
|
var tmp = get_HEX_DIGIT_CHARS();
|
|
590
590
|
// Inline function 'kotlinx.io.shr' call
|
|
@@ -595,36 +595,36 @@
|
|
|
595
595
|
var tmp$ret$3 = b_0 & 15;
|
|
596
596
|
tmp_0.s(tmp_1[tmp$ret$3]);
|
|
597
597
|
}
|
|
598
|
-
curr = curr.
|
|
598
|
+
curr = curr.b1k_1;
|
|
599
599
|
}
|
|
600
600
|
if (compare(this.g1(), fromInt(maxPrintableBytes)) > 0) {
|
|
601
601
|
builder.s(_Char___init__impl__6a9atx(8230));
|
|
602
602
|
}
|
|
603
603
|
return 'Buffer(size=' + this.g1().toString() + ' hex=' + builder.toString() + ')';
|
|
604
604
|
};
|
|
605
|
-
protoOf(Buffer).
|
|
606
|
-
var oldHead = ensureNotNull(this.
|
|
607
|
-
var nextHead = oldHead.
|
|
608
|
-
this.
|
|
605
|
+
protoOf(Buffer).d1k = function () {
|
|
606
|
+
var oldHead = ensureNotNull(this.o1j_1);
|
|
607
|
+
var nextHead = oldHead.b1k_1;
|
|
608
|
+
this.o1j_1 = nextHead;
|
|
609
609
|
if (nextHead == null) {
|
|
610
|
-
this.
|
|
610
|
+
this.p1j_1 = null;
|
|
611
611
|
} else {
|
|
612
|
-
nextHead.
|
|
612
|
+
nextHead.c1k_1 = null;
|
|
613
613
|
}
|
|
614
|
-
oldHead.
|
|
615
|
-
SegmentPool_instance.
|
|
614
|
+
oldHead.b1k_1 = null;
|
|
615
|
+
SegmentPool_instance.q1l(oldHead);
|
|
616
616
|
};
|
|
617
|
-
protoOf(Buffer).
|
|
618
|
-
var oldTail = ensureNotNull(this.
|
|
619
|
-
var newTail = oldTail.
|
|
620
|
-
this.
|
|
617
|
+
protoOf(Buffer).r1l = function () {
|
|
618
|
+
var oldTail = ensureNotNull(this.p1j_1);
|
|
619
|
+
var newTail = oldTail.c1k_1;
|
|
620
|
+
this.p1j_1 = newTail;
|
|
621
621
|
if (newTail == null) {
|
|
622
|
-
this.
|
|
622
|
+
this.o1j_1 = null;
|
|
623
623
|
} else {
|
|
624
|
-
newTail.
|
|
624
|
+
newTail.b1k_1 = null;
|
|
625
625
|
}
|
|
626
|
-
oldTail.
|
|
627
|
-
SegmentPool_instance.
|
|
626
|
+
oldTail.c1k_1 = null;
|
|
627
|
+
SegmentPool_instance.q1l(oldTail);
|
|
628
628
|
};
|
|
629
629
|
function indexOf(_this__u8e3s4, byte, startIndex, endIndex) {
|
|
630
630
|
startIndex = startIndex === VOID ? new Long(0, 0) : startIndex;
|
|
@@ -636,7 +636,7 @@
|
|
|
636
636
|
if (equalsLong(startIndex, endOffset))
|
|
637
637
|
return new Long(-1, -1);
|
|
638
638
|
// Inline function 'kotlinx.io.seek' call
|
|
639
|
-
if (_this__u8e3s4.
|
|
639
|
+
if (_this__u8e3s4.o1j_1 == null) {
|
|
640
640
|
var o = new Long(-1, -1);
|
|
641
641
|
if (equalsLong(o, new Long(-1, -1))) {
|
|
642
642
|
return new Long(-1, -1);
|
|
@@ -665,19 +665,19 @@
|
|
|
665
665
|
// Inline function 'kotlin.Long.plus' call
|
|
666
666
|
var other = segment.g1();
|
|
667
667
|
offset = add(tmp0_0, fromInt(other));
|
|
668
|
-
segment = segment.
|
|
668
|
+
segment = segment.b1k_1;
|
|
669
669
|
}
|
|
670
670
|
while (!(segment == null) && compare(offset, endOffset) < 0);
|
|
671
671
|
return new Long(-1, -1);
|
|
672
672
|
}
|
|
673
673
|
if (compare(subtract(_this__u8e3s4.g1(), startIndex), startIndex) < 0) {
|
|
674
|
-
var s = _this__u8e3s4.
|
|
674
|
+
var s = _this__u8e3s4.p1j_1;
|
|
675
675
|
var offset_0 = _this__u8e3s4.g1();
|
|
676
676
|
$l$loop: while (!(s == null) && compare(offset_0, startIndex) > 0) {
|
|
677
|
-
offset_0 = subtract(offset_0, fromInt(s.
|
|
677
|
+
offset_0 = subtract(offset_0, fromInt(s.y1j_1 - s.x1j_1 | 0));
|
|
678
678
|
if (compare(offset_0, startIndex) <= 0)
|
|
679
679
|
break $l$loop;
|
|
680
|
-
s = s.
|
|
680
|
+
s = s.c1k_1;
|
|
681
681
|
}
|
|
682
682
|
var tmp0_1 = s;
|
|
683
683
|
var o_0 = offset_0;
|
|
@@ -708,21 +708,21 @@
|
|
|
708
708
|
// Inline function 'kotlin.Long.plus' call
|
|
709
709
|
var other_0 = segment_0.g1();
|
|
710
710
|
offset_1 = add(tmp0_3, fromInt(other_0));
|
|
711
|
-
segment_0 = segment_0.
|
|
711
|
+
segment_0 = segment_0.b1k_1;
|
|
712
712
|
}
|
|
713
713
|
while (!(segment_0 == null) && compare(offset_1, endOffset) < 0);
|
|
714
714
|
return new Long(-1, -1);
|
|
715
715
|
} else {
|
|
716
|
-
var s_0 = _this__u8e3s4.
|
|
716
|
+
var s_0 = _this__u8e3s4.o1j_1;
|
|
717
717
|
var offset_2 = new Long(0, 0);
|
|
718
718
|
$l$loop_0: while (!(s_0 == null)) {
|
|
719
719
|
var tmp0_4 = offset_2;
|
|
720
720
|
// Inline function 'kotlin.Long.plus' call
|
|
721
|
-
var other_1 = s_0.
|
|
721
|
+
var other_1 = s_0.y1j_1 - s_0.x1j_1 | 0;
|
|
722
722
|
var nextOffset = add(tmp0_4, fromInt(other_1));
|
|
723
723
|
if (compare(nextOffset, startIndex) > 0)
|
|
724
724
|
break $l$loop_0;
|
|
725
|
-
s_0 = s_0.
|
|
725
|
+
s_0 = s_0.b1k_1;
|
|
726
726
|
offset_2 = nextOffset;
|
|
727
727
|
}
|
|
728
728
|
var tmp0_5 = s_0;
|
|
@@ -754,14 +754,14 @@
|
|
|
754
754
|
// Inline function 'kotlin.Long.plus' call
|
|
755
755
|
var other_2 = segment_1.g1();
|
|
756
756
|
offset_3 = add(tmp0_7, fromInt(other_2));
|
|
757
|
-
segment_1 = segment_1.
|
|
757
|
+
segment_1 = segment_1.b1k_1;
|
|
758
758
|
}
|
|
759
759
|
while (!(segment_1 == null) && compare(offset_3, endOffset) < 0);
|
|
760
760
|
return new Long(-1, -1);
|
|
761
761
|
}
|
|
762
762
|
}
|
|
763
763
|
function readByteString(_this__u8e3s4, byteCount) {
|
|
764
|
-
return UnsafeByteStringOperations_instance.
|
|
764
|
+
return UnsafeByteStringOperations_instance.n1j(readByteArray_0(_this__u8e3s4, byteCount));
|
|
765
765
|
}
|
|
766
766
|
function buffered(_this__u8e3s4) {
|
|
767
767
|
return new RealSink(_this__u8e3s4);
|
|
@@ -770,19 +770,19 @@
|
|
|
770
770
|
return new RealSource(_this__u8e3s4);
|
|
771
771
|
}
|
|
772
772
|
function PeekSource(upstream) {
|
|
773
|
-
this.
|
|
774
|
-
this.
|
|
775
|
-
this.
|
|
773
|
+
this.s1l_1 = upstream;
|
|
774
|
+
this.t1l_1 = this.s1l_1.r1j();
|
|
775
|
+
this.u1l_1 = this.t1l_1.o1j_1;
|
|
776
776
|
var tmp = this;
|
|
777
|
-
var tmp0_safe_receiver = this.
|
|
778
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
779
|
-
tmp.
|
|
780
|
-
this.
|
|
781
|
-
this.
|
|
777
|
+
var tmp0_safe_receiver = this.t1l_1.o1j_1;
|
|
778
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.x1j_1;
|
|
779
|
+
tmp.v1l_1 = tmp1_elvis_lhs == null ? -1 : tmp1_elvis_lhs;
|
|
780
|
+
this.w1l_1 = false;
|
|
781
|
+
this.x1l_1 = new Long(0, 0);
|
|
782
782
|
}
|
|
783
|
-
protoOf(PeekSource).
|
|
783
|
+
protoOf(PeekSource).s1k = function (sink, byteCount) {
|
|
784
784
|
// Inline function 'kotlin.check' call
|
|
785
|
-
if (!!this.
|
|
785
|
+
if (!!this.w1l_1) {
|
|
786
786
|
var message = 'Source is closed.';
|
|
787
787
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
788
788
|
}
|
|
@@ -793,43 +793,43 @@
|
|
|
793
793
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
794
794
|
}
|
|
795
795
|
// Inline function 'kotlin.check' call
|
|
796
|
-
if (!(this.
|
|
796
|
+
if (!(this.u1l_1 == null || (this.u1l_1 === this.t1l_1.o1j_1 && this.v1l_1 === ensureNotNull(this.t1l_1.o1j_1).x1j_1))) {
|
|
797
797
|
var message_1 = 'Peek source is invalid because upstream source was used';
|
|
798
798
|
throw IllegalStateException_init_$Create$(toString(message_1));
|
|
799
799
|
}
|
|
800
800
|
if (equalsLong(byteCount, new Long(0, 0)))
|
|
801
801
|
return new Long(0, 0);
|
|
802
802
|
// Inline function 'kotlin.Long.plus' call
|
|
803
|
-
var this_0 = this.
|
|
803
|
+
var this_0 = this.x1l_1;
|
|
804
804
|
var tmp$ret$7 = add(this_0, fromInt(1));
|
|
805
|
-
if (!this.
|
|
805
|
+
if (!this.s1l_1.u1j(tmp$ret$7))
|
|
806
806
|
return new Long(-1, -1);
|
|
807
|
-
if (this.
|
|
808
|
-
this.
|
|
809
|
-
this.
|
|
807
|
+
if (this.u1l_1 == null && !(this.t1l_1.o1j_1 == null)) {
|
|
808
|
+
this.u1l_1 = this.t1l_1.o1j_1;
|
|
809
|
+
this.v1l_1 = ensureNotNull(this.t1l_1.o1j_1).x1j_1;
|
|
810
810
|
}
|
|
811
811
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
812
|
-
var b = subtract(this.
|
|
812
|
+
var b = subtract(this.t1l_1.g1(), this.x1l_1);
|
|
813
813
|
var toCopy = compare(byteCount, b) <= 0 ? byteCount : b;
|
|
814
|
-
this.
|
|
815
|
-
this.
|
|
814
|
+
this.t1l_1.i1k(sink, this.x1l_1, add(this.x1l_1, toCopy));
|
|
815
|
+
this.x1l_1 = add(this.x1l_1, toCopy);
|
|
816
816
|
return toCopy;
|
|
817
817
|
};
|
|
818
818
|
protoOf(PeekSource).r4 = function () {
|
|
819
|
-
this.
|
|
819
|
+
this.w1l_1 = true;
|
|
820
820
|
};
|
|
821
821
|
function RealSink(sink) {
|
|
822
|
-
this.
|
|
823
|
-
this.
|
|
824
|
-
this.
|
|
822
|
+
this.y1l_1 = sink;
|
|
823
|
+
this.z1l_1 = false;
|
|
824
|
+
this.a1m_1 = new Buffer();
|
|
825
825
|
}
|
|
826
|
-
protoOf(RealSink).
|
|
827
|
-
return this.
|
|
826
|
+
protoOf(RealSink).r1j = function () {
|
|
827
|
+
return this.a1m_1;
|
|
828
828
|
};
|
|
829
|
-
protoOf(RealSink).
|
|
829
|
+
protoOf(RealSink).t1k = function (source, byteCount) {
|
|
830
830
|
// Inline function 'kotlinx.io.RealSink.checkNotClosed' call
|
|
831
831
|
// Inline function 'kotlin.check' call
|
|
832
|
-
if (!!this.
|
|
832
|
+
if (!!this.z1l_1) {
|
|
833
833
|
var message = 'Sink is closed.';
|
|
834
834
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
835
835
|
}
|
|
@@ -838,43 +838,43 @@
|
|
|
838
838
|
var message_0 = 'byteCount: ' + byteCount.toString();
|
|
839
839
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
840
840
|
}
|
|
841
|
-
this.
|
|
842
|
-
this.
|
|
841
|
+
this.a1m_1.t1k(source, byteCount);
|
|
842
|
+
this.h1k();
|
|
843
843
|
};
|
|
844
|
-
protoOf(RealSink).
|
|
844
|
+
protoOf(RealSink).b1l = function (source, startIndex, endIndex) {
|
|
845
845
|
// Inline function 'kotlinx.io.RealSink.checkNotClosed' call
|
|
846
846
|
// Inline function 'kotlin.check' call
|
|
847
|
-
if (!!this.
|
|
847
|
+
if (!!this.z1l_1) {
|
|
848
848
|
var message = 'Sink is closed.';
|
|
849
849
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
850
850
|
}
|
|
851
851
|
// Inline function 'kotlinx.io.checkBounds' call
|
|
852
852
|
var size = source.length;
|
|
853
853
|
checkBounds(fromInt(size), fromInt(startIndex), fromInt(endIndex));
|
|
854
|
-
this.
|
|
855
|
-
this.
|
|
854
|
+
this.a1m_1.b1l(source, startIndex, endIndex);
|
|
855
|
+
this.h1k();
|
|
856
856
|
};
|
|
857
|
-
protoOf(RealSink).
|
|
857
|
+
protoOf(RealSink).k1l = function (source) {
|
|
858
858
|
// Inline function 'kotlinx.io.RealSink.checkNotClosed' call
|
|
859
859
|
// Inline function 'kotlin.check' call
|
|
860
|
-
if (!!this.
|
|
860
|
+
if (!!this.z1l_1) {
|
|
861
861
|
var message = 'Sink is closed.';
|
|
862
862
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
863
863
|
}
|
|
864
864
|
var totalBytesRead = new Long(0, 0);
|
|
865
865
|
$l$loop: while (true) {
|
|
866
|
-
var readCount = source.
|
|
866
|
+
var readCount = source.s1k(this.a1m_1, new Long(8192, 0));
|
|
867
867
|
if (equalsLong(readCount, new Long(-1, -1)))
|
|
868
868
|
break $l$loop;
|
|
869
869
|
totalBytesRead = add(totalBytesRead, readCount);
|
|
870
|
-
this.
|
|
870
|
+
this.h1k();
|
|
871
871
|
}
|
|
872
872
|
return totalBytesRead;
|
|
873
873
|
};
|
|
874
|
-
protoOf(RealSink).
|
|
874
|
+
protoOf(RealSink).f1l = function (source, byteCount) {
|
|
875
875
|
// Inline function 'kotlinx.io.RealSink.checkNotClosed' call
|
|
876
876
|
// Inline function 'kotlin.check' call
|
|
877
|
-
if (!!this.
|
|
877
|
+
if (!!this.z1l_1) {
|
|
878
878
|
var message = 'Sink is closed.';
|
|
879
879
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
880
880
|
}
|
|
@@ -885,54 +885,54 @@
|
|
|
885
885
|
}
|
|
886
886
|
var remainingByteCount = byteCount;
|
|
887
887
|
while (compare(remainingByteCount, new Long(0, 0)) > 0) {
|
|
888
|
-
var read = source.
|
|
888
|
+
var read = source.s1k(this.a1m_1, remainingByteCount);
|
|
889
889
|
if (equalsLong(read, new Long(-1, -1))) {
|
|
890
890
|
var bytesRead = subtract(byteCount, remainingByteCount);
|
|
891
891
|
throw EOFException_init_$Create$_0('Source exhausted before reading ' + byteCount.toString() + ' bytes from it (number of bytes read: ' + bytesRead.toString() + ').');
|
|
892
892
|
}
|
|
893
893
|
remainingByteCount = subtract(remainingByteCount, read);
|
|
894
|
-
this.
|
|
894
|
+
this.h1k();
|
|
895
895
|
}
|
|
896
896
|
};
|
|
897
|
-
protoOf(RealSink).
|
|
897
|
+
protoOf(RealSink).l1l = function (byte) {
|
|
898
898
|
// Inline function 'kotlinx.io.RealSink.checkNotClosed' call
|
|
899
899
|
// Inline function 'kotlin.check' call
|
|
900
|
-
if (!!this.
|
|
900
|
+
if (!!this.z1l_1) {
|
|
901
901
|
var message = 'Sink is closed.';
|
|
902
902
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
903
903
|
}
|
|
904
|
-
this.
|
|
905
|
-
this.
|
|
904
|
+
this.a1m_1.l1l(byte);
|
|
905
|
+
this.h1k();
|
|
906
906
|
};
|
|
907
|
-
protoOf(RealSink).
|
|
907
|
+
protoOf(RealSink).n1l = function (short) {
|
|
908
908
|
// Inline function 'kotlinx.io.RealSink.checkNotClosed' call
|
|
909
909
|
// Inline function 'kotlin.check' call
|
|
910
|
-
if (!!this.
|
|
910
|
+
if (!!this.z1l_1) {
|
|
911
911
|
var message = 'Sink is closed.';
|
|
912
912
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
913
913
|
}
|
|
914
|
-
this.
|
|
915
|
-
this.
|
|
914
|
+
this.a1m_1.n1l(short);
|
|
915
|
+
this.h1k();
|
|
916
916
|
};
|
|
917
|
-
protoOf(RealSink).
|
|
917
|
+
protoOf(RealSink).h1k = function () {
|
|
918
918
|
// Inline function 'kotlinx.io.RealSink.checkNotClosed' call
|
|
919
919
|
// Inline function 'kotlin.check' call
|
|
920
|
-
if (!!this.
|
|
920
|
+
if (!!this.z1l_1) {
|
|
921
921
|
var message = 'Sink is closed.';
|
|
922
922
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
923
923
|
}
|
|
924
|
-
var byteCount = this.
|
|
924
|
+
var byteCount = this.a1m_1.m1k();
|
|
925
925
|
if (compare(byteCount, new Long(0, 0)) > 0) {
|
|
926
|
-
this.
|
|
926
|
+
this.y1l_1.t1k(this.a1m_1, byteCount);
|
|
927
927
|
}
|
|
928
928
|
};
|
|
929
929
|
protoOf(RealSink).r4 = function () {
|
|
930
|
-
if (this.
|
|
930
|
+
if (this.z1l_1)
|
|
931
931
|
return Unit_instance;
|
|
932
932
|
var thrown = null;
|
|
933
933
|
try {
|
|
934
|
-
if (compare(this.
|
|
935
|
-
this.
|
|
934
|
+
if (compare(this.a1m_1.g1(), new Long(0, 0)) > 0) {
|
|
935
|
+
this.y1l_1.t1k(this.a1m_1, this.a1m_1.g1());
|
|
936
936
|
}
|
|
937
937
|
} catch ($p) {
|
|
938
938
|
if ($p instanceof Error) {
|
|
@@ -943,7 +943,7 @@
|
|
|
943
943
|
}
|
|
944
944
|
}
|
|
945
945
|
try {
|
|
946
|
-
this.
|
|
946
|
+
this.y1l_1.r4();
|
|
947
947
|
} catch ($p) {
|
|
948
948
|
if ($p instanceof Error) {
|
|
949
949
|
var e_0 = $p;
|
|
@@ -953,25 +953,25 @@
|
|
|
953
953
|
throw $p;
|
|
954
954
|
}
|
|
955
955
|
}
|
|
956
|
-
this.
|
|
956
|
+
this.z1l_1 = true;
|
|
957
957
|
if (!(thrown == null))
|
|
958
958
|
throw thrown;
|
|
959
959
|
};
|
|
960
960
|
protoOf(RealSink).toString = function () {
|
|
961
|
-
return 'buffered(' + toString(this.
|
|
961
|
+
return 'buffered(' + toString(this.y1l_1) + ')';
|
|
962
962
|
};
|
|
963
963
|
function RealSource(source) {
|
|
964
|
-
this.
|
|
965
|
-
this.
|
|
966
|
-
this.
|
|
964
|
+
this.b1m_1 = source;
|
|
965
|
+
this.c1m_1 = false;
|
|
966
|
+
this.d1m_1 = new Buffer();
|
|
967
967
|
}
|
|
968
|
-
protoOf(RealSource).
|
|
969
|
-
return this.
|
|
968
|
+
protoOf(RealSource).r1j = function () {
|
|
969
|
+
return this.d1m_1;
|
|
970
970
|
};
|
|
971
|
-
protoOf(RealSource).
|
|
971
|
+
protoOf(RealSource).s1k = function (sink, byteCount) {
|
|
972
972
|
// Inline function 'kotlinx.io.RealSource.checkNotClosed' call
|
|
973
973
|
// Inline function 'kotlin.check' call
|
|
974
|
-
if (!!this.
|
|
974
|
+
if (!!this.c1m_1) {
|
|
975
975
|
var message = 'Source is closed.';
|
|
976
976
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
977
977
|
}
|
|
@@ -980,33 +980,33 @@
|
|
|
980
980
|
var message_0 = 'byteCount: ' + byteCount.toString();
|
|
981
981
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
982
982
|
}
|
|
983
|
-
if (equalsLong(this.
|
|
984
|
-
var read = this.
|
|
983
|
+
if (equalsLong(this.d1m_1.g1(), new Long(0, 0))) {
|
|
984
|
+
var read = this.b1m_1.s1k(this.d1m_1, new Long(8192, 0));
|
|
985
985
|
if (equalsLong(read, new Long(-1, -1)))
|
|
986
986
|
return new Long(-1, -1);
|
|
987
987
|
}
|
|
988
988
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
989
|
-
var b = this.
|
|
989
|
+
var b = this.d1m_1.g1();
|
|
990
990
|
var toRead = compare(byteCount, b) <= 0 ? byteCount : b;
|
|
991
|
-
return this.
|
|
991
|
+
return this.d1m_1.s1k(sink, toRead);
|
|
992
992
|
};
|
|
993
|
-
protoOf(RealSource).
|
|
993
|
+
protoOf(RealSource).s1j = function () {
|
|
994
994
|
// Inline function 'kotlinx.io.RealSource.checkNotClosed' call
|
|
995
995
|
// Inline function 'kotlin.check' call
|
|
996
|
-
if (!!this.
|
|
996
|
+
if (!!this.c1m_1) {
|
|
997
997
|
var message = 'Source is closed.';
|
|
998
998
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
999
999
|
}
|
|
1000
|
-
return this.
|
|
1000
|
+
return this.d1m_1.s1j() && equalsLong(this.b1m_1.s1k(this.d1m_1, new Long(8192, 0)), new Long(-1, -1));
|
|
1001
1001
|
};
|
|
1002
|
-
protoOf(RealSource).
|
|
1003
|
-
if (!this.
|
|
1002
|
+
protoOf(RealSource).t1j = function (byteCount) {
|
|
1003
|
+
if (!this.u1j(byteCount))
|
|
1004
1004
|
throw EOFException_init_$Create$_0("Source doesn't contain required number of bytes (" + byteCount.toString() + ').');
|
|
1005
1005
|
};
|
|
1006
|
-
protoOf(RealSource).
|
|
1006
|
+
protoOf(RealSource).u1j = function (byteCount) {
|
|
1007
1007
|
// Inline function 'kotlinx.io.RealSource.checkNotClosed' call
|
|
1008
1008
|
// Inline function 'kotlin.check' call
|
|
1009
|
-
if (!!this.
|
|
1009
|
+
if (!!this.c1m_1) {
|
|
1010
1010
|
var message = 'Source is closed.';
|
|
1011
1011
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
1012
1012
|
}
|
|
@@ -1015,91 +1015,91 @@
|
|
|
1015
1015
|
var message_0 = 'byteCount: ' + byteCount.toString();
|
|
1016
1016
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
1017
1017
|
}
|
|
1018
|
-
while (compare(this.
|
|
1019
|
-
if (equalsLong(this.
|
|
1018
|
+
while (compare(this.d1m_1.g1(), byteCount) < 0) {
|
|
1019
|
+
if (equalsLong(this.b1m_1.s1k(this.d1m_1, new Long(8192, 0)), new Long(-1, -1)))
|
|
1020
1020
|
return false;
|
|
1021
1021
|
}
|
|
1022
1022
|
return true;
|
|
1023
1023
|
};
|
|
1024
|
-
protoOf(RealSource).
|
|
1025
|
-
this.
|
|
1026
|
-
return this.
|
|
1024
|
+
protoOf(RealSource).v1j = function () {
|
|
1025
|
+
this.t1j(new Long(1, 0));
|
|
1026
|
+
return this.d1m_1.v1j();
|
|
1027
1027
|
};
|
|
1028
|
-
protoOf(RealSource).
|
|
1028
|
+
protoOf(RealSource).q1k = function (sink, startIndex, endIndex) {
|
|
1029
1029
|
// Inline function 'kotlinx.io.checkBounds' call
|
|
1030
1030
|
var size = sink.length;
|
|
1031
1031
|
checkBounds(fromInt(size), fromInt(startIndex), fromInt(endIndex));
|
|
1032
|
-
if (equalsLong(this.
|
|
1033
|
-
var read = this.
|
|
1032
|
+
if (equalsLong(this.d1m_1.g1(), new Long(0, 0))) {
|
|
1033
|
+
var read = this.b1m_1.s1k(this.d1m_1, new Long(8192, 0));
|
|
1034
1034
|
if (equalsLong(read, new Long(-1, -1)))
|
|
1035
1035
|
return -1;
|
|
1036
1036
|
}
|
|
1037
1037
|
var tmp0 = endIndex - startIndex | 0;
|
|
1038
1038
|
// Inline function 'kotlinx.io.minOf' call
|
|
1039
|
-
var b = this.
|
|
1039
|
+
var b = this.d1m_1.g1();
|
|
1040
1040
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
1041
1041
|
var a = fromInt(tmp0);
|
|
1042
1042
|
var tmp$ret$2 = compare(a, b) <= 0 ? a : b;
|
|
1043
1043
|
var toRead = convertToInt(tmp$ret$2);
|
|
1044
|
-
return this.
|
|
1044
|
+
return this.d1m_1.q1k(sink, startIndex, startIndex + toRead | 0);
|
|
1045
1045
|
};
|
|
1046
|
-
protoOf(RealSource).
|
|
1046
|
+
protoOf(RealSource).u1k = function (sink, byteCount) {
|
|
1047
1047
|
try {
|
|
1048
|
-
this.
|
|
1048
|
+
this.t1j(byteCount);
|
|
1049
1049
|
} catch ($p) {
|
|
1050
1050
|
if ($p instanceof EOFException) {
|
|
1051
1051
|
var e = $p;
|
|
1052
|
-
sink.
|
|
1052
|
+
sink.t1k(this.d1m_1, this.d1m_1.g1());
|
|
1053
1053
|
throw e;
|
|
1054
1054
|
} else {
|
|
1055
1055
|
throw $p;
|
|
1056
1056
|
}
|
|
1057
1057
|
}
|
|
1058
|
-
this.
|
|
1058
|
+
this.d1m_1.u1k(sink, byteCount);
|
|
1059
1059
|
};
|
|
1060
|
-
protoOf(RealSource).
|
|
1060
|
+
protoOf(RealSource).v1k = function (sink) {
|
|
1061
1061
|
var totalBytesWritten = new Long(0, 0);
|
|
1062
|
-
while (!equalsLong(this.
|
|
1063
|
-
var emitByteCount = this.
|
|
1062
|
+
while (!equalsLong(this.b1m_1.s1k(this.d1m_1, new Long(8192, 0)), new Long(-1, -1))) {
|
|
1063
|
+
var emitByteCount = this.d1m_1.m1k();
|
|
1064
1064
|
if (compare(emitByteCount, new Long(0, 0)) > 0) {
|
|
1065
1065
|
totalBytesWritten = add(totalBytesWritten, emitByteCount);
|
|
1066
|
-
sink.
|
|
1066
|
+
sink.t1k(this.d1m_1, emitByteCount);
|
|
1067
1067
|
}
|
|
1068
1068
|
}
|
|
1069
|
-
if (compare(this.
|
|
1070
|
-
totalBytesWritten = add(totalBytesWritten, this.
|
|
1071
|
-
sink.
|
|
1069
|
+
if (compare(this.d1m_1.g1(), new Long(0, 0)) > 0) {
|
|
1070
|
+
totalBytesWritten = add(totalBytesWritten, this.d1m_1.g1());
|
|
1071
|
+
sink.t1k(this.d1m_1, this.d1m_1.g1());
|
|
1072
1072
|
}
|
|
1073
1073
|
return totalBytesWritten;
|
|
1074
1074
|
};
|
|
1075
|
-
protoOf(RealSource).
|
|
1076
|
-
this.
|
|
1077
|
-
return this.
|
|
1075
|
+
protoOf(RealSource).f1k = function () {
|
|
1076
|
+
this.t1j(new Long(2, 0));
|
|
1077
|
+
return this.d1m_1.f1k();
|
|
1078
1078
|
};
|
|
1079
|
-
protoOf(RealSource).
|
|
1079
|
+
protoOf(RealSource).w1k = function () {
|
|
1080
1080
|
// Inline function 'kotlinx.io.RealSource.checkNotClosed' call
|
|
1081
1081
|
// Inline function 'kotlin.check' call
|
|
1082
|
-
if (!!this.
|
|
1082
|
+
if (!!this.c1m_1) {
|
|
1083
1083
|
var message = 'Source is closed.';
|
|
1084
1084
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
1085
1085
|
}
|
|
1086
1086
|
return buffered_0(new PeekSource(this));
|
|
1087
1087
|
};
|
|
1088
1088
|
protoOf(RealSource).r4 = function () {
|
|
1089
|
-
if (this.
|
|
1089
|
+
if (this.c1m_1)
|
|
1090
1090
|
return Unit_instance;
|
|
1091
|
-
this.
|
|
1092
|
-
this.
|
|
1093
|
-
this.
|
|
1091
|
+
this.c1m_1 = true;
|
|
1092
|
+
this.b1m_1.r4();
|
|
1093
|
+
this.d1m_1.b3();
|
|
1094
1094
|
};
|
|
1095
1095
|
protoOf(RealSource).toString = function () {
|
|
1096
|
-
return 'buffered(' + toString(this.
|
|
1096
|
+
return 'buffered(' + toString(this.b1m_1) + ')';
|
|
1097
1097
|
};
|
|
1098
1098
|
function Segment_init_$Init$($this) {
|
|
1099
1099
|
Segment.call($this);
|
|
1100
|
-
$this.
|
|
1101
|
-
$this.
|
|
1102
|
-
$this.
|
|
1100
|
+
$this.w1j_1 = new Int8Array(8192);
|
|
1101
|
+
$this.a1k_1 = true;
|
|
1102
|
+
$this.z1j_1 = null;
|
|
1103
1103
|
return $this;
|
|
1104
1104
|
}
|
|
1105
1105
|
function Segment_init_$Create$() {
|
|
@@ -1107,87 +1107,87 @@
|
|
|
1107
1107
|
}
|
|
1108
1108
|
function Segment_init_$Init$_0(data, pos, limit, shareToken, owner, $this) {
|
|
1109
1109
|
Segment.call($this);
|
|
1110
|
-
$this.
|
|
1111
|
-
$this.
|
|
1112
|
-
$this.
|
|
1113
|
-
$this.
|
|
1114
|
-
$this.
|
|
1110
|
+
$this.w1j_1 = data;
|
|
1111
|
+
$this.x1j_1 = pos;
|
|
1112
|
+
$this.y1j_1 = limit;
|
|
1113
|
+
$this.z1j_1 = shareToken;
|
|
1114
|
+
$this.a1k_1 = owner;
|
|
1115
1115
|
return $this;
|
|
1116
1116
|
}
|
|
1117
1117
|
function Segment_init_$Create$_0(data, pos, limit, shareToken, owner) {
|
|
1118
1118
|
return Segment_init_$Init$_0(data, pos, limit, shareToken, owner, objectCreate(protoOf(Segment)));
|
|
1119
1119
|
}
|
|
1120
1120
|
function Companion() {
|
|
1121
|
-
this.
|
|
1122
|
-
this.
|
|
1121
|
+
this.e1m_1 = 8192;
|
|
1122
|
+
this.f1m_1 = 1024;
|
|
1123
1123
|
}
|
|
1124
|
-
protoOf(Companion).
|
|
1124
|
+
protoOf(Companion).g1m = function () {
|
|
1125
1125
|
return Segment_init_$Create$();
|
|
1126
1126
|
};
|
|
1127
1127
|
var Companion_instance;
|
|
1128
1128
|
function Companion_getInstance() {
|
|
1129
1129
|
return Companion_instance;
|
|
1130
1130
|
}
|
|
1131
|
-
protoOf(Segment).
|
|
1132
|
-
var tmp0_safe_receiver = this.
|
|
1133
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1131
|
+
protoOf(Segment).g1l = function () {
|
|
1132
|
+
var tmp0_safe_receiver = this.z1j_1;
|
|
1133
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.h1m();
|
|
1134
1134
|
return tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs;
|
|
1135
1135
|
};
|
|
1136
|
-
protoOf(Segment).
|
|
1137
|
-
var tmp0_elvis_lhs = this.
|
|
1136
|
+
protoOf(Segment).j1k = function () {
|
|
1137
|
+
var tmp0_elvis_lhs = this.z1j_1;
|
|
1138
1138
|
var tmp;
|
|
1139
1139
|
if (tmp0_elvis_lhs == null) {
|
|
1140
1140
|
// Inline function 'kotlin.also' call
|
|
1141
|
-
var this_0 = SegmentPool_instance.
|
|
1142
|
-
this.
|
|
1141
|
+
var this_0 = SegmentPool_instance.i1m();
|
|
1142
|
+
this.z1j_1 = this_0;
|
|
1143
1143
|
tmp = this_0;
|
|
1144
1144
|
} else {
|
|
1145
1145
|
tmp = tmp0_elvis_lhs;
|
|
1146
1146
|
}
|
|
1147
1147
|
var t = tmp;
|
|
1148
|
-
var tmp_0 = this.
|
|
1149
|
-
var tmp_1 = this.
|
|
1148
|
+
var tmp_0 = this.x1j_1;
|
|
1149
|
+
var tmp_1 = this.y1j_1;
|
|
1150
1150
|
// Inline function 'kotlin.also' call
|
|
1151
|
-
t.
|
|
1152
|
-
return Segment_init_$Create$_0(this.
|
|
1151
|
+
t.j1m();
|
|
1152
|
+
return Segment_init_$Create$_0(this.w1j_1, tmp_0, tmp_1, t, false);
|
|
1153
1153
|
};
|
|
1154
|
-
protoOf(Segment).
|
|
1155
|
-
var result = this.
|
|
1156
|
-
if (!(this.
|
|
1157
|
-
ensureNotNull(this.
|
|
1154
|
+
protoOf(Segment).j1l = function () {
|
|
1155
|
+
var result = this.b1k_1;
|
|
1156
|
+
if (!(this.c1k_1 == null)) {
|
|
1157
|
+
ensureNotNull(this.c1k_1).b1k_1 = this.b1k_1;
|
|
1158
1158
|
}
|
|
1159
|
-
if (!(this.
|
|
1160
|
-
ensureNotNull(this.
|
|
1159
|
+
if (!(this.b1k_1 == null)) {
|
|
1160
|
+
ensureNotNull(this.b1k_1).c1k_1 = this.c1k_1;
|
|
1161
1161
|
}
|
|
1162
|
-
this.a1k_1 = null;
|
|
1163
1162
|
this.b1k_1 = null;
|
|
1163
|
+
this.c1k_1 = null;
|
|
1164
1164
|
return result;
|
|
1165
1165
|
};
|
|
1166
|
-
protoOf(Segment).
|
|
1167
|
-
segment.
|
|
1168
|
-
segment.
|
|
1169
|
-
if (!(this.
|
|
1170
|
-
ensureNotNull(this.
|
|
1166
|
+
protoOf(Segment).k1k = function (segment) {
|
|
1167
|
+
segment.c1k_1 = this;
|
|
1168
|
+
segment.b1k_1 = this.b1k_1;
|
|
1169
|
+
if (!(this.b1k_1 == null)) {
|
|
1170
|
+
ensureNotNull(this.b1k_1).c1k_1 = segment;
|
|
1171
1171
|
}
|
|
1172
|
-
this.
|
|
1172
|
+
this.b1k_1 = segment;
|
|
1173
1173
|
return segment;
|
|
1174
1174
|
};
|
|
1175
|
-
protoOf(Segment).
|
|
1175
|
+
protoOf(Segment).h1l = function (byteCount) {
|
|
1176
1176
|
// Inline function 'kotlin.require' call
|
|
1177
|
-
if (!(byteCount > 0 && byteCount <= (this.
|
|
1177
|
+
if (!(byteCount > 0 && byteCount <= (this.y1j_1 - this.x1j_1 | 0))) {
|
|
1178
1178
|
var message = 'byteCount out of range';
|
|
1179
1179
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1180
1180
|
}
|
|
1181
1181
|
var prefix;
|
|
1182
1182
|
if (byteCount >= 1024) {
|
|
1183
|
-
prefix = this.
|
|
1183
|
+
prefix = this.j1k();
|
|
1184
1184
|
} else {
|
|
1185
|
-
prefix = SegmentPool_instance.
|
|
1186
|
-
var tmp0 = this.
|
|
1187
|
-
var tmp2 = prefix.
|
|
1188
|
-
var tmp5 = this.
|
|
1185
|
+
prefix = SegmentPool_instance.a1l();
|
|
1186
|
+
var tmp0 = this.w1j_1;
|
|
1187
|
+
var tmp2 = prefix.w1j_1;
|
|
1188
|
+
var tmp5 = this.x1j_1;
|
|
1189
1189
|
// Inline function 'kotlin.collections.copyInto' call
|
|
1190
|
-
var endIndex = this.
|
|
1190
|
+
var endIndex = this.x1j_1 + byteCount | 0;
|
|
1191
1191
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1192
1192
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1193
1193
|
var tmp = tmp0;
|
|
@@ -1195,62 +1195,62 @@
|
|
|
1195
1195
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1196
1196
|
arrayCopy(tmp, tmp2, 0, tmp5, endIndex);
|
|
1197
1197
|
}
|
|
1198
|
-
prefix.
|
|
1199
|
-
this.
|
|
1200
|
-
if (!(this.
|
|
1201
|
-
ensureNotNull(this.
|
|
1198
|
+
prefix.y1j_1 = prefix.x1j_1 + byteCount | 0;
|
|
1199
|
+
this.x1j_1 = this.x1j_1 + byteCount | 0;
|
|
1200
|
+
if (!(this.c1k_1 == null)) {
|
|
1201
|
+
ensureNotNull(this.c1k_1).k1k(prefix);
|
|
1202
1202
|
} else {
|
|
1203
|
-
prefix.
|
|
1204
|
-
this.
|
|
1203
|
+
prefix.b1k_1 = this;
|
|
1204
|
+
this.c1k_1 = prefix;
|
|
1205
1205
|
}
|
|
1206
1206
|
return prefix;
|
|
1207
1207
|
};
|
|
1208
|
-
protoOf(Segment).
|
|
1208
|
+
protoOf(Segment).l1k = function () {
|
|
1209
1209
|
// Inline function 'kotlin.check' call
|
|
1210
|
-
if (!!(this.
|
|
1210
|
+
if (!!(this.c1k_1 == null)) {
|
|
1211
1211
|
var message = 'cannot compact';
|
|
1212
1212
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
1213
1213
|
}
|
|
1214
|
-
if (!ensureNotNull(this.
|
|
1214
|
+
if (!ensureNotNull(this.c1k_1).a1k_1)
|
|
1215
1215
|
return this;
|
|
1216
|
-
var byteCount = this.
|
|
1217
|
-
var availableByteCount = (8192 - ensureNotNull(this.
|
|
1216
|
+
var byteCount = this.y1j_1 - this.x1j_1 | 0;
|
|
1217
|
+
var availableByteCount = (8192 - ensureNotNull(this.c1k_1).y1j_1 | 0) + (ensureNotNull(this.c1k_1).g1l() ? 0 : ensureNotNull(this.c1k_1).x1j_1) | 0;
|
|
1218
1218
|
if (byteCount > availableByteCount)
|
|
1219
1219
|
return this;
|
|
1220
|
-
var predecessor = this.
|
|
1221
|
-
this.
|
|
1222
|
-
var successor = this.
|
|
1220
|
+
var predecessor = this.c1k_1;
|
|
1221
|
+
this.i1l(ensureNotNull(predecessor), byteCount);
|
|
1222
|
+
var successor = this.j1l();
|
|
1223
1223
|
// Inline function 'kotlin.check' call
|
|
1224
1224
|
if (!(successor == null)) {
|
|
1225
1225
|
throw IllegalStateException_init_$Create$('Check failed.');
|
|
1226
1226
|
}
|
|
1227
|
-
SegmentPool_instance.
|
|
1227
|
+
SegmentPool_instance.q1l(this);
|
|
1228
1228
|
return predecessor;
|
|
1229
1229
|
};
|
|
1230
|
-
protoOf(Segment).
|
|
1231
|
-
var _unary__edvuaz = this.
|
|
1232
|
-
this.
|
|
1233
|
-
this.
|
|
1230
|
+
protoOf(Segment).m1l = function (byte) {
|
|
1231
|
+
var _unary__edvuaz = this.y1j_1;
|
|
1232
|
+
this.y1j_1 = _unary__edvuaz + 1 | 0;
|
|
1233
|
+
this.w1j_1[_unary__edvuaz] = byte;
|
|
1234
1234
|
};
|
|
1235
|
-
protoOf(Segment).
|
|
1236
|
-
var data = this.
|
|
1237
|
-
var limit = this.
|
|
1235
|
+
protoOf(Segment).o1l = function (short) {
|
|
1236
|
+
var data = this.w1j_1;
|
|
1237
|
+
var limit = this.y1j_1;
|
|
1238
1238
|
var _unary__edvuaz = limit;
|
|
1239
1239
|
limit = _unary__edvuaz + 1 | 0;
|
|
1240
1240
|
data[_unary__edvuaz] = toByte((short >>> 8 | 0) & 255);
|
|
1241
1241
|
var _unary__edvuaz_0 = limit;
|
|
1242
1242
|
limit = _unary__edvuaz_0 + 1 | 0;
|
|
1243
1243
|
data[_unary__edvuaz_0] = toByte(short & 255);
|
|
1244
|
-
this.
|
|
1244
|
+
this.y1j_1 = limit;
|
|
1245
1245
|
};
|
|
1246
|
-
protoOf(Segment).
|
|
1247
|
-
var _unary__edvuaz = this.
|
|
1248
|
-
this.
|
|
1249
|
-
return this.
|
|
1246
|
+
protoOf(Segment).e1k = function () {
|
|
1247
|
+
var _unary__edvuaz = this.x1j_1;
|
|
1248
|
+
this.x1j_1 = _unary__edvuaz + 1 | 0;
|
|
1249
|
+
return this.w1j_1[_unary__edvuaz];
|
|
1250
1250
|
};
|
|
1251
|
-
protoOf(Segment).
|
|
1252
|
-
var data = this.
|
|
1253
|
-
var pos = this.
|
|
1251
|
+
protoOf(Segment).g1k = function () {
|
|
1252
|
+
var data = this.w1j_1;
|
|
1253
|
+
var pos = this.x1j_1;
|
|
1254
1254
|
var _unary__edvuaz = pos;
|
|
1255
1255
|
pos = _unary__edvuaz + 1 | 0;
|
|
1256
1256
|
// Inline function 'kotlinx.io.and' call
|
|
@@ -1260,118 +1260,118 @@
|
|
|
1260
1260
|
// Inline function 'kotlinx.io.and' call
|
|
1261
1261
|
var tmp$ret$1 = data[_unary__edvuaz_0] & 255;
|
|
1262
1262
|
var s = toShort(tmp | tmp$ret$1);
|
|
1263
|
-
this.
|
|
1263
|
+
this.x1j_1 = pos;
|
|
1264
1264
|
return s;
|
|
1265
1265
|
};
|
|
1266
|
-
protoOf(Segment).
|
|
1266
|
+
protoOf(Segment).i1l = function (sink, byteCount) {
|
|
1267
1267
|
// Inline function 'kotlin.check' call
|
|
1268
|
-
if (!sink.
|
|
1268
|
+
if (!sink.a1k_1) {
|
|
1269
1269
|
var message = 'only owner can write';
|
|
1270
1270
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
1271
1271
|
}
|
|
1272
|
-
if ((sink.
|
|
1273
|
-
if (sink.
|
|
1272
|
+
if ((sink.y1j_1 + byteCount | 0) > 8192) {
|
|
1273
|
+
if (sink.g1l())
|
|
1274
1274
|
throw IllegalArgumentException_init_$Create$_0();
|
|
1275
|
-
if (((sink.
|
|
1275
|
+
if (((sink.y1j_1 + byteCount | 0) - sink.x1j_1 | 0) > 8192)
|
|
1276
1276
|
throw IllegalArgumentException_init_$Create$_0();
|
|
1277
|
-
var tmp0 = sink.
|
|
1278
|
-
var tmp2 = sink.
|
|
1279
|
-
var tmp5 = sink.
|
|
1277
|
+
var tmp0 = sink.w1j_1;
|
|
1278
|
+
var tmp2 = sink.w1j_1;
|
|
1279
|
+
var tmp5 = sink.x1j_1;
|
|
1280
1280
|
// Inline function 'kotlin.collections.copyInto' call
|
|
1281
|
-
var endIndex = sink.
|
|
1281
|
+
var endIndex = sink.y1j_1;
|
|
1282
1282
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1283
1283
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1284
1284
|
var tmp = tmp0;
|
|
1285
1285
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1286
1286
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1287
1287
|
arrayCopy(tmp, tmp2, 0, tmp5, endIndex);
|
|
1288
|
-
sink.
|
|
1289
|
-
sink.
|
|
1288
|
+
sink.y1j_1 = sink.y1j_1 - sink.x1j_1 | 0;
|
|
1289
|
+
sink.x1j_1 = 0;
|
|
1290
1290
|
}
|
|
1291
|
-
var tmp0_0 = this.
|
|
1292
|
-
var tmp2_0 = sink.
|
|
1293
|
-
var tmp4 = sink.
|
|
1294
|
-
var tmp6 = this.
|
|
1291
|
+
var tmp0_0 = this.w1j_1;
|
|
1292
|
+
var tmp2_0 = sink.w1j_1;
|
|
1293
|
+
var tmp4 = sink.y1j_1;
|
|
1294
|
+
var tmp6 = this.x1j_1;
|
|
1295
1295
|
// Inline function 'kotlin.collections.copyInto' call
|
|
1296
|
-
var endIndex_0 = this.
|
|
1296
|
+
var endIndex_0 = this.x1j_1 + byteCount | 0;
|
|
1297
1297
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1298
1298
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1299
1299
|
var tmp_0 = tmp0_0;
|
|
1300
1300
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1301
1301
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1302
1302
|
arrayCopy(tmp_0, tmp2_0, tmp4, tmp6, endIndex_0);
|
|
1303
|
-
sink.
|
|
1304
|
-
this.
|
|
1303
|
+
sink.y1j_1 = sink.y1j_1 + byteCount | 0;
|
|
1304
|
+
this.x1j_1 = this.x1j_1 + byteCount | 0;
|
|
1305
1305
|
};
|
|
1306
|
-
protoOf(Segment).
|
|
1306
|
+
protoOf(Segment).r1k = function (dst, dstStartOffset, dstEndOffset) {
|
|
1307
1307
|
var len = dstEndOffset - dstStartOffset | 0;
|
|
1308
|
-
var tmp0 = this.
|
|
1309
|
-
var tmp6 = this.
|
|
1308
|
+
var tmp0 = this.w1j_1;
|
|
1309
|
+
var tmp6 = this.x1j_1;
|
|
1310
1310
|
// Inline function 'kotlin.collections.copyInto' call
|
|
1311
|
-
var endIndex = this.
|
|
1311
|
+
var endIndex = this.x1j_1 + len | 0;
|
|
1312
1312
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1313
1313
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1314
1314
|
var tmp = tmp0;
|
|
1315
1315
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1316
1316
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1317
1317
|
arrayCopy(tmp, dst, dstStartOffset, tmp6, endIndex);
|
|
1318
|
-
this.
|
|
1318
|
+
this.x1j_1 = this.x1j_1 + len | 0;
|
|
1319
1319
|
};
|
|
1320
|
-
protoOf(Segment).
|
|
1321
|
-
var tmp2 = this.
|
|
1320
|
+
protoOf(Segment).d1l = function (src, srcStartOffset, srcEndOffset) {
|
|
1321
|
+
var tmp2 = this.w1j_1;
|
|
1322
1322
|
// Inline function 'kotlin.collections.copyInto' call
|
|
1323
|
-
var destinationOffset = this.
|
|
1323
|
+
var destinationOffset = this.y1j_1;
|
|
1324
1324
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1325
1325
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1326
1326
|
var tmp = src;
|
|
1327
1327
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1328
1328
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1329
1329
|
arrayCopy(tmp, tmp2, destinationOffset, srcStartOffset, srcEndOffset);
|
|
1330
|
-
this.
|
|
1330
|
+
this.y1j_1 = this.y1j_1 + (srcEndOffset - srcStartOffset | 0) | 0;
|
|
1331
1331
|
};
|
|
1332
1332
|
protoOf(Segment).g1 = function () {
|
|
1333
|
-
return this.
|
|
1333
|
+
return this.y1j_1 - this.x1j_1 | 0;
|
|
1334
1334
|
};
|
|
1335
|
-
protoOf(Segment).
|
|
1336
|
-
return this.
|
|
1335
|
+
protoOf(Segment).c1l = function () {
|
|
1336
|
+
return this.w1j_1.length - this.y1j_1 | 0;
|
|
1337
1337
|
};
|
|
1338
|
-
protoOf(Segment).
|
|
1339
|
-
return this.
|
|
1338
|
+
protoOf(Segment).k1m = function (readOnly) {
|
|
1339
|
+
return this.w1j_1;
|
|
1340
1340
|
};
|
|
1341
|
-
protoOf(Segment).
|
|
1342
|
-
return this.
|
|
1341
|
+
protoOf(Segment).o1k = function (index) {
|
|
1342
|
+
return this.w1j_1[this.x1j_1 + index | 0];
|
|
1343
1343
|
};
|
|
1344
|
-
protoOf(Segment).
|
|
1345
|
-
this.
|
|
1344
|
+
protoOf(Segment).l1m = function (index, value) {
|
|
1345
|
+
this.w1j_1[this.y1j_1 + index | 0] = value;
|
|
1346
1346
|
};
|
|
1347
|
-
protoOf(Segment).
|
|
1348
|
-
var d = this.
|
|
1349
|
-
var l = this.
|
|
1347
|
+
protoOf(Segment).m1m = function (index, b0, b1) {
|
|
1348
|
+
var d = this.w1j_1;
|
|
1349
|
+
var l = this.y1j_1;
|
|
1350
1350
|
d[l + index | 0] = b0;
|
|
1351
1351
|
d[(l + index | 0) + 1 | 0] = b1;
|
|
1352
1352
|
};
|
|
1353
|
-
protoOf(Segment).
|
|
1354
|
-
var d = this.
|
|
1355
|
-
var l = this.
|
|
1353
|
+
protoOf(Segment).n1m = function (index, b0, b1, b2) {
|
|
1354
|
+
var d = this.w1j_1;
|
|
1355
|
+
var l = this.y1j_1;
|
|
1356
1356
|
d[l + index | 0] = b0;
|
|
1357
1357
|
d[(l + index | 0) + 1 | 0] = b1;
|
|
1358
1358
|
d[(l + index | 0) + 2 | 0] = b2;
|
|
1359
1359
|
};
|
|
1360
|
-
protoOf(Segment).
|
|
1361
|
-
var d = this.
|
|
1362
|
-
var l = this.
|
|
1360
|
+
protoOf(Segment).o1m = function (index, b0, b1, b2, b3) {
|
|
1361
|
+
var d = this.w1j_1;
|
|
1362
|
+
var l = this.y1j_1;
|
|
1363
1363
|
d[l + index | 0] = b0;
|
|
1364
1364
|
d[(l + index | 0) + 1 | 0] = b1;
|
|
1365
1365
|
d[(l + index | 0) + 2 | 0] = b2;
|
|
1366
1366
|
d[(l + index | 0) + 3 | 0] = b3;
|
|
1367
1367
|
};
|
|
1368
1368
|
function Segment() {
|
|
1369
|
-
this.w1j_1 = 0;
|
|
1370
1369
|
this.x1j_1 = 0;
|
|
1371
|
-
this.y1j_1 =
|
|
1372
|
-
this.z1j_1 =
|
|
1373
|
-
this.a1k_1 =
|
|
1370
|
+
this.y1j_1 = 0;
|
|
1371
|
+
this.z1j_1 = null;
|
|
1372
|
+
this.a1k_1 = false;
|
|
1374
1373
|
this.b1k_1 = null;
|
|
1374
|
+
this.c1k_1 = null;
|
|
1375
1375
|
}
|
|
1376
1376
|
function isEmpty(_this__u8e3s4) {
|
|
1377
1377
|
return _this__u8e3s4.g1() === 0;
|
|
@@ -1382,10 +1382,10 @@
|
|
|
1382
1382
|
AlwaysSharedCopyTracker_instance = this;
|
|
1383
1383
|
SegmentCopyTracker.call(this);
|
|
1384
1384
|
}
|
|
1385
|
-
protoOf(AlwaysSharedCopyTracker).
|
|
1385
|
+
protoOf(AlwaysSharedCopyTracker).h1m = function () {
|
|
1386
1386
|
return true;
|
|
1387
1387
|
};
|
|
1388
|
-
protoOf(AlwaysSharedCopyTracker).
|
|
1388
|
+
protoOf(AlwaysSharedCopyTracker).j1m = function () {
|
|
1389
1389
|
return Unit_instance;
|
|
1390
1390
|
};
|
|
1391
1391
|
var AlwaysSharedCopyTracker_instance;
|
|
@@ -1405,8 +1405,8 @@
|
|
|
1405
1405
|
var message_0 = '' + endOffset;
|
|
1406
1406
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
1407
1407
|
}
|
|
1408
|
-
var p = _this__u8e3s4.
|
|
1409
|
-
var data = _this__u8e3s4.
|
|
1408
|
+
var p = _this__u8e3s4.x1j_1;
|
|
1409
|
+
var data = _this__u8e3s4.k1m(true);
|
|
1410
1410
|
var inductionVariable = startOffset;
|
|
1411
1411
|
if (inductionVariable < endOffset)
|
|
1412
1412
|
do {
|
|
@@ -1459,23 +1459,23 @@
|
|
|
1459
1459
|
// Inline function 'kotlin.Long.plus' call
|
|
1460
1460
|
var this_0 = offset;
|
|
1461
1461
|
var tmp$ret$2 = add(this_0, fromInt(1));
|
|
1462
|
-
tmp_0 = _this__u8e3s4.
|
|
1462
|
+
tmp_0 = _this__u8e3s4.u1j(tmp$ret$2);
|
|
1463
1463
|
} else {
|
|
1464
1464
|
tmp_0 = false;
|
|
1465
1465
|
}
|
|
1466
1466
|
if (!tmp_0) {
|
|
1467
1467
|
break $l$loop;
|
|
1468
1468
|
}
|
|
1469
|
-
var tmp_1 = _this__u8e3s4.
|
|
1469
|
+
var tmp_1 = _this__u8e3s4.r1j();
|
|
1470
1470
|
var tmp_2 = offset;
|
|
1471
1471
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
1472
|
-
var b = _this__u8e3s4.
|
|
1472
|
+
var b = _this__u8e3s4.r1j().g1();
|
|
1473
1473
|
var tmp$ret$3 = compare(endIndex, b) <= 0 ? endIndex : b;
|
|
1474
1474
|
var idx = indexOf(tmp_1, byte, tmp_2, tmp$ret$3);
|
|
1475
1475
|
if (!equalsLong(idx, new Long(-1, -1))) {
|
|
1476
1476
|
return idx;
|
|
1477
1477
|
}
|
|
1478
|
-
offset = _this__u8e3s4.
|
|
1478
|
+
offset = _this__u8e3s4.r1j().g1();
|
|
1479
1479
|
}
|
|
1480
1480
|
return new Long(-1, -1);
|
|
1481
1481
|
}
|
|
@@ -1483,22 +1483,22 @@
|
|
|
1483
1483
|
var arraySize = size;
|
|
1484
1484
|
if (size === -1) {
|
|
1485
1485
|
var fetchSize = new Long(2147483647, 0);
|
|
1486
|
-
while (compare(_this__u8e3s4.
|
|
1486
|
+
while (compare(_this__u8e3s4.r1j().g1(), new Long(2147483647, 0)) < 0 && _this__u8e3s4.u1j(fetchSize)) {
|
|
1487
1487
|
// Inline function 'kotlin.Long.times' call
|
|
1488
1488
|
var this_0 = fetchSize;
|
|
1489
1489
|
fetchSize = multiply(this_0, fromInt(2));
|
|
1490
1490
|
}
|
|
1491
1491
|
// Inline function 'kotlin.check' call
|
|
1492
|
-
if (!(compare(_this__u8e3s4.
|
|
1493
|
-
var message = "Can't create an array of size " + _this__u8e3s4.
|
|
1492
|
+
if (!(compare(_this__u8e3s4.r1j().g1(), new Long(2147483647, 0)) < 0)) {
|
|
1493
|
+
var message = "Can't create an array of size " + _this__u8e3s4.r1j().g1().toString();
|
|
1494
1494
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
1495
1495
|
}
|
|
1496
|
-
arraySize = convertToInt(_this__u8e3s4.
|
|
1496
|
+
arraySize = convertToInt(_this__u8e3s4.r1j().g1());
|
|
1497
1497
|
} else {
|
|
1498
|
-
_this__u8e3s4.
|
|
1498
|
+
_this__u8e3s4.t1j(fromInt(size));
|
|
1499
1499
|
}
|
|
1500
1500
|
var array = new Int8Array(arraySize);
|
|
1501
|
-
readTo(_this__u8e3s4.
|
|
1501
|
+
readTo(_this__u8e3s4.r1j(), array);
|
|
1502
1502
|
return array;
|
|
1503
1503
|
}
|
|
1504
1504
|
function readTo(_this__u8e3s4, sink, startIndex, endIndex) {
|
|
@@ -1509,7 +1509,7 @@
|
|
|
1509
1509
|
checkBounds(fromInt(size), fromInt(startIndex), fromInt(endIndex));
|
|
1510
1510
|
var offset = startIndex;
|
|
1511
1511
|
while (offset < endIndex) {
|
|
1512
|
-
var bytesRead = _this__u8e3s4.
|
|
1512
|
+
var bytesRead = _this__u8e3s4.q1k(sink, offset, endIndex);
|
|
1513
1513
|
if (bytesRead === -1) {
|
|
1514
1514
|
throw EOFException_init_$Create$_0('Source exhausted before reading ' + (endIndex - startIndex | 0) + ' bytes. ' + ('Only ' + bytesRead + ' bytes were read.'));
|
|
1515
1515
|
}
|
|
@@ -1524,7 +1524,7 @@
|
|
|
1524
1524
|
checkBounds(fromInt(size), fromInt(startIndex), fromInt(endIndex));
|
|
1525
1525
|
// Inline function 'kotlinx.io.writeToInternalBuffer' call
|
|
1526
1526
|
// Inline function 'kotlinx.io.commonWriteUtf8' call
|
|
1527
|
-
var this_0 = _this__u8e3s4.
|
|
1527
|
+
var this_0 = _this__u8e3s4.r1j();
|
|
1528
1528
|
var i = startIndex;
|
|
1529
1529
|
while (i < endIndex) {
|
|
1530
1530
|
var p0 = i;
|
|
@@ -1534,15 +1534,15 @@
|
|
|
1534
1534
|
if (c < 128) {
|
|
1535
1535
|
$l$block_0: {
|
|
1536
1536
|
// Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.writeToTail' call
|
|
1537
|
-
var tail = this_0.
|
|
1537
|
+
var tail = this_0.x1k(1);
|
|
1538
1538
|
var ctx = get_SegmentWriteContextImpl();
|
|
1539
1539
|
var segmentOffset = -i | 0;
|
|
1540
1540
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
1541
|
-
var b = i + tail.
|
|
1541
|
+
var b = i + tail.c1l() | 0;
|
|
1542
1542
|
var runLimit = Math.min(endIndex, b);
|
|
1543
1543
|
var _unary__edvuaz = i;
|
|
1544
1544
|
i = _unary__edvuaz + 1 | 0;
|
|
1545
|
-
ctx.
|
|
1545
|
+
ctx.s1m(tail, segmentOffset + _unary__edvuaz | 0, toByte(c));
|
|
1546
1546
|
$l$loop: while (i < runLimit) {
|
|
1547
1547
|
var p0_0 = i;
|
|
1548
1548
|
// Inline function 'kotlin.code' call
|
|
@@ -1552,95 +1552,95 @@
|
|
|
1552
1552
|
break $l$loop;
|
|
1553
1553
|
var _unary__edvuaz_0 = i;
|
|
1554
1554
|
i = _unary__edvuaz_0 + 1 | 0;
|
|
1555
|
-
ctx.
|
|
1555
|
+
ctx.s1m(tail, segmentOffset + _unary__edvuaz_0 | 0, toByte(c));
|
|
1556
1556
|
}
|
|
1557
1557
|
var bytesWritten = i + segmentOffset | 0;
|
|
1558
1558
|
if (bytesWritten === 1) {
|
|
1559
|
-
tail.
|
|
1559
|
+
tail.y1j_1 = tail.y1j_1 + bytesWritten | 0;
|
|
1560
1560
|
var tmp = this_0;
|
|
1561
1561
|
// Inline function 'kotlin.Long.plus' call
|
|
1562
|
-
var this_3 = this_0.
|
|
1563
|
-
tmp.
|
|
1562
|
+
var this_3 = this_0.q1j_1;
|
|
1563
|
+
tmp.q1j_1 = add(this_3, fromInt(bytesWritten));
|
|
1564
1564
|
break $l$block_0;
|
|
1565
1565
|
}
|
|
1566
1566
|
// Inline function 'kotlin.check' call
|
|
1567
|
-
if (!(0 <= bytesWritten ? bytesWritten <= tail.
|
|
1568
|
-
var message = 'Invalid number of bytes written: ' + bytesWritten + '. Should be in 0..' + tail.
|
|
1567
|
+
if (!(0 <= bytesWritten ? bytesWritten <= tail.c1l() : false)) {
|
|
1568
|
+
var message = 'Invalid number of bytes written: ' + bytesWritten + '. Should be in 0..' + tail.c1l();
|
|
1569
1569
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
1570
1570
|
}
|
|
1571
1571
|
if (!(bytesWritten === 0)) {
|
|
1572
|
-
tail.
|
|
1572
|
+
tail.y1j_1 = tail.y1j_1 + bytesWritten | 0;
|
|
1573
1573
|
var tmp_0 = this_0;
|
|
1574
1574
|
// Inline function 'kotlin.Long.plus' call
|
|
1575
|
-
var this_4 = this_0.
|
|
1576
|
-
tmp_0.
|
|
1575
|
+
var this_4 = this_0.q1j_1;
|
|
1576
|
+
tmp_0.q1j_1 = add(this_4, fromInt(bytesWritten));
|
|
1577
1577
|
break $l$block_0;
|
|
1578
1578
|
}
|
|
1579
1579
|
if (isEmpty(tail)) {
|
|
1580
|
-
this_0.
|
|
1580
|
+
this_0.r1l();
|
|
1581
1581
|
}
|
|
1582
1582
|
}
|
|
1583
1583
|
} else if (c < 2048) {
|
|
1584
1584
|
$l$block_2: {
|
|
1585
1585
|
// Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.writeToTail' call
|
|
1586
|
-
var tail_0 = this_0.
|
|
1587
|
-
get_SegmentWriteContextImpl().
|
|
1586
|
+
var tail_0 = this_0.x1k(2);
|
|
1587
|
+
get_SegmentWriteContextImpl().r1m(tail_0, 0, toByte(c >> 6 | 192), toByte(c & 63 | 128));
|
|
1588
1588
|
var bytesWritten_0 = 2;
|
|
1589
1589
|
if (bytesWritten_0 === 2) {
|
|
1590
|
-
tail_0.
|
|
1590
|
+
tail_0.y1j_1 = tail_0.y1j_1 + bytesWritten_0 | 0;
|
|
1591
1591
|
var tmp_1 = this_0;
|
|
1592
1592
|
// Inline function 'kotlin.Long.plus' call
|
|
1593
|
-
var this_5 = this_0.
|
|
1594
|
-
tmp_1.
|
|
1593
|
+
var this_5 = this_0.q1j_1;
|
|
1594
|
+
tmp_1.q1j_1 = add(this_5, fromInt(bytesWritten_0));
|
|
1595
1595
|
break $l$block_2;
|
|
1596
1596
|
}
|
|
1597
1597
|
// Inline function 'kotlin.check' call
|
|
1598
|
-
if (!(0 <= bytesWritten_0 ? bytesWritten_0 <= tail_0.
|
|
1599
|
-
var message_0 = 'Invalid number of bytes written: ' + bytesWritten_0 + '. Should be in 0..' + tail_0.
|
|
1598
|
+
if (!(0 <= bytesWritten_0 ? bytesWritten_0 <= tail_0.c1l() : false)) {
|
|
1599
|
+
var message_0 = 'Invalid number of bytes written: ' + bytesWritten_0 + '. Should be in 0..' + tail_0.c1l();
|
|
1600
1600
|
throw IllegalStateException_init_$Create$(toString(message_0));
|
|
1601
1601
|
}
|
|
1602
1602
|
if (!(bytesWritten_0 === 0)) {
|
|
1603
|
-
tail_0.
|
|
1603
|
+
tail_0.y1j_1 = tail_0.y1j_1 + bytesWritten_0 | 0;
|
|
1604
1604
|
var tmp_2 = this_0;
|
|
1605
1605
|
// Inline function 'kotlin.Long.plus' call
|
|
1606
|
-
var this_6 = this_0.
|
|
1607
|
-
tmp_2.
|
|
1606
|
+
var this_6 = this_0.q1j_1;
|
|
1607
|
+
tmp_2.q1j_1 = add(this_6, fromInt(bytesWritten_0));
|
|
1608
1608
|
break $l$block_2;
|
|
1609
1609
|
}
|
|
1610
1610
|
if (isEmpty(tail_0)) {
|
|
1611
|
-
this_0.
|
|
1611
|
+
this_0.r1l();
|
|
1612
1612
|
}
|
|
1613
1613
|
}
|
|
1614
1614
|
i = i + 1 | 0;
|
|
1615
1615
|
} else if (c < 55296 || c > 57343) {
|
|
1616
1616
|
$l$block_4: {
|
|
1617
1617
|
// Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.writeToTail' call
|
|
1618
|
-
var tail_1 = this_0.
|
|
1619
|
-
get_SegmentWriteContextImpl().
|
|
1618
|
+
var tail_1 = this_0.x1k(3);
|
|
1619
|
+
get_SegmentWriteContextImpl().q1m(tail_1, 0, toByte(c >> 12 | 224), toByte(c >> 6 & 63 | 128), toByte(c & 63 | 128));
|
|
1620
1620
|
var bytesWritten_1 = 3;
|
|
1621
1621
|
if (bytesWritten_1 === 3) {
|
|
1622
|
-
tail_1.
|
|
1622
|
+
tail_1.y1j_1 = tail_1.y1j_1 + bytesWritten_1 | 0;
|
|
1623
1623
|
var tmp_3 = this_0;
|
|
1624
1624
|
// Inline function 'kotlin.Long.plus' call
|
|
1625
|
-
var this_7 = this_0.
|
|
1626
|
-
tmp_3.
|
|
1625
|
+
var this_7 = this_0.q1j_1;
|
|
1626
|
+
tmp_3.q1j_1 = add(this_7, fromInt(bytesWritten_1));
|
|
1627
1627
|
break $l$block_4;
|
|
1628
1628
|
}
|
|
1629
1629
|
// Inline function 'kotlin.check' call
|
|
1630
|
-
if (!(0 <= bytesWritten_1 ? bytesWritten_1 <= tail_1.
|
|
1631
|
-
var message_1 = 'Invalid number of bytes written: ' + bytesWritten_1 + '. Should be in 0..' + tail_1.
|
|
1630
|
+
if (!(0 <= bytesWritten_1 ? bytesWritten_1 <= tail_1.c1l() : false)) {
|
|
1631
|
+
var message_1 = 'Invalid number of bytes written: ' + bytesWritten_1 + '. Should be in 0..' + tail_1.c1l();
|
|
1632
1632
|
throw IllegalStateException_init_$Create$(toString(message_1));
|
|
1633
1633
|
}
|
|
1634
1634
|
if (!(bytesWritten_1 === 0)) {
|
|
1635
|
-
tail_1.
|
|
1635
|
+
tail_1.y1j_1 = tail_1.y1j_1 + bytesWritten_1 | 0;
|
|
1636
1636
|
var tmp_4 = this_0;
|
|
1637
1637
|
// Inline function 'kotlin.Long.plus' call
|
|
1638
|
-
var this_8 = this_0.
|
|
1639
|
-
tmp_4.
|
|
1638
|
+
var this_8 = this_0.q1j_1;
|
|
1639
|
+
tmp_4.q1j_1 = add(this_8, fromInt(bytesWritten_1));
|
|
1640
1640
|
break $l$block_4;
|
|
1641
1641
|
}
|
|
1642
1642
|
if (isEmpty(tail_1)) {
|
|
1643
|
-
this_0.
|
|
1643
|
+
this_0.r1l();
|
|
1644
1644
|
}
|
|
1645
1645
|
}
|
|
1646
1646
|
i = i + 1 | 0;
|
|
@@ -1659,75 +1659,75 @@
|
|
|
1659
1659
|
// Inline function 'kotlin.code' call
|
|
1660
1660
|
var this_10 = _Char___init__impl__6a9atx(63);
|
|
1661
1661
|
var tmp$ret$26 = Char__toInt_impl_vasixd(this_10);
|
|
1662
|
-
this_0.
|
|
1662
|
+
this_0.l1l(toByte(tmp$ret$26));
|
|
1663
1663
|
i = i + 1 | 0;
|
|
1664
1664
|
} else {
|
|
1665
1665
|
var codePoint = 65536 + ((c & 1023) << 10 | low & 1023) | 0;
|
|
1666
1666
|
$l$block_6: {
|
|
1667
1667
|
// Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.writeToTail' call
|
|
1668
|
-
var tail_2 = this_0.
|
|
1669
|
-
get_SegmentWriteContextImpl().
|
|
1668
|
+
var tail_2 = this_0.x1k(4);
|
|
1669
|
+
get_SegmentWriteContextImpl().p1m(tail_2, 0, toByte(codePoint >> 18 | 240), toByte(codePoint >> 12 & 63 | 128), toByte(codePoint >> 6 & 63 | 128), toByte(codePoint & 63 | 128));
|
|
1670
1670
|
var bytesWritten_2 = 4;
|
|
1671
1671
|
if (bytesWritten_2 === 4) {
|
|
1672
|
-
tail_2.
|
|
1672
|
+
tail_2.y1j_1 = tail_2.y1j_1 + bytesWritten_2 | 0;
|
|
1673
1673
|
var tmp_6 = this_0;
|
|
1674
1674
|
// Inline function 'kotlin.Long.plus' call
|
|
1675
|
-
var this_11 = this_0.
|
|
1676
|
-
tmp_6.
|
|
1675
|
+
var this_11 = this_0.q1j_1;
|
|
1676
|
+
tmp_6.q1j_1 = add(this_11, fromInt(bytesWritten_2));
|
|
1677
1677
|
break $l$block_6;
|
|
1678
1678
|
}
|
|
1679
1679
|
// Inline function 'kotlin.check' call
|
|
1680
|
-
if (!(0 <= bytesWritten_2 ? bytesWritten_2 <= tail_2.
|
|
1681
|
-
var message_2 = 'Invalid number of bytes written: ' + bytesWritten_2 + '. Should be in 0..' + tail_2.
|
|
1680
|
+
if (!(0 <= bytesWritten_2 ? bytesWritten_2 <= tail_2.c1l() : false)) {
|
|
1681
|
+
var message_2 = 'Invalid number of bytes written: ' + bytesWritten_2 + '. Should be in 0..' + tail_2.c1l();
|
|
1682
1682
|
throw IllegalStateException_init_$Create$(toString(message_2));
|
|
1683
1683
|
}
|
|
1684
1684
|
if (!(bytesWritten_2 === 0)) {
|
|
1685
|
-
tail_2.
|
|
1685
|
+
tail_2.y1j_1 = tail_2.y1j_1 + bytesWritten_2 | 0;
|
|
1686
1686
|
var tmp_7 = this_0;
|
|
1687
1687
|
// Inline function 'kotlin.Long.plus' call
|
|
1688
|
-
var this_12 = this_0.
|
|
1689
|
-
tmp_7.
|
|
1688
|
+
var this_12 = this_0.q1j_1;
|
|
1689
|
+
tmp_7.q1j_1 = add(this_12, fromInt(bytesWritten_2));
|
|
1690
1690
|
break $l$block_6;
|
|
1691
1691
|
}
|
|
1692
1692
|
if (isEmpty(tail_2)) {
|
|
1693
|
-
this_0.
|
|
1693
|
+
this_0.r1l();
|
|
1694
1694
|
}
|
|
1695
1695
|
}
|
|
1696
1696
|
i = i + 2 | 0;
|
|
1697
1697
|
}
|
|
1698
1698
|
}
|
|
1699
1699
|
}
|
|
1700
|
-
_this__u8e3s4.
|
|
1700
|
+
_this__u8e3s4.h1k();
|
|
1701
1701
|
}
|
|
1702
1702
|
function readString(_this__u8e3s4) {
|
|
1703
1703
|
return commonReadUtf8(_this__u8e3s4, _this__u8e3s4.g1());
|
|
1704
1704
|
}
|
|
1705
1705
|
function readString_0(_this__u8e3s4) {
|
|
1706
|
-
_this__u8e3s4.
|
|
1707
|
-
return commonReadUtf8(_this__u8e3s4.
|
|
1706
|
+
_this__u8e3s4.u1j(new Long(-1, 2147483647));
|
|
1707
|
+
return commonReadUtf8(_this__u8e3s4.r1j(), _this__u8e3s4.r1j().g1());
|
|
1708
1708
|
}
|
|
1709
1709
|
function readString_1(_this__u8e3s4, byteCount) {
|
|
1710
|
-
_this__u8e3s4.
|
|
1711
|
-
return commonReadUtf8(_this__u8e3s4.
|
|
1710
|
+
_this__u8e3s4.t1j(byteCount);
|
|
1711
|
+
return commonReadUtf8(_this__u8e3s4.r1j(), byteCount);
|
|
1712
1712
|
}
|
|
1713
1713
|
function commonReadUtf8(_this__u8e3s4, byteCount) {
|
|
1714
1714
|
if (equalsLong(byteCount, new Long(0, 0)))
|
|
1715
1715
|
return '';
|
|
1716
1716
|
// Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.forEachSegment' call
|
|
1717
|
-
var curr = _this__u8e3s4.
|
|
1717
|
+
var curr = _this__u8e3s4.o1j_1;
|
|
1718
1718
|
while (!(curr == null)) {
|
|
1719
1719
|
get_SegmentReadContextImpl();
|
|
1720
1720
|
if (compare(fromInt(curr.g1()), byteCount) >= 0) {
|
|
1721
1721
|
var result = '';
|
|
1722
1722
|
// Inline function 'kotlinx.io.unsafe.withData' call
|
|
1723
|
-
var tmp0 = curr.
|
|
1724
|
-
var tmp2 = curr.
|
|
1725
|
-
var tmp0_0 = curr.
|
|
1723
|
+
var tmp0 = curr.k1m(true);
|
|
1724
|
+
var tmp2 = curr.x1j_1;
|
|
1725
|
+
var tmp0_0 = curr.y1j_1;
|
|
1726
1726
|
// Inline function 'kotlin.math.min' call
|
|
1727
1727
|
var b = tmp2 + convertToInt(byteCount) | 0;
|
|
1728
1728
|
var tmp$ret$0 = Math.min(tmp0_0, b);
|
|
1729
1729
|
result = commonToUtf8String(tmp0, tmp2, tmp$ret$0);
|
|
1730
|
-
_this__u8e3s4.
|
|
1730
|
+
_this__u8e3s4.p1k(byteCount);
|
|
1731
1731
|
return result;
|
|
1732
1732
|
}
|
|
1733
1733
|
return commonToUtf8String(readByteArray_0(_this__u8e3s4, convertToInt(byteCount)));
|
|
@@ -1742,9 +1742,9 @@
|
|
|
1742
1742
|
isRegularFile = isRegularFile === VOID ? false : isRegularFile;
|
|
1743
1743
|
isDirectory = isDirectory === VOID ? false : isDirectory;
|
|
1744
1744
|
size = size === VOID ? new Long(0, 0) : size;
|
|
1745
|
-
this.
|
|
1746
|
-
this.
|
|
1747
|
-
this.
|
|
1745
|
+
this.z1m_1 = isRegularFile;
|
|
1746
|
+
this.a1n_1 = isDirectory;
|
|
1747
|
+
this.b1n_1 = size;
|
|
1748
1748
|
}
|
|
1749
1749
|
function SystemFileSystemImpl() {
|
|
1750
1750
|
}
|
|
@@ -2190,27 +2190,27 @@
|
|
|
2190
2190
|
}
|
|
2191
2191
|
function SegmentReadContextImpl$1() {
|
|
2192
2192
|
}
|
|
2193
|
-
protoOf(SegmentReadContextImpl$1).
|
|
2194
|
-
return segment.
|
|
2193
|
+
protoOf(SegmentReadContextImpl$1).p1l = function (segment, offset) {
|
|
2194
|
+
return segment.o1k(offset);
|
|
2195
2195
|
};
|
|
2196
2196
|
function SegmentWriteContextImpl$1() {
|
|
2197
2197
|
}
|
|
2198
|
-
protoOf(SegmentWriteContextImpl$1).
|
|
2199
|
-
segment.
|
|
2198
|
+
protoOf(SegmentWriteContextImpl$1).s1m = function (segment, offset, value) {
|
|
2199
|
+
segment.l1m(offset, value);
|
|
2200
2200
|
};
|
|
2201
|
-
protoOf(SegmentWriteContextImpl$1).
|
|
2202
|
-
segment.
|
|
2201
|
+
protoOf(SegmentWriteContextImpl$1).r1m = function (segment, offset, b0, b1) {
|
|
2202
|
+
segment.m1m(offset, b0, b1);
|
|
2203
2203
|
};
|
|
2204
|
-
protoOf(SegmentWriteContextImpl$1).
|
|
2205
|
-
segment.
|
|
2204
|
+
protoOf(SegmentWriteContextImpl$1).q1m = function (segment, offset, b0, b1, b2) {
|
|
2205
|
+
segment.n1m(offset, b0, b1, b2);
|
|
2206
2206
|
};
|
|
2207
|
-
protoOf(SegmentWriteContextImpl$1).
|
|
2208
|
-
segment.
|
|
2207
|
+
protoOf(SegmentWriteContextImpl$1).p1m = function (segment, offset, b0, b1, b2, b3) {
|
|
2208
|
+
segment.o1m(offset, b0, b1, b2, b3);
|
|
2209
2209
|
};
|
|
2210
2210
|
function BufferIterationContextImpl$1() {
|
|
2211
2211
|
}
|
|
2212
|
-
protoOf(BufferIterationContextImpl$1).
|
|
2213
|
-
return get_SegmentReadContextImpl().
|
|
2212
|
+
protoOf(BufferIterationContextImpl$1).p1l = function (segment, offset) {
|
|
2213
|
+
return get_SegmentReadContextImpl().p1l(segment, offset);
|
|
2214
2214
|
};
|
|
2215
2215
|
var properties_initialized_UnsafeBufferOperations_kt_2xfgoc;
|
|
2216
2216
|
function _init_properties_UnsafeBufferOperations_kt__xw75gy() {
|
|
@@ -2291,15 +2291,15 @@
|
|
|
2291
2291
|
}
|
|
2292
2292
|
}
|
|
2293
2293
|
function SegmentPool() {
|
|
2294
|
-
this.x1k_1 = 0;
|
|
2295
2294
|
this.y1k_1 = 0;
|
|
2295
|
+
this.z1k_1 = 0;
|
|
2296
2296
|
}
|
|
2297
|
-
protoOf(SegmentPool).
|
|
2298
|
-
return Companion_instance.
|
|
2297
|
+
protoOf(SegmentPool).a1l = function () {
|
|
2298
|
+
return Companion_instance.g1m();
|
|
2299
2299
|
};
|
|
2300
|
-
protoOf(SegmentPool).
|
|
2300
|
+
protoOf(SegmentPool).q1l = function (segment) {
|
|
2301
2301
|
};
|
|
2302
|
-
protoOf(SegmentPool).
|
|
2302
|
+
protoOf(SegmentPool).i1m = function () {
|
|
2303
2303
|
return AlwaysSharedCopyTracker_getInstance();
|
|
2304
2304
|
};
|
|
2305
2305
|
var SegmentPool_instance;
|
|
@@ -2457,7 +2457,7 @@
|
|
|
2457
2457
|
}
|
|
2458
2458
|
function SystemFileSystem$o$delete$lambda($path) {
|
|
2459
2459
|
return function () {
|
|
2460
|
-
var tmp0_elvis_lhs = get_fs().statSync($path.
|
|
2460
|
+
var tmp0_elvis_lhs = get_fs().statSync($path.c1n_1);
|
|
2461
2461
|
var tmp;
|
|
2462
2462
|
if (tmp0_elvis_lhs == null) {
|
|
2463
2463
|
throw new FileNotFoundException('File does not exist: ' + $path.toString());
|
|
@@ -2467,10 +2467,10 @@
|
|
|
2467
2467
|
var stats = tmp;
|
|
2468
2468
|
var tmp_0;
|
|
2469
2469
|
if (stats.isDirectory()) {
|
|
2470
|
-
get_fs().rmdirSync($path.
|
|
2470
|
+
get_fs().rmdirSync($path.c1n_1);
|
|
2471
2471
|
tmp_0 = Unit_instance;
|
|
2472
2472
|
} else {
|
|
2473
|
-
get_fs().rmSync($path.
|
|
2473
|
+
get_fs().rmSync($path.c1n_1);
|
|
2474
2474
|
tmp_0 = Unit_instance;
|
|
2475
2475
|
}
|
|
2476
2476
|
return Unit_instance;
|
|
@@ -2478,7 +2478,7 @@
|
|
|
2478
2478
|
}
|
|
2479
2479
|
function SystemFileSystem$o$metadataOrNull$lambda($path, $metadata) {
|
|
2480
2480
|
return function () {
|
|
2481
|
-
var tmp0_elvis_lhs = get_fs().statSync($path.
|
|
2481
|
+
var tmp0_elvis_lhs = get_fs().statSync($path.c1n_1);
|
|
2482
2482
|
var tmp;
|
|
2483
2483
|
if (tmp0_elvis_lhs == null) {
|
|
2484
2484
|
return Unit_instance;
|
|
@@ -2495,11 +2495,11 @@
|
|
|
2495
2495
|
function SystemFileSystem$1() {
|
|
2496
2496
|
SystemFileSystemImpl.call(this);
|
|
2497
2497
|
}
|
|
2498
|
-
protoOf(SystemFileSystem$1).
|
|
2499
|
-
return get_fs().existsSync(path.
|
|
2498
|
+
protoOf(SystemFileSystem$1).t1m = function (path) {
|
|
2499
|
+
return get_fs().existsSync(path.c1n_1);
|
|
2500
2500
|
};
|
|
2501
|
-
protoOf(SystemFileSystem$1).
|
|
2502
|
-
if (!this.
|
|
2501
|
+
protoOf(SystemFileSystem$1).u1m = function (path, mustExist) {
|
|
2502
|
+
if (!this.t1m(path)) {
|
|
2503
2503
|
if (mustExist) {
|
|
2504
2504
|
throw new FileNotFoundException('File does not exist: ' + path.toString());
|
|
2505
2505
|
}
|
|
@@ -2513,13 +2513,13 @@
|
|
|
2513
2513
|
throw IOException_init_$Create$_1('Delete failed for ' + path.toString(), tmp0_safe_receiver);
|
|
2514
2514
|
}
|
|
2515
2515
|
};
|
|
2516
|
-
protoOf(SystemFileSystem$1).
|
|
2517
|
-
var metadata = this.
|
|
2516
|
+
protoOf(SystemFileSystem$1).w1m = function (path, mustCreate) {
|
|
2517
|
+
var metadata = this.d1n(path);
|
|
2518
2518
|
if (!(metadata == null)) {
|
|
2519
2519
|
if (mustCreate) {
|
|
2520
2520
|
throw IOException_init_$Create$_0('Path already exists: ' + path.toString());
|
|
2521
2521
|
}
|
|
2522
|
-
if (metadata.
|
|
2522
|
+
if (metadata.z1m_1) {
|
|
2523
2523
|
throw IOException_init_$Create$_0("Path already exists and it's a file: " + path.toString());
|
|
2524
2524
|
}
|
|
2525
2525
|
return Unit_instance;
|
|
@@ -2527,9 +2527,9 @@
|
|
|
2527
2527
|
// Inline function 'kotlin.collections.arrayListOf' call
|
|
2528
2528
|
var parts = ArrayList_init_$Create$();
|
|
2529
2529
|
var p = path;
|
|
2530
|
-
while (!(p == null) && !this.
|
|
2530
|
+
while (!(p == null) && !this.t1m(p)) {
|
|
2531
2531
|
parts.e1(p.toString());
|
|
2532
|
-
p = p.
|
|
2532
|
+
p = p.e1n();
|
|
2533
2533
|
}
|
|
2534
2534
|
// Inline function 'kotlin.collections.forEach' call
|
|
2535
2535
|
var _iterator__ex2g4s = asReversed(parts).t();
|
|
@@ -2538,8 +2538,8 @@
|
|
|
2538
2538
|
get_fs().mkdirSync(element);
|
|
2539
2539
|
}
|
|
2540
2540
|
};
|
|
2541
|
-
protoOf(SystemFileSystem$1).
|
|
2542
|
-
if (!this.
|
|
2541
|
+
protoOf(SystemFileSystem$1).d1n = function (path) {
|
|
2542
|
+
if (!this.t1m(path))
|
|
2543
2543
|
return null;
|
|
2544
2544
|
var metadata = {_v: null};
|
|
2545
2545
|
var tmp0_safe_receiver = withCaughtException(SystemFileSystem$o$metadataOrNull$lambda(path, metadata));
|
|
@@ -2551,7 +2551,7 @@
|
|
|
2551
2551
|
}
|
|
2552
2552
|
return metadata._v;
|
|
2553
2553
|
};
|
|
2554
|
-
protoOf(SystemFileSystem$1).
|
|
2554
|
+
protoOf(SystemFileSystem$1).y1m = function (path, append) {
|
|
2555
2555
|
return new FileSink(path, append);
|
|
2556
2556
|
};
|
|
2557
2557
|
var properties_initialized_FileSystemNodeJs_kt_vmmd20;
|
|
@@ -2572,27 +2572,27 @@
|
|
|
2572
2572
|
}
|
|
2573
2573
|
var SystemPathSeparator$delegate;
|
|
2574
2574
|
function Path_0(rawPath, any) {
|
|
2575
|
-
this.
|
|
2575
|
+
this.c1n_1 = removeTrailingSeparators(rawPath);
|
|
2576
2576
|
}
|
|
2577
|
-
protoOf(Path_0).
|
|
2577
|
+
protoOf(Path_0).e1n = function () {
|
|
2578
2578
|
// Inline function 'kotlin.text.isEmpty' call
|
|
2579
|
-
var this_0 = this.
|
|
2579
|
+
var this_0 = this.c1n_1;
|
|
2580
2580
|
if (charSequenceLength(this_0) === 0)
|
|
2581
2581
|
return null;
|
|
2582
2582
|
if (get_isWindows()) {
|
|
2583
|
-
if (!contains(this.
|
|
2583
|
+
if (!contains(this.c1n_1, _Char___init__impl__6a9atx(47)) && !contains(this.c1n_1, _Char___init__impl__6a9atx(92))) {
|
|
2584
2584
|
return null;
|
|
2585
2585
|
}
|
|
2586
|
-
} else if (!contains(this.
|
|
2586
|
+
} else if (!contains(this.c1n_1, get_SystemPathSeparator())) {
|
|
2587
2587
|
return null;
|
|
2588
2588
|
}
|
|
2589
|
-
var p = get_path().dirname(this.
|
|
2589
|
+
var p = get_path().dirname(this.c1n_1);
|
|
2590
2590
|
var tmp;
|
|
2591
2591
|
// Inline function 'kotlin.text.isEmpty' call
|
|
2592
2592
|
if (charSequenceLength(p) === 0) {
|
|
2593
2593
|
tmp = null;
|
|
2594
2594
|
} else {
|
|
2595
|
-
if (p === this.
|
|
2595
|
+
if (p === this.c1n_1) {
|
|
2596
2596
|
tmp = null;
|
|
2597
2597
|
} else {
|
|
2598
2598
|
tmp = Path_1(p);
|
|
@@ -2601,17 +2601,17 @@
|
|
|
2601
2601
|
return tmp;
|
|
2602
2602
|
};
|
|
2603
2603
|
protoOf(Path_0).toString = function () {
|
|
2604
|
-
return this.
|
|
2604
|
+
return this.c1n_1;
|
|
2605
2605
|
};
|
|
2606
2606
|
protoOf(Path_0).equals = function (other) {
|
|
2607
2607
|
if (this === other)
|
|
2608
2608
|
return true;
|
|
2609
2609
|
if (!(other instanceof Path_0))
|
|
2610
2610
|
return false;
|
|
2611
|
-
return this.
|
|
2611
|
+
return this.c1n_1 === other.c1n_1;
|
|
2612
2612
|
};
|
|
2613
2613
|
protoOf(Path_0).hashCode = function () {
|
|
2614
|
-
return getStringHashCode(this.
|
|
2614
|
+
return getStringHashCode(this.c1n_1);
|
|
2615
2615
|
};
|
|
2616
2616
|
function Path_1(path) {
|
|
2617
2617
|
_init_properties_PathsNodeJs_kt__bvvvsp();
|
|
@@ -2625,31 +2625,31 @@
|
|
|
2625
2625
|
null;
|
|
2626
2626
|
else {
|
|
2627
2627
|
// Inline function 'kotlin.also' call
|
|
2628
|
-
throw IOException_init_$Create$_1('Failed to open a file ' + path.
|
|
2628
|
+
throw IOException_init_$Create$_1('Failed to open a file ' + path.c1n_1 + '.', tmp0_safe_receiver);
|
|
2629
2629
|
}
|
|
2630
2630
|
if (fd._v < 0)
|
|
2631
|
-
throw IOException_init_$Create$_0('Failed to open a file ' + path.
|
|
2631
|
+
throw IOException_init_$Create$_0('Failed to open a file ' + path.c1n_1 + '.');
|
|
2632
2632
|
return fd._v;
|
|
2633
2633
|
}
|
|
2634
2634
|
function FileSink$open$lambda($fd, $path, $flags) {
|
|
2635
2635
|
return function () {
|
|
2636
|
-
$fd._v = get_fs().openSync($path.
|
|
2636
|
+
$fd._v = get_fs().openSync($path.c1n_1, $flags);
|
|
2637
2637
|
return Unit_instance;
|
|
2638
2638
|
};
|
|
2639
2639
|
}
|
|
2640
2640
|
function FileSink$write$lambda(this$0, $buf) {
|
|
2641
2641
|
return function () {
|
|
2642
|
-
get_fs().writeFileSync(this$0.
|
|
2642
|
+
get_fs().writeFileSync(this$0.g1n_1, $buf);
|
|
2643
2643
|
return Unit_instance;
|
|
2644
2644
|
};
|
|
2645
2645
|
}
|
|
2646
2646
|
function FileSink(path, append) {
|
|
2647
|
-
this.
|
|
2648
|
-
this.
|
|
2647
|
+
this.f1n_1 = false;
|
|
2648
|
+
this.g1n_1 = open(this, path, append);
|
|
2649
2649
|
}
|
|
2650
|
-
protoOf(FileSink).
|
|
2650
|
+
protoOf(FileSink).t1k = function (source, byteCount) {
|
|
2651
2651
|
// Inline function 'kotlin.check' call
|
|
2652
|
-
if (!!this.
|
|
2652
|
+
if (!!this.f1n_1) {
|
|
2653
2653
|
var message = 'Sink is closed.';
|
|
2654
2654
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
2655
2655
|
}
|
|
@@ -2663,14 +2663,14 @@
|
|
|
2663
2663
|
var segmentBytes = 0;
|
|
2664
2664
|
// Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.readFromHead' call
|
|
2665
2665
|
// Inline function 'kotlin.require' call
|
|
2666
|
-
if (!!source.
|
|
2666
|
+
if (!!source.s1j()) {
|
|
2667
2667
|
var message_0 = 'Buffer is empty';
|
|
2668
2668
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
2669
2669
|
}
|
|
2670
|
-
var head = ensureNotNull(source.
|
|
2671
|
-
var tmp0 = head.
|
|
2672
|
-
var tmp2 = head.
|
|
2673
|
-
segmentBytes = head.
|
|
2670
|
+
var head = ensureNotNull(source.o1j_1);
|
|
2671
|
+
var tmp0 = head.k1m(true);
|
|
2672
|
+
var tmp2 = head.x1j_1;
|
|
2673
|
+
segmentBytes = head.y1j_1 - tmp2 | 0;
|
|
2674
2674
|
var buf = get_buffer().Buffer.allocUnsafe(segmentBytes);
|
|
2675
2675
|
var inductionVariable = 0;
|
|
2676
2676
|
var last = segmentBytes;
|
|
@@ -2694,7 +2694,7 @@
|
|
|
2694
2694
|
throw IllegalStateException_init_$Create$('Returned negative read bytes count');
|
|
2695
2695
|
if (bytesRead > head.g1())
|
|
2696
2696
|
throw IllegalStateException_init_$Create$('Returned too many bytes');
|
|
2697
|
-
source.
|
|
2697
|
+
source.p1k(fromInt(bytesRead));
|
|
2698
2698
|
}
|
|
2699
2699
|
var tmp0_0 = remainingBytes;
|
|
2700
2700
|
// Inline function 'kotlin.Long.minus' call
|
|
@@ -2703,9 +2703,9 @@
|
|
|
2703
2703
|
}
|
|
2704
2704
|
};
|
|
2705
2705
|
protoOf(FileSink).r4 = function () {
|
|
2706
|
-
if (!this.
|
|
2707
|
-
this.
|
|
2708
|
-
get_fs().closeSync(this.
|
|
2706
|
+
if (!this.f1n_1) {
|
|
2707
|
+
this.f1n_1 = true;
|
|
2708
|
+
get_fs().closeSync(this.g1n_1);
|
|
2709
2709
|
}
|
|
2710
2710
|
};
|
|
2711
2711
|
function SystemPathSeparator$delegate$lambda() {
|
|
@@ -2730,10 +2730,10 @@
|
|
|
2730
2730
|
}
|
|
2731
2731
|
}
|
|
2732
2732
|
//region block: post-declaration
|
|
2733
|
-
protoOf(Buffer).
|
|
2734
|
-
protoOf(RealSink).
|
|
2735
|
-
protoOf(SystemFileSystemImpl).
|
|
2736
|
-
protoOf(SystemFileSystemImpl).
|
|
2733
|
+
protoOf(Buffer).e1l = write$default;
|
|
2734
|
+
protoOf(RealSink).e1l = write$default;
|
|
2735
|
+
protoOf(SystemFileSystemImpl).v1m = delete$default;
|
|
2736
|
+
protoOf(SystemFileSystemImpl).x1m = createDirectories$default;
|
|
2737
2737
|
//endregion
|
|
2738
2738
|
//region block: init
|
|
2739
2739
|
Companion_instance = new Companion();
|