@xiuper/mpp-core 0.0.2 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Kotlin-DateTime-library-kotlinx-datetime.js +1796 -1796
- package/Kotlin-Immutable-Collections-kotlinx-collections-immutable.js +278 -278
- package/Xiuper-mpp-codegraph.js +240 -240
- package/kaml.js +639 -639
- package/koog-agents-agents-core.js +4606 -4606
- package/koog-agents-agents-tools.js +41 -41
- package/koog-agents-agents-utils.js +52 -52
- package/koog-http-client-http-client-core.js +4 -4
- package/koog-http-client-http-client-ktor.js +166 -166
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-anthropic-client.js +906 -906
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-deepseek-client.js +299 -299
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-google-client.js +838 -838
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-ollama-client.js +452 -452
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-openai-client-base.js +1002 -1002
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-openai-client.js +3358 -3358
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-openrouter-client.js +532 -532
- package/koog-prompt-prompt-executor-prompt-executor-clients.js +29 -29
- package/koog-prompt-prompt-executor-prompt-executor-llms.js +25 -25
- package/koog-prompt-prompt-executor-prompt-executor-model.js +4 -4
- package/koog-prompt-prompt-llm.js +120 -120
- package/koog-prompt-prompt-markdown.js +30 -30
- package/koog-prompt-prompt-model.js +1055 -1055
- package/koog-prompt-prompt-structure.js +342 -342
- package/koog-utils.js +10 -10
- package/kotlin-kotlin-stdlib.js +453 -411
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin-logging.js +116 -116
- package/kotlin-sdk-kotlin-sdk-client.js +260 -260
- package/kotlin-sdk-kotlin-sdk-core.js +2568 -2568
- package/kotlinx-atomicfu.js +5 -5
- package/kotlinx-coroutines-core.js +532 -654
- package/kotlinx-coroutines-core.js.map +1 -1
- package/kotlinx-io-kotlinx-io-bytestring.js +40 -40
- package/kotlinx-io-kotlinx-io-core.js +605 -605
- package/kotlinx-serialization-kotlinx-serialization-core.js +75 -75
- package/kotlinx-serialization-kotlinx-serialization-json.js +95 -95
- package/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -1
- package/ktor-ktor-client-content-negotiation.js +163 -163
- package/ktor-ktor-client-core.js +2237 -2235
- package/ktor-ktor-client-core.js.map +1 -1
- package/ktor-ktor-events.js +15 -15
- package/ktor-ktor-http-cio.js +725 -725
- package/ktor-ktor-http.js +805 -805
- package/ktor-ktor-io.js +766 -766
- package/ktor-ktor-network.js +285 -285
- package/ktor-ktor-serialization-kotlinx-json.js +1 -1
- package/ktor-ktor-serialization-kotlinx.js +130 -130
- package/ktor-ktor-serialization.js +68 -68
- package/ktor-ktor-server-cio.js +724 -724
- package/ktor-ktor-server-core.js +1793 -1793
- package/ktor-ktor-server-sse.js +125 -125
- package/ktor-ktor-sse.js +40 -40
- package/ktor-ktor-utils.js +690 -690
- package/ktor-ktor-websockets.js +49 -49
- package/markdown.js +1561 -1561
- package/okio-parent-okio.js +368 -368
- package/package.json +1 -1
- package/snakeyaml-engine-kmp.js +2005 -2005
- package/urlencoder-urlencoder-lib.js +43 -43
- package/xiuper-mpp-core.d.ts +45 -7
- package/xiuper-mpp-core.js +22405 -18664
- package/xiuper-mpp-core.js.map +1 -1
- package/autodev-mpp-core.d.ts +0 -1312
- package/autodev-mpp-core.js +0 -86483
- package/autodev-mpp-core.js.map +0 -1
|
@@ -17,53 +17,53 @@
|
|
|
17
17
|
//region block: imports
|
|
18
18
|
var imul = Math.imul;
|
|
19
19
|
var IndexOutOfBoundsException_init_$Create$ = kotlin_kotlin.$_$.o2;
|
|
20
|
-
var Long = kotlin_kotlin.$_$.
|
|
20
|
+
var Long = kotlin_kotlin.$_$.wk;
|
|
21
21
|
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.e2;
|
|
22
22
|
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.j3;
|
|
23
|
-
var charArrayOf = kotlin_kotlin.$_$.
|
|
24
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
25
|
-
var toString = kotlin_kotlin.$_$.
|
|
23
|
+
var charArrayOf = kotlin_kotlin.$_$.hd;
|
|
24
|
+
var protoOf = kotlin_kotlin.$_$.ze;
|
|
25
|
+
var toString = kotlin_kotlin.$_$.df;
|
|
26
26
|
var Unit_instance = kotlin_kotlin.$_$.h6;
|
|
27
|
-
var toShort = kotlin_kotlin.$_$.
|
|
28
|
-
var ensureNotNull = kotlin_kotlin.$_$.
|
|
29
|
-
var toLong = kotlin_kotlin.$_$.
|
|
27
|
+
var toShort = kotlin_kotlin.$_$.cf;
|
|
28
|
+
var ensureNotNull = kotlin_kotlin.$_$.wl;
|
|
29
|
+
var toLong = kotlin_kotlin.$_$.bf;
|
|
30
30
|
var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.o1;
|
|
31
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
31
|
+
var initMetadataForClass = kotlin_kotlin.$_$.xd;
|
|
32
32
|
var VOID = kotlin_kotlin.$_$.h;
|
|
33
33
|
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.j2;
|
|
34
34
|
var UnsafeByteStringOperations_instance = kotlin_org_jetbrains_kotlinx_kotlinx_io_bytestring.$_$.b;
|
|
35
|
-
var AutoCloseable = kotlin_kotlin.$_$.
|
|
36
|
-
var objectCreate = kotlin_kotlin.$_$.
|
|
37
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.
|
|
35
|
+
var AutoCloseable = kotlin_kotlin.$_$.jk;
|
|
36
|
+
var objectCreate = kotlin_kotlin.$_$.ye;
|
|
37
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.yd;
|
|
38
38
|
var arrayCopy = kotlin_kotlin.$_$.d7;
|
|
39
|
-
var toByte = kotlin_kotlin.$_$.
|
|
39
|
+
var toByte = kotlin_kotlin.$_$.af;
|
|
40
40
|
var IllegalArgumentException_init_$Create$_0 = kotlin_kotlin.$_$.c2;
|
|
41
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
42
|
-
var initMetadataForInterface = kotlin_kotlin.$_$.
|
|
43
|
-
var charCodeAt = kotlin_kotlin.$_$.
|
|
41
|
+
var initMetadataForObject = kotlin_kotlin.$_$.de;
|
|
42
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.be;
|
|
43
|
+
var charCodeAt = kotlin_kotlin.$_$.jd;
|
|
44
44
|
var Char__toInt_impl_vasixd = kotlin_kotlin.$_$.q3;
|
|
45
45
|
var StringBuilder_init_$Create$_0 = kotlin_kotlin.$_$.p1;
|
|
46
|
-
var charSequenceLength = kotlin_kotlin.$_$.
|
|
47
|
-
var endsWith = kotlin_kotlin.$_$.
|
|
48
|
-
var startsWith = kotlin_kotlin.$_$.
|
|
49
|
-
var substring = kotlin_kotlin.$_$.
|
|
50
|
-
var charArray = kotlin_kotlin.$_$.
|
|
51
|
-
var numberToChar = kotlin_kotlin.$_$.
|
|
52
|
-
var concatToString = kotlin_kotlin.$_$.
|
|
46
|
+
var charSequenceLength = kotlin_kotlin.$_$.ld;
|
|
47
|
+
var endsWith = kotlin_kotlin.$_$.wg;
|
|
48
|
+
var startsWith = kotlin_kotlin.$_$.ni;
|
|
49
|
+
var substring = kotlin_kotlin.$_$.aj;
|
|
50
|
+
var charArray = kotlin_kotlin.$_$.id;
|
|
51
|
+
var numberToChar = kotlin_kotlin.$_$.ve;
|
|
52
|
+
var concatToString = kotlin_kotlin.$_$.mg;
|
|
53
53
|
var Exception_init_$Init$ = kotlin_kotlin.$_$.w1;
|
|
54
|
-
var captureStack = kotlin_kotlin.$_$.
|
|
54
|
+
var captureStack = kotlin_kotlin.$_$.gd;
|
|
55
55
|
var Exception_init_$Init$_0 = kotlin_kotlin.$_$.y1;
|
|
56
56
|
var Exception_init_$Init$_1 = kotlin_kotlin.$_$.a2;
|
|
57
|
-
var Exception = kotlin_kotlin.$_$.
|
|
58
|
-
var KProperty0 = kotlin_kotlin.$_$.
|
|
59
|
-
var getPropertyCallableRef = kotlin_kotlin.$_$.
|
|
57
|
+
var Exception = kotlin_kotlin.$_$.sk;
|
|
58
|
+
var KProperty0 = kotlin_kotlin.$_$.vf;
|
|
59
|
+
var getPropertyCallableRef = kotlin_kotlin.$_$.ud;
|
|
60
60
|
var UnsupportedOperationException_init_$Create$ = kotlin_kotlin.$_$.c3;
|
|
61
|
-
var lazy = kotlin_kotlin.$_$.
|
|
61
|
+
var lazy = kotlin_kotlin.$_$.cm;
|
|
62
62
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.t;
|
|
63
63
|
var asReversed = kotlin_kotlin.$_$.f7;
|
|
64
|
-
var contains = kotlin_kotlin.$_$.
|
|
65
|
-
var getStringHashCode = kotlin_kotlin.$_$.
|
|
66
|
-
var Char = kotlin_kotlin.$_$.
|
|
64
|
+
var contains = kotlin_kotlin.$_$.og;
|
|
65
|
+
var getStringHashCode = kotlin_kotlin.$_$.vd;
|
|
66
|
+
var Char = kotlin_kotlin.$_$.lk;
|
|
67
67
|
//endregion
|
|
68
68
|
//region block: pre-declaration
|
|
69
69
|
initMetadataForInterface(Source, 'Source', VOID, VOID, [AutoCloseable]);
|
|
@@ -72,10 +72,10 @@
|
|
|
72
72
|
endIndex = endIndex === VOID ? source.length : endIndex;
|
|
73
73
|
var tmp;
|
|
74
74
|
if ($super === VOID) {
|
|
75
|
-
this.
|
|
75
|
+
this.f3b(source, startIndex, endIndex);
|
|
76
76
|
tmp = Unit_instance;
|
|
77
77
|
} else {
|
|
78
|
-
tmp = $super.
|
|
78
|
+
tmp = $super.f3b.call(this, source, startIndex, endIndex);
|
|
79
79
|
}
|
|
80
80
|
return tmp;
|
|
81
81
|
}
|
|
@@ -92,10 +92,10 @@
|
|
|
92
92
|
mustExist = mustExist === VOID ? true : mustExist;
|
|
93
93
|
var tmp;
|
|
94
94
|
if ($super === VOID) {
|
|
95
|
-
this.
|
|
95
|
+
this.y3c(path, mustExist);
|
|
96
96
|
tmp = Unit_instance;
|
|
97
97
|
} else {
|
|
98
|
-
tmp = $super.
|
|
98
|
+
tmp = $super.y3c.call(this, path, mustExist);
|
|
99
99
|
}
|
|
100
100
|
return tmp;
|
|
101
101
|
}
|
|
@@ -103,16 +103,16 @@
|
|
|
103
103
|
mustCreate = mustCreate === VOID ? false : mustCreate;
|
|
104
104
|
var tmp;
|
|
105
105
|
if ($super === VOID) {
|
|
106
|
-
this.
|
|
106
|
+
this.a3d(path, mustCreate);
|
|
107
107
|
tmp = Unit_instance;
|
|
108
108
|
} else {
|
|
109
|
-
tmp = $super.
|
|
109
|
+
tmp = $super.a3d.call(this, path, mustCreate);
|
|
110
110
|
}
|
|
111
111
|
return tmp;
|
|
112
112
|
}
|
|
113
113
|
function sink$default(path, append, $super) {
|
|
114
114
|
append = append === VOID ? false : append;
|
|
115
|
-
return $super === VOID ? this.
|
|
115
|
+
return $super === VOID ? this.d3d(path, append) : $super.d3d.call(this, path, append);
|
|
116
116
|
}
|
|
117
117
|
initMetadataForInterface(FileSystem, 'FileSystem');
|
|
118
118
|
initMetadataForClass(SystemFileSystemImpl, 'SystemFileSystemImpl', VOID, VOID, [FileSystem]);
|
|
@@ -162,20 +162,20 @@
|
|
|
162
162
|
throw EOFException_init_$Create$_0("Buffer doesn't contain required number of bytes (size: " + $this.s().toString() + ', required: ' + byteCount.toString() + ')');
|
|
163
163
|
}
|
|
164
164
|
function Buffer() {
|
|
165
|
-
this.
|
|
166
|
-
this.
|
|
167
|
-
this.
|
|
165
|
+
this.s39_1 = null;
|
|
166
|
+
this.t39_1 = null;
|
|
167
|
+
this.u39_1 = new Long(0, 0);
|
|
168
168
|
}
|
|
169
169
|
protoOf(Buffer).s = function () {
|
|
170
|
-
return this.
|
|
170
|
+
return this.u39_1;
|
|
171
171
|
};
|
|
172
|
-
protoOf(Buffer).
|
|
172
|
+
protoOf(Buffer).v39 = function () {
|
|
173
173
|
return this;
|
|
174
174
|
};
|
|
175
|
-
protoOf(Buffer).
|
|
175
|
+
protoOf(Buffer).w39 = function () {
|
|
176
176
|
return this.s().equals(new Long(0, 0));
|
|
177
177
|
};
|
|
178
|
-
protoOf(Buffer).
|
|
178
|
+
protoOf(Buffer).x39 = function (byteCount) {
|
|
179
179
|
// Inline function 'kotlin.require' call
|
|
180
180
|
if (!(byteCount.j1(new Long(0, 0)) >= 0)) {
|
|
181
181
|
var message = 'byteCount: ' + byteCount.toString();
|
|
@@ -185,7 +185,7 @@
|
|
|
185
185
|
throw EOFException_init_$Create$_0("Buffer doesn't contain required number of bytes (size: " + this.s().toString() + ', required: ' + byteCount.toString() + ')');
|
|
186
186
|
}
|
|
187
187
|
};
|
|
188
|
-
protoOf(Buffer).
|
|
188
|
+
protoOf(Buffer).y39 = function (byteCount) {
|
|
189
189
|
// Inline function 'kotlin.require' call
|
|
190
190
|
if (!(byteCount.j1(new Long(0, 0)) >= 0)) {
|
|
191
191
|
var message = 'byteCount: ' + byteCount.toString() + ' < 0';
|
|
@@ -193,8 +193,8 @@
|
|
|
193
193
|
}
|
|
194
194
|
return this.s().j1(byteCount) >= 0;
|
|
195
195
|
};
|
|
196
|
-
protoOf(Buffer).
|
|
197
|
-
var tmp0_elvis_lhs = this.
|
|
196
|
+
protoOf(Buffer).z39 = function () {
|
|
197
|
+
var tmp0_elvis_lhs = this.s39_1;
|
|
198
198
|
var tmp;
|
|
199
199
|
if (tmp0_elvis_lhs == null) {
|
|
200
200
|
throwEof(this, new Long(1, 0));
|
|
@@ -204,18 +204,18 @@
|
|
|
204
204
|
var segment = tmp;
|
|
205
205
|
var segmentSize = segment.s();
|
|
206
206
|
if (segmentSize === 0) {
|
|
207
|
-
this.
|
|
208
|
-
return this.
|
|
207
|
+
this.h3a();
|
|
208
|
+
return this.z39();
|
|
209
209
|
}
|
|
210
|
-
var v = segment.
|
|
211
|
-
this.
|
|
210
|
+
var v = segment.i3a();
|
|
211
|
+
this.u39_1 = this.u39_1.c3(new Long(1, 0));
|
|
212
212
|
if (segmentSize === 1) {
|
|
213
|
-
this.
|
|
213
|
+
this.h3a();
|
|
214
214
|
}
|
|
215
215
|
return v;
|
|
216
216
|
};
|
|
217
|
-
protoOf(Buffer).
|
|
218
|
-
var tmp0_elvis_lhs = this.
|
|
217
|
+
protoOf(Buffer).j3a = function () {
|
|
218
|
+
var tmp0_elvis_lhs = this.s39_1;
|
|
219
219
|
var tmp;
|
|
220
220
|
if (tmp0_elvis_lhs == null) {
|
|
221
221
|
throwEof(this, new Long(2, 0));
|
|
@@ -225,120 +225,120 @@
|
|
|
225
225
|
var segment = tmp;
|
|
226
226
|
var segmentSize = segment.s();
|
|
227
227
|
if (segmentSize < 2) {
|
|
228
|
-
this.
|
|
228
|
+
this.x39(new Long(2, 0));
|
|
229
229
|
if (segmentSize === 0) {
|
|
230
|
-
this.
|
|
231
|
-
return this.
|
|
230
|
+
this.h3a();
|
|
231
|
+
return this.j3a();
|
|
232
232
|
}
|
|
233
233
|
// Inline function 'kotlinx.io.and' call
|
|
234
|
-
var tmp_0 = (this.
|
|
234
|
+
var tmp_0 = (this.z39() & 255) << 8;
|
|
235
235
|
// Inline function 'kotlinx.io.and' call
|
|
236
|
-
var tmp$ret$1 = this.
|
|
236
|
+
var tmp$ret$1 = this.z39() & 255;
|
|
237
237
|
return toShort(tmp_0 | tmp$ret$1);
|
|
238
238
|
}
|
|
239
|
-
var v = segment.
|
|
240
|
-
this.
|
|
239
|
+
var v = segment.k3a();
|
|
240
|
+
this.u39_1 = this.u39_1.c3(new Long(2, 0));
|
|
241
241
|
if (segmentSize === 2) {
|
|
242
|
-
this.
|
|
242
|
+
this.h3a();
|
|
243
243
|
}
|
|
244
244
|
return v;
|
|
245
245
|
};
|
|
246
|
-
protoOf(Buffer).
|
|
246
|
+
protoOf(Buffer).l3a = function () {
|
|
247
247
|
return Unit_instance;
|
|
248
248
|
};
|
|
249
|
-
protoOf(Buffer).
|
|
249
|
+
protoOf(Buffer).m3a = function (out, startIndex, endIndex) {
|
|
250
250
|
checkBounds(this.s(), startIndex, endIndex);
|
|
251
251
|
if (startIndex.equals(endIndex))
|
|
252
252
|
return Unit_instance;
|
|
253
253
|
var currentOffset = startIndex;
|
|
254
254
|
var remainingByteCount = endIndex.c3(startIndex);
|
|
255
|
-
out.
|
|
256
|
-
var s = this.
|
|
257
|
-
while (currentOffset.j1(toLong(ensureNotNull(s).
|
|
258
|
-
currentOffset = currentOffset.c3(toLong(s.
|
|
259
|
-
s = s.
|
|
255
|
+
out.u39_1 = out.u39_1.b3(remainingByteCount);
|
|
256
|
+
var s = this.s39_1;
|
|
257
|
+
while (currentOffset.j1(toLong(ensureNotNull(s).c3a_1 - s.b3a_1 | 0)) >= 0) {
|
|
258
|
+
currentOffset = currentOffset.c3(toLong(s.c3a_1 - s.b3a_1 | 0));
|
|
259
|
+
s = s.f3a_1;
|
|
260
260
|
}
|
|
261
261
|
while (remainingByteCount.j1(new Long(0, 0)) > 0) {
|
|
262
|
-
var copy = ensureNotNull(s).
|
|
263
|
-
copy.
|
|
262
|
+
var copy = ensureNotNull(s).n3a();
|
|
263
|
+
copy.b3a_1 = copy.b3a_1 + currentOffset.l1() | 0;
|
|
264
264
|
var tmp = copy;
|
|
265
|
-
var tmp0 = copy.
|
|
265
|
+
var tmp0 = copy.b3a_1 + remainingByteCount.l1() | 0;
|
|
266
266
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
267
|
-
var b = copy.
|
|
268
|
-
tmp.
|
|
267
|
+
var b = copy.c3a_1;
|
|
268
|
+
tmp.c3a_1 = Math.min(tmp0, b);
|
|
269
269
|
// Inline function 'kotlinx.io.Buffer.pushSegment' call
|
|
270
|
-
if (out.
|
|
271
|
-
out.
|
|
272
|
-
out.
|
|
270
|
+
if (out.s39_1 == null) {
|
|
271
|
+
out.s39_1 = copy;
|
|
272
|
+
out.t39_1 = copy;
|
|
273
273
|
} else if (false) {
|
|
274
|
-
out.
|
|
275
|
-
if (ensureNotNull(out.
|
|
276
|
-
out.
|
|
274
|
+
out.t39_1 = ensureNotNull(out.t39_1).o3a(copy).p3a();
|
|
275
|
+
if (ensureNotNull(out.t39_1).g3a_1 == null) {
|
|
276
|
+
out.s39_1 = out.t39_1;
|
|
277
277
|
}
|
|
278
278
|
} else {
|
|
279
|
-
out.
|
|
279
|
+
out.t39_1 = ensureNotNull(out.t39_1).o3a(copy);
|
|
280
280
|
}
|
|
281
|
-
remainingByteCount = remainingByteCount.c3(toLong(copy.
|
|
281
|
+
remainingByteCount = remainingByteCount.c3(toLong(copy.c3a_1 - copy.b3a_1 | 0));
|
|
282
282
|
currentOffset = new Long(0, 0);
|
|
283
|
-
s = s.
|
|
283
|
+
s = s.f3a_1;
|
|
284
284
|
}
|
|
285
285
|
};
|
|
286
|
-
protoOf(Buffer).
|
|
286
|
+
protoOf(Buffer).q3a = function () {
|
|
287
287
|
var result = this.s();
|
|
288
288
|
if (result.equals(new Long(0, 0)))
|
|
289
289
|
return new Long(0, 0);
|
|
290
|
-
var tail = ensureNotNull(this.
|
|
291
|
-
if (tail.
|
|
292
|
-
result = result.c3(toLong(tail.
|
|
290
|
+
var tail = ensureNotNull(this.t39_1);
|
|
291
|
+
if (tail.c3a_1 < 8192 && tail.e3a_1) {
|
|
292
|
+
result = result.c3(toLong(tail.c3a_1 - tail.b3a_1 | 0));
|
|
293
293
|
}
|
|
294
294
|
return result;
|
|
295
295
|
};
|
|
296
|
-
protoOf(Buffer).
|
|
296
|
+
protoOf(Buffer).r3a = function (position) {
|
|
297
297
|
if (position.j1(new Long(0, 0)) < 0 || position.j1(this.s()) >= 0) {
|
|
298
298
|
throw IndexOutOfBoundsException_init_$Create$('position (' + position.toString() + ') is not within the range [0..size(' + this.s().toString() + '))');
|
|
299
299
|
}
|
|
300
300
|
if (position.equals(new Long(0, 0))) {
|
|
301
|
-
return ensureNotNull(this.
|
|
301
|
+
return ensureNotNull(this.s39_1).s3a(0);
|
|
302
302
|
}
|
|
303
303
|
// Inline function 'kotlinx.io.seek' call
|
|
304
|
-
if (this.
|
|
304
|
+
if (this.s39_1 == null) {
|
|
305
305
|
var offset = new Long(-1, -1);
|
|
306
|
-
return ensureNotNull(null).
|
|
306
|
+
return ensureNotNull(null).s3a(position.c3(offset).l1());
|
|
307
307
|
}
|
|
308
308
|
if (this.s().c3(position).j1(position) < 0) {
|
|
309
|
-
var s = this.
|
|
309
|
+
var s = this.t39_1;
|
|
310
310
|
var offset_0 = this.s();
|
|
311
311
|
$l$loop: while (!(s == null) && offset_0.j1(position) > 0) {
|
|
312
|
-
offset_0 = offset_0.c3(toLong(s.
|
|
312
|
+
offset_0 = offset_0.c3(toLong(s.c3a_1 - s.b3a_1 | 0));
|
|
313
313
|
if (offset_0.j1(position) <= 0)
|
|
314
314
|
break $l$loop;
|
|
315
|
-
s = s.
|
|
315
|
+
s = s.g3a_1;
|
|
316
316
|
}
|
|
317
317
|
var tmp0 = s;
|
|
318
318
|
var offset_1 = offset_0;
|
|
319
|
-
return ensureNotNull(tmp0).
|
|
319
|
+
return ensureNotNull(tmp0).s3a(position.c3(offset_1).l1());
|
|
320
320
|
} else {
|
|
321
|
-
var s_0 = this.
|
|
321
|
+
var s_0 = this.s39_1;
|
|
322
322
|
var offset_2 = new Long(0, 0);
|
|
323
323
|
$l$loop_0: while (!(s_0 == null)) {
|
|
324
324
|
var tmp0_0 = offset_2;
|
|
325
325
|
// Inline function 'kotlin.Long.plus' call
|
|
326
|
-
var other = s_0.
|
|
326
|
+
var other = s_0.c3a_1 - s_0.b3a_1 | 0;
|
|
327
327
|
var nextOffset = tmp0_0.b3(toLong(other));
|
|
328
328
|
if (nextOffset.j1(position) > 0)
|
|
329
329
|
break $l$loop_0;
|
|
330
|
-
s_0 = s_0.
|
|
330
|
+
s_0 = s_0.f3a_1;
|
|
331
331
|
offset_2 = nextOffset;
|
|
332
332
|
}
|
|
333
333
|
var tmp0_1 = s_0;
|
|
334
334
|
var offset_3 = offset_2;
|
|
335
|
-
return ensureNotNull(tmp0_1).
|
|
335
|
+
return ensureNotNull(tmp0_1).s3a(position.c3(offset_3).l1());
|
|
336
336
|
}
|
|
337
337
|
};
|
|
338
338
|
protoOf(Buffer).n2 = function () {
|
|
339
|
-
return this.
|
|
339
|
+
return this.t3a(this.s());
|
|
340
340
|
};
|
|
341
|
-
protoOf(Buffer).
|
|
341
|
+
protoOf(Buffer).t3a = function (byteCount) {
|
|
342
342
|
// Inline function 'kotlinx.io.checkByteCount' call
|
|
343
343
|
// Inline function 'kotlin.require' call
|
|
344
344
|
if (!(byteCount.j1(new Long(0, 0)) >= 0)) {
|
|
@@ -347,7 +347,7 @@
|
|
|
347
347
|
}
|
|
348
348
|
var remainingByteCount = byteCount;
|
|
349
349
|
while (remainingByteCount.j1(new Long(0, 0)) > 0) {
|
|
350
|
-
var tmp0_elvis_lhs = this.
|
|
350
|
+
var tmp0_elvis_lhs = this.s39_1;
|
|
351
351
|
var tmp;
|
|
352
352
|
if (tmp0_elvis_lhs == null) {
|
|
353
353
|
throw EOFException_init_$Create$_0('Buffer exhausted before skipping ' + byteCount.toString() + ' bytes.');
|
|
@@ -357,23 +357,23 @@
|
|
|
357
357
|
var head = tmp;
|
|
358
358
|
var tmp0 = remainingByteCount;
|
|
359
359
|
// Inline function 'kotlinx.io.minOf' call
|
|
360
|
-
var b = head.
|
|
360
|
+
var b = head.c3a_1 - head.b3a_1 | 0;
|
|
361
361
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
362
362
|
var b_0 = toLong(b);
|
|
363
363
|
var toSkip = (tmp0.j1(b_0) <= 0 ? tmp0 : b_0).l1();
|
|
364
|
-
this.
|
|
364
|
+
this.u39_1 = this.u39_1.c3(toLong(toSkip));
|
|
365
365
|
remainingByteCount = remainingByteCount.c3(toLong(toSkip));
|
|
366
|
-
head.
|
|
367
|
-
if (head.
|
|
368
|
-
this.
|
|
366
|
+
head.b3a_1 = head.b3a_1 + toSkip | 0;
|
|
367
|
+
if (head.b3a_1 === head.c3a_1) {
|
|
368
|
+
this.h3a();
|
|
369
369
|
}
|
|
370
370
|
}
|
|
371
371
|
};
|
|
372
|
-
protoOf(Buffer).
|
|
372
|
+
protoOf(Buffer).u3a = function (sink, startIndex, endIndex) {
|
|
373
373
|
// Inline function 'kotlinx.io.checkBounds' call
|
|
374
374
|
var size = sink.length;
|
|
375
375
|
checkBounds(toLong(size), toLong(startIndex), toLong(endIndex));
|
|
376
|
-
var tmp0_elvis_lhs = this.
|
|
376
|
+
var tmp0_elvis_lhs = this.s39_1;
|
|
377
377
|
var tmp;
|
|
378
378
|
if (tmp0_elvis_lhs == null) {
|
|
379
379
|
return -1;
|
|
@@ -385,14 +385,14 @@
|
|
|
385
385
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
386
386
|
var b = s.s();
|
|
387
387
|
var toCopy = Math.min(tmp0, b);
|
|
388
|
-
s.
|
|
389
|
-
this.
|
|
388
|
+
s.v3a(sink, startIndex, startIndex + toCopy | 0);
|
|
389
|
+
this.u39_1 = this.u39_1.c3(toLong(toCopy));
|
|
390
390
|
if (isEmpty(s)) {
|
|
391
|
-
this.
|
|
391
|
+
this.h3a();
|
|
392
392
|
}
|
|
393
393
|
return toCopy;
|
|
394
394
|
};
|
|
395
|
-
protoOf(Buffer).
|
|
395
|
+
protoOf(Buffer).w3a = function (sink, byteCount) {
|
|
396
396
|
// Inline function 'kotlinx.io.checkByteCount' call
|
|
397
397
|
// Inline function 'kotlin.require' call
|
|
398
398
|
if (!(byteCount.j1(new Long(0, 0)) >= 0)) {
|
|
@@ -402,10 +402,10 @@
|
|
|
402
402
|
if (this.s().equals(new Long(0, 0)))
|
|
403
403
|
return new Long(-1, -1);
|
|
404
404
|
var bytesWritten = byteCount.j1(this.s()) > 0 ? this.s() : byteCount;
|
|
405
|
-
sink.
|
|
405
|
+
sink.x3a(this, bytesWritten);
|
|
406
406
|
return bytesWritten;
|
|
407
407
|
};
|
|
408
|
-
protoOf(Buffer).
|
|
408
|
+
protoOf(Buffer).y3a = function (sink, byteCount) {
|
|
409
409
|
// Inline function 'kotlinx.io.checkByteCount' call
|
|
410
410
|
// Inline function 'kotlin.require' call
|
|
411
411
|
if (!(byteCount.j1(new Long(0, 0)) >= 0)) {
|
|
@@ -413,62 +413,62 @@
|
|
|
413
413
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
414
414
|
}
|
|
415
415
|
if (this.s().j1(byteCount) < 0) {
|
|
416
|
-
sink.
|
|
416
|
+
sink.x3a(this, this.s());
|
|
417
417
|
throw EOFException_init_$Create$_0('Buffer exhausted before writing ' + byteCount.toString() + ' bytes. Only ' + this.s().toString() + ' bytes were written.');
|
|
418
418
|
}
|
|
419
|
-
sink.
|
|
419
|
+
sink.x3a(this, byteCount);
|
|
420
420
|
};
|
|
421
|
-
protoOf(Buffer).
|
|
421
|
+
protoOf(Buffer).z3a = function (sink) {
|
|
422
422
|
var byteCount = this.s();
|
|
423
423
|
if (byteCount.j1(new Long(0, 0)) > 0) {
|
|
424
|
-
sink.
|
|
424
|
+
sink.x3a(this, byteCount);
|
|
425
425
|
}
|
|
426
426
|
return byteCount;
|
|
427
427
|
};
|
|
428
|
-
protoOf(Buffer).
|
|
428
|
+
protoOf(Buffer).a3b = function () {
|
|
429
429
|
return buffered(new PeekSource(this));
|
|
430
430
|
};
|
|
431
|
-
protoOf(Buffer).
|
|
431
|
+
protoOf(Buffer).b3b = function (minimumCapacity) {
|
|
432
432
|
// Inline function 'kotlin.require' call
|
|
433
433
|
if (!(minimumCapacity >= 1 && minimumCapacity <= 8192)) {
|
|
434
434
|
var message = 'unexpected capacity (' + minimumCapacity + '), should be in range [1, 8192]';
|
|
435
435
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
436
436
|
}
|
|
437
|
-
if (this.
|
|
438
|
-
var result = SegmentPool_instance.
|
|
439
|
-
this.
|
|
440
|
-
this.
|
|
437
|
+
if (this.t39_1 == null) {
|
|
438
|
+
var result = SegmentPool_instance.e3b();
|
|
439
|
+
this.s39_1 = result;
|
|
440
|
+
this.t39_1 = result;
|
|
441
441
|
return result;
|
|
442
442
|
}
|
|
443
|
-
var t = ensureNotNull(this.
|
|
444
|
-
if ((t.
|
|
445
|
-
var newTail = t.
|
|
446
|
-
this.
|
|
443
|
+
var t = ensureNotNull(this.t39_1);
|
|
444
|
+
if ((t.c3a_1 + minimumCapacity | 0) > 8192 || !t.e3a_1) {
|
|
445
|
+
var newTail = t.o3a(SegmentPool_instance.e3b());
|
|
446
|
+
this.t39_1 = newTail;
|
|
447
447
|
return newTail;
|
|
448
448
|
}
|
|
449
449
|
return t;
|
|
450
450
|
};
|
|
451
|
-
protoOf(Buffer).
|
|
451
|
+
protoOf(Buffer).f3b = function (source, startIndex, endIndex) {
|
|
452
452
|
// Inline function 'kotlinx.io.checkBounds' call
|
|
453
453
|
var size = source.length;
|
|
454
454
|
checkBounds(toLong(size), toLong(startIndex), toLong(endIndex));
|
|
455
455
|
var currentOffset = startIndex;
|
|
456
456
|
while (currentOffset < endIndex) {
|
|
457
|
-
var tail = this.
|
|
457
|
+
var tail = this.b3b(1);
|
|
458
458
|
var tmp0 = endIndex - currentOffset | 0;
|
|
459
459
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
460
|
-
var b = tail.
|
|
460
|
+
var b = tail.g3b();
|
|
461
461
|
var toCopy = Math.min(tmp0, b);
|
|
462
|
-
tail.
|
|
462
|
+
tail.h3b(source, currentOffset, currentOffset + toCopy | 0);
|
|
463
463
|
currentOffset = currentOffset + toCopy | 0;
|
|
464
464
|
}
|
|
465
465
|
var tmp = this;
|
|
466
|
-
var tmp0_0 = this.
|
|
466
|
+
var tmp0_0 = this.u39_1;
|
|
467
467
|
// Inline function 'kotlin.Long.plus' call
|
|
468
468
|
var other = endIndex - startIndex | 0;
|
|
469
|
-
tmp.
|
|
469
|
+
tmp.u39_1 = tmp0_0.b3(toLong(other));
|
|
470
470
|
};
|
|
471
|
-
protoOf(Buffer).
|
|
471
|
+
protoOf(Buffer).j3b = function (source, byteCount) {
|
|
472
472
|
// Inline function 'kotlinx.io.checkByteCount' call
|
|
473
473
|
// Inline function 'kotlin.require' call
|
|
474
474
|
if (!(byteCount.j1(new Long(0, 0)) >= 0)) {
|
|
@@ -477,85 +477,85 @@
|
|
|
477
477
|
}
|
|
478
478
|
var remainingByteCount = byteCount;
|
|
479
479
|
while (remainingByteCount.j1(new Long(0, 0)) > 0) {
|
|
480
|
-
var read = source.
|
|
480
|
+
var read = source.w3a(this, remainingByteCount);
|
|
481
481
|
if (read.equals(new Long(-1, -1))) {
|
|
482
482
|
throw EOFException_init_$Create$_0('Source exhausted before reading ' + byteCount.toString() + ' bytes. ' + ('Only ' + byteCount.c3(remainingByteCount).toString() + ' were read.'));
|
|
483
483
|
}
|
|
484
484
|
remainingByteCount = remainingByteCount.c3(read);
|
|
485
485
|
}
|
|
486
486
|
};
|
|
487
|
-
protoOf(Buffer).
|
|
487
|
+
protoOf(Buffer).x3a = function (source, byteCount) {
|
|
488
488
|
// Inline function 'kotlin.require' call
|
|
489
489
|
if (!!(source === this)) {
|
|
490
490
|
var message = 'source == this';
|
|
491
491
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
492
492
|
}
|
|
493
|
-
checkOffsetAndCount(source.
|
|
493
|
+
checkOffsetAndCount(source.u39_1, new Long(0, 0), byteCount);
|
|
494
494
|
var remainingByteCount = byteCount;
|
|
495
495
|
while (remainingByteCount.j1(new Long(0, 0)) > 0) {
|
|
496
|
-
if (remainingByteCount.j1(toLong(ensureNotNull(source.
|
|
497
|
-
var tail = this.
|
|
496
|
+
if (remainingByteCount.j1(toLong(ensureNotNull(source.s39_1).s())) < 0) {
|
|
497
|
+
var tail = this.t39_1;
|
|
498
498
|
var tmp;
|
|
499
|
-
if (!(tail == null) && tail.
|
|
499
|
+
if (!(tail == null) && tail.e3a_1) {
|
|
500
500
|
var tmp0 = remainingByteCount;
|
|
501
501
|
// Inline function 'kotlin.Long.plus' call
|
|
502
|
-
var other = tail.
|
|
502
|
+
var other = tail.c3a_1;
|
|
503
503
|
var tmp0_0 = tmp0.b3(toLong(other));
|
|
504
504
|
// Inline function 'kotlin.Long.minus' call
|
|
505
|
-
var other_0 = tail.
|
|
505
|
+
var other_0 = tail.k3b() ? 0 : tail.b3a_1;
|
|
506
506
|
tmp = tmp0_0.c3(toLong(other_0)).j1(new Long(8192, 0)) <= 0;
|
|
507
507
|
} else {
|
|
508
508
|
tmp = false;
|
|
509
509
|
}
|
|
510
510
|
if (tmp) {
|
|
511
|
-
ensureNotNull(source.
|
|
512
|
-
source.
|
|
513
|
-
this.
|
|
511
|
+
ensureNotNull(source.s39_1).m3b(tail, remainingByteCount.l1());
|
|
512
|
+
source.u39_1 = source.u39_1.c3(remainingByteCount);
|
|
513
|
+
this.u39_1 = this.u39_1.b3(remainingByteCount);
|
|
514
514
|
return Unit_instance;
|
|
515
515
|
} else {
|
|
516
|
-
source.
|
|
516
|
+
source.s39_1 = ensureNotNull(source.s39_1).l3b(remainingByteCount.l1());
|
|
517
517
|
}
|
|
518
518
|
}
|
|
519
|
-
var segmentToMove = ensureNotNull(source.
|
|
519
|
+
var segmentToMove = ensureNotNull(source.s39_1);
|
|
520
520
|
var movedByteCount = toLong(segmentToMove.s());
|
|
521
|
-
source.
|
|
522
|
-
if (source.
|
|
523
|
-
source.
|
|
521
|
+
source.s39_1 = segmentToMove.n3b();
|
|
522
|
+
if (source.s39_1 == null) {
|
|
523
|
+
source.t39_1 = null;
|
|
524
524
|
}
|
|
525
525
|
// Inline function 'kotlinx.io.Buffer.pushSegment' call
|
|
526
|
-
if (this.
|
|
527
|
-
this.
|
|
528
|
-
this.
|
|
526
|
+
if (this.s39_1 == null) {
|
|
527
|
+
this.s39_1 = segmentToMove;
|
|
528
|
+
this.t39_1 = segmentToMove;
|
|
529
529
|
} else if (true) {
|
|
530
|
-
this.
|
|
531
|
-
if (ensureNotNull(this.
|
|
532
|
-
this.
|
|
530
|
+
this.t39_1 = ensureNotNull(this.t39_1).o3a(segmentToMove).p3a();
|
|
531
|
+
if (ensureNotNull(this.t39_1).g3a_1 == null) {
|
|
532
|
+
this.s39_1 = this.t39_1;
|
|
533
533
|
}
|
|
534
534
|
} else {
|
|
535
|
-
this.
|
|
535
|
+
this.t39_1 = ensureNotNull(this.t39_1).o3a(segmentToMove);
|
|
536
536
|
}
|
|
537
|
-
source.
|
|
538
|
-
this.
|
|
537
|
+
source.u39_1 = source.u39_1.c3(movedByteCount);
|
|
538
|
+
this.u39_1 = this.u39_1.b3(movedByteCount);
|
|
539
539
|
remainingByteCount = remainingByteCount.c3(movedByteCount);
|
|
540
540
|
}
|
|
541
541
|
};
|
|
542
|
-
protoOf(Buffer).
|
|
542
|
+
protoOf(Buffer).o3b = function (source) {
|
|
543
543
|
var totalBytesRead = new Long(0, 0);
|
|
544
544
|
$l$loop: while (true) {
|
|
545
|
-
var readCount = source.
|
|
545
|
+
var readCount = source.w3a(this, new Long(8192, 0));
|
|
546
546
|
if (readCount.equals(new Long(-1, -1)))
|
|
547
547
|
break $l$loop;
|
|
548
548
|
totalBytesRead = totalBytesRead.b3(readCount);
|
|
549
549
|
}
|
|
550
550
|
return totalBytesRead;
|
|
551
551
|
};
|
|
552
|
-
protoOf(Buffer).
|
|
553
|
-
this.
|
|
554
|
-
this.
|
|
552
|
+
protoOf(Buffer).p3b = function (byte) {
|
|
553
|
+
this.b3b(1).q3b(byte);
|
|
554
|
+
this.u39_1 = this.u39_1.b3(new Long(1, 0));
|
|
555
555
|
};
|
|
556
|
-
protoOf(Buffer).
|
|
557
|
-
this.
|
|
558
|
-
this.
|
|
556
|
+
protoOf(Buffer).r3b = function (short) {
|
|
557
|
+
this.b3b(2).s3b(short);
|
|
558
|
+
this.u39_1 = this.u39_1.b3(new Long(2, 0));
|
|
559
559
|
};
|
|
560
560
|
protoOf(Buffer).u4 = function () {
|
|
561
561
|
return Unit_instance;
|
|
@@ -572,7 +572,7 @@
|
|
|
572
572
|
var builder = StringBuilder_init_$Create$(imul(len, 2) + (this.s().j1(toLong(maxPrintableBytes)) > 0 ? 1 : 0) | 0);
|
|
573
573
|
var bytesWritten = 0;
|
|
574
574
|
// Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.forEachSegment' call
|
|
575
|
-
var curr = this.
|
|
575
|
+
var curr = this.s39_1;
|
|
576
576
|
while (!(curr == null)) {
|
|
577
577
|
var tmp0 = get_SegmentReadContextImpl();
|
|
578
578
|
var segment = curr;
|
|
@@ -580,7 +580,7 @@
|
|
|
580
580
|
while (bytesWritten < len && idx < segment.s()) {
|
|
581
581
|
var _unary__edvuaz = idx;
|
|
582
582
|
idx = _unary__edvuaz + 1 | 0;
|
|
583
|
-
var b_0 = tmp0.
|
|
583
|
+
var b_0 = tmp0.t3b(segment, _unary__edvuaz);
|
|
584
584
|
bytesWritten = bytesWritten + 1 | 0;
|
|
585
585
|
var tmp = get_HEX_DIGIT_CHARS();
|
|
586
586
|
// Inline function 'kotlinx.io.shr' call
|
|
@@ -591,36 +591,36 @@
|
|
|
591
591
|
var tmp$ret$3 = b_0 & 15;
|
|
592
592
|
tmp_0.a9(tmp_1[tmp$ret$3]);
|
|
593
593
|
}
|
|
594
|
-
curr = curr.
|
|
594
|
+
curr = curr.f3a_1;
|
|
595
595
|
}
|
|
596
596
|
if (this.s().j1(toLong(maxPrintableBytes)) > 0) {
|
|
597
597
|
builder.a9(_Char___init__impl__6a9atx(8230));
|
|
598
598
|
}
|
|
599
599
|
return 'Buffer(size=' + this.s().toString() + ' hex=' + builder.toString() + ')';
|
|
600
600
|
};
|
|
601
|
-
protoOf(Buffer).
|
|
602
|
-
var oldHead = ensureNotNull(this.
|
|
603
|
-
var nextHead = oldHead.
|
|
604
|
-
this.
|
|
601
|
+
protoOf(Buffer).h3a = function () {
|
|
602
|
+
var oldHead = ensureNotNull(this.s39_1);
|
|
603
|
+
var nextHead = oldHead.f3a_1;
|
|
604
|
+
this.s39_1 = nextHead;
|
|
605
605
|
if (nextHead == null) {
|
|
606
|
-
this.
|
|
606
|
+
this.t39_1 = null;
|
|
607
607
|
} else {
|
|
608
|
-
nextHead.
|
|
608
|
+
nextHead.g3a_1 = null;
|
|
609
609
|
}
|
|
610
|
-
oldHead.
|
|
611
|
-
SegmentPool_instance.
|
|
610
|
+
oldHead.f3a_1 = null;
|
|
611
|
+
SegmentPool_instance.u3b(oldHead);
|
|
612
612
|
};
|
|
613
|
-
protoOf(Buffer).
|
|
614
|
-
var oldTail = ensureNotNull(this.
|
|
615
|
-
var newTail = oldTail.
|
|
616
|
-
this.
|
|
613
|
+
protoOf(Buffer).v3b = function () {
|
|
614
|
+
var oldTail = ensureNotNull(this.t39_1);
|
|
615
|
+
var newTail = oldTail.g3a_1;
|
|
616
|
+
this.t39_1 = newTail;
|
|
617
617
|
if (newTail == null) {
|
|
618
|
-
this.
|
|
618
|
+
this.s39_1 = null;
|
|
619
619
|
} else {
|
|
620
|
-
newTail.
|
|
620
|
+
newTail.f3a_1 = null;
|
|
621
621
|
}
|
|
622
|
-
oldTail.
|
|
623
|
-
SegmentPool_instance.
|
|
622
|
+
oldTail.g3a_1 = null;
|
|
623
|
+
SegmentPool_instance.u3b(oldTail);
|
|
624
624
|
};
|
|
625
625
|
function indexOf(_this__u8e3s4, byte, startIndex, endIndex) {
|
|
626
626
|
startIndex = startIndex === VOID ? new Long(0, 0) : startIndex;
|
|
@@ -632,7 +632,7 @@
|
|
|
632
632
|
if (startIndex.equals(endOffset))
|
|
633
633
|
return new Long(-1, -1);
|
|
634
634
|
// Inline function 'kotlinx.io.seek' call
|
|
635
|
-
if (_this__u8e3s4.
|
|
635
|
+
if (_this__u8e3s4.s39_1 == null) {
|
|
636
636
|
var o = new Long(-1, -1);
|
|
637
637
|
if (o.equals(new Long(-1, -1))) {
|
|
638
638
|
return new Long(-1, -1);
|
|
@@ -661,19 +661,19 @@
|
|
|
661
661
|
// Inline function 'kotlin.Long.plus' call
|
|
662
662
|
var other = segment.s();
|
|
663
663
|
offset = tmp0_0.b3(toLong(other));
|
|
664
|
-
segment = segment.
|
|
664
|
+
segment = segment.f3a_1;
|
|
665
665
|
}
|
|
666
666
|
while (!(segment == null) && offset.j1(endOffset) < 0);
|
|
667
667
|
return new Long(-1, -1);
|
|
668
668
|
}
|
|
669
669
|
if (_this__u8e3s4.s().c3(startIndex).j1(startIndex) < 0) {
|
|
670
|
-
var s = _this__u8e3s4.
|
|
670
|
+
var s = _this__u8e3s4.t39_1;
|
|
671
671
|
var offset_0 = _this__u8e3s4.s();
|
|
672
672
|
$l$loop: while (!(s == null) && offset_0.j1(startIndex) > 0) {
|
|
673
|
-
offset_0 = offset_0.c3(toLong(s.
|
|
673
|
+
offset_0 = offset_0.c3(toLong(s.c3a_1 - s.b3a_1 | 0));
|
|
674
674
|
if (offset_0.j1(startIndex) <= 0)
|
|
675
675
|
break $l$loop;
|
|
676
|
-
s = s.
|
|
676
|
+
s = s.g3a_1;
|
|
677
677
|
}
|
|
678
678
|
var tmp0_1 = s;
|
|
679
679
|
var o_0 = offset_0;
|
|
@@ -704,21 +704,21 @@
|
|
|
704
704
|
// Inline function 'kotlin.Long.plus' call
|
|
705
705
|
var other_0 = segment_0.s();
|
|
706
706
|
offset_1 = tmp0_3.b3(toLong(other_0));
|
|
707
|
-
segment_0 = segment_0.
|
|
707
|
+
segment_0 = segment_0.f3a_1;
|
|
708
708
|
}
|
|
709
709
|
while (!(segment_0 == null) && offset_1.j1(endOffset) < 0);
|
|
710
710
|
return new Long(-1, -1);
|
|
711
711
|
} else {
|
|
712
|
-
var s_0 = _this__u8e3s4.
|
|
712
|
+
var s_0 = _this__u8e3s4.s39_1;
|
|
713
713
|
var offset_2 = new Long(0, 0);
|
|
714
714
|
$l$loop_0: while (!(s_0 == null)) {
|
|
715
715
|
var tmp0_4 = offset_2;
|
|
716
716
|
// Inline function 'kotlin.Long.plus' call
|
|
717
|
-
var other_1 = s_0.
|
|
717
|
+
var other_1 = s_0.c3a_1 - s_0.b3a_1 | 0;
|
|
718
718
|
var nextOffset = tmp0_4.b3(toLong(other_1));
|
|
719
719
|
if (nextOffset.j1(startIndex) > 0)
|
|
720
720
|
break $l$loop_0;
|
|
721
|
-
s_0 = s_0.
|
|
721
|
+
s_0 = s_0.f3a_1;
|
|
722
722
|
offset_2 = nextOffset;
|
|
723
723
|
}
|
|
724
724
|
var tmp0_5 = s_0;
|
|
@@ -750,14 +750,14 @@
|
|
|
750
750
|
// Inline function 'kotlin.Long.plus' call
|
|
751
751
|
var other_2 = segment_1.s();
|
|
752
752
|
offset_3 = tmp0_7.b3(toLong(other_2));
|
|
753
|
-
segment_1 = segment_1.
|
|
753
|
+
segment_1 = segment_1.f3a_1;
|
|
754
754
|
}
|
|
755
755
|
while (!(segment_1 == null) && offset_3.j1(endOffset) < 0);
|
|
756
756
|
return new Long(-1, -1);
|
|
757
757
|
}
|
|
758
758
|
}
|
|
759
759
|
function readByteString(_this__u8e3s4, byteCount) {
|
|
760
|
-
return UnsafeByteStringOperations_instance.
|
|
760
|
+
return UnsafeByteStringOperations_instance.r39(readByteArray_0(_this__u8e3s4, byteCount));
|
|
761
761
|
}
|
|
762
762
|
function buffered(_this__u8e3s4) {
|
|
763
763
|
return new RealSource(_this__u8e3s4);
|
|
@@ -766,19 +766,19 @@
|
|
|
766
766
|
return new RealSink(_this__u8e3s4);
|
|
767
767
|
}
|
|
768
768
|
function PeekSource(upstream) {
|
|
769
|
-
this.
|
|
770
|
-
this.
|
|
771
|
-
this.
|
|
769
|
+
this.w3b_1 = upstream;
|
|
770
|
+
this.x3b_1 = this.w3b_1.v39();
|
|
771
|
+
this.y3b_1 = this.x3b_1.s39_1;
|
|
772
772
|
var tmp = this;
|
|
773
|
-
var tmp0_safe_receiver = this.
|
|
774
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
775
|
-
tmp.
|
|
776
|
-
this.
|
|
777
|
-
this.
|
|
773
|
+
var tmp0_safe_receiver = this.x3b_1.s39_1;
|
|
774
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.b3a_1;
|
|
775
|
+
tmp.z3b_1 = tmp1_elvis_lhs == null ? -1 : tmp1_elvis_lhs;
|
|
776
|
+
this.a3c_1 = false;
|
|
777
|
+
this.b3c_1 = new Long(0, 0);
|
|
778
778
|
}
|
|
779
|
-
protoOf(PeekSource).
|
|
779
|
+
protoOf(PeekSource).w3a = function (sink, byteCount) {
|
|
780
780
|
// Inline function 'kotlin.check' call
|
|
781
|
-
if (!!this.
|
|
781
|
+
if (!!this.a3c_1) {
|
|
782
782
|
var message = 'Source is closed.';
|
|
783
783
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
784
784
|
}
|
|
@@ -789,42 +789,42 @@
|
|
|
789
789
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
790
790
|
}
|
|
791
791
|
// Inline function 'kotlin.check' call
|
|
792
|
-
if (!(this.
|
|
792
|
+
if (!(this.y3b_1 == null || (this.y3b_1 === this.x3b_1.s39_1 && this.z3b_1 === ensureNotNull(this.x3b_1.s39_1).b3a_1))) {
|
|
793
793
|
var message_1 = 'Peek source is invalid because upstream source was used';
|
|
794
794
|
throw IllegalStateException_init_$Create$(toString(message_1));
|
|
795
795
|
}
|
|
796
796
|
if (byteCount.equals(new Long(0, 0)))
|
|
797
797
|
return new Long(0, 0);
|
|
798
798
|
// Inline function 'kotlin.Long.plus' call
|
|
799
|
-
var tmp$ret$7 = this.
|
|
800
|
-
if (!this.
|
|
799
|
+
var tmp$ret$7 = this.b3c_1.b3(toLong(1));
|
|
800
|
+
if (!this.w3b_1.y39(tmp$ret$7))
|
|
801
801
|
return new Long(-1, -1);
|
|
802
|
-
if (this.
|
|
803
|
-
this.
|
|
804
|
-
this.
|
|
802
|
+
if (this.y3b_1 == null && !(this.x3b_1.s39_1 == null)) {
|
|
803
|
+
this.y3b_1 = this.x3b_1.s39_1;
|
|
804
|
+
this.z3b_1 = ensureNotNull(this.x3b_1.s39_1).b3a_1;
|
|
805
805
|
}
|
|
806
806
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
807
|
-
var b = this.
|
|
807
|
+
var b = this.x3b_1.s().c3(this.b3c_1);
|
|
808
808
|
var toCopy = byteCount.j1(b) <= 0 ? byteCount : b;
|
|
809
|
-
this.
|
|
810
|
-
this.
|
|
809
|
+
this.x3b_1.m3a(sink, this.b3c_1, this.b3c_1.b3(toCopy));
|
|
810
|
+
this.b3c_1 = this.b3c_1.b3(toCopy);
|
|
811
811
|
return toCopy;
|
|
812
812
|
};
|
|
813
813
|
protoOf(PeekSource).u4 = function () {
|
|
814
|
-
this.
|
|
814
|
+
this.a3c_1 = true;
|
|
815
815
|
};
|
|
816
816
|
function RealSink(sink) {
|
|
817
|
-
this.
|
|
818
|
-
this.
|
|
819
|
-
this.
|
|
817
|
+
this.c3c_1 = sink;
|
|
818
|
+
this.d3c_1 = false;
|
|
819
|
+
this.e3c_1 = new Buffer();
|
|
820
820
|
}
|
|
821
|
-
protoOf(RealSink).
|
|
822
|
-
return this.
|
|
821
|
+
protoOf(RealSink).v39 = function () {
|
|
822
|
+
return this.e3c_1;
|
|
823
823
|
};
|
|
824
|
-
protoOf(RealSink).
|
|
824
|
+
protoOf(RealSink).x3a = function (source, byteCount) {
|
|
825
825
|
// Inline function 'kotlinx.io.RealSink.checkNotClosed' call
|
|
826
826
|
// Inline function 'kotlin.check' call
|
|
827
|
-
if (!!this.
|
|
827
|
+
if (!!this.d3c_1) {
|
|
828
828
|
var message = 'Sink is closed.';
|
|
829
829
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
830
830
|
}
|
|
@@ -833,43 +833,43 @@
|
|
|
833
833
|
var message_0 = 'byteCount: ' + byteCount.toString();
|
|
834
834
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
835
835
|
}
|
|
836
|
-
this.
|
|
837
|
-
this.
|
|
836
|
+
this.e3c_1.x3a(source, byteCount);
|
|
837
|
+
this.l3a();
|
|
838
838
|
};
|
|
839
|
-
protoOf(RealSink).
|
|
839
|
+
protoOf(RealSink).f3b = function (source, startIndex, endIndex) {
|
|
840
840
|
// Inline function 'kotlinx.io.RealSink.checkNotClosed' call
|
|
841
841
|
// Inline function 'kotlin.check' call
|
|
842
|
-
if (!!this.
|
|
842
|
+
if (!!this.d3c_1) {
|
|
843
843
|
var message = 'Sink is closed.';
|
|
844
844
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
845
845
|
}
|
|
846
846
|
// Inline function 'kotlinx.io.checkBounds' call
|
|
847
847
|
var size = source.length;
|
|
848
848
|
checkBounds(toLong(size), toLong(startIndex), toLong(endIndex));
|
|
849
|
-
this.
|
|
850
|
-
this.
|
|
849
|
+
this.e3c_1.f3b(source, startIndex, endIndex);
|
|
850
|
+
this.l3a();
|
|
851
851
|
};
|
|
852
|
-
protoOf(RealSink).
|
|
852
|
+
protoOf(RealSink).o3b = function (source) {
|
|
853
853
|
// Inline function 'kotlinx.io.RealSink.checkNotClosed' call
|
|
854
854
|
// Inline function 'kotlin.check' call
|
|
855
|
-
if (!!this.
|
|
855
|
+
if (!!this.d3c_1) {
|
|
856
856
|
var message = 'Sink is closed.';
|
|
857
857
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
858
858
|
}
|
|
859
859
|
var totalBytesRead = new Long(0, 0);
|
|
860
860
|
$l$loop: while (true) {
|
|
861
|
-
var readCount = source.
|
|
861
|
+
var readCount = source.w3a(this.e3c_1, new Long(8192, 0));
|
|
862
862
|
if (readCount.equals(new Long(-1, -1)))
|
|
863
863
|
break $l$loop;
|
|
864
864
|
totalBytesRead = totalBytesRead.b3(readCount);
|
|
865
|
-
this.
|
|
865
|
+
this.l3a();
|
|
866
866
|
}
|
|
867
867
|
return totalBytesRead;
|
|
868
868
|
};
|
|
869
|
-
protoOf(RealSink).
|
|
869
|
+
protoOf(RealSink).j3b = function (source, byteCount) {
|
|
870
870
|
// Inline function 'kotlinx.io.RealSink.checkNotClosed' call
|
|
871
871
|
// Inline function 'kotlin.check' call
|
|
872
|
-
if (!!this.
|
|
872
|
+
if (!!this.d3c_1) {
|
|
873
873
|
var message = 'Sink is closed.';
|
|
874
874
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
875
875
|
}
|
|
@@ -880,54 +880,54 @@
|
|
|
880
880
|
}
|
|
881
881
|
var remainingByteCount = byteCount;
|
|
882
882
|
while (remainingByteCount.j1(new Long(0, 0)) > 0) {
|
|
883
|
-
var read = source.
|
|
883
|
+
var read = source.w3a(this.e3c_1, remainingByteCount);
|
|
884
884
|
if (read.equals(new Long(-1, -1))) {
|
|
885
885
|
var bytesRead = byteCount.c3(remainingByteCount);
|
|
886
886
|
throw EOFException_init_$Create$_0('Source exhausted before reading ' + byteCount.toString() + ' bytes from it (number of bytes read: ' + bytesRead.toString() + ').');
|
|
887
887
|
}
|
|
888
888
|
remainingByteCount = remainingByteCount.c3(read);
|
|
889
|
-
this.
|
|
889
|
+
this.l3a();
|
|
890
890
|
}
|
|
891
891
|
};
|
|
892
|
-
protoOf(RealSink).
|
|
892
|
+
protoOf(RealSink).p3b = function (byte) {
|
|
893
893
|
// Inline function 'kotlinx.io.RealSink.checkNotClosed' call
|
|
894
894
|
// Inline function 'kotlin.check' call
|
|
895
|
-
if (!!this.
|
|
895
|
+
if (!!this.d3c_1) {
|
|
896
896
|
var message = 'Sink is closed.';
|
|
897
897
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
898
898
|
}
|
|
899
|
-
this.
|
|
900
|
-
this.
|
|
899
|
+
this.e3c_1.p3b(byte);
|
|
900
|
+
this.l3a();
|
|
901
901
|
};
|
|
902
|
-
protoOf(RealSink).
|
|
902
|
+
protoOf(RealSink).r3b = function (short) {
|
|
903
903
|
// Inline function 'kotlinx.io.RealSink.checkNotClosed' call
|
|
904
904
|
// Inline function 'kotlin.check' call
|
|
905
|
-
if (!!this.
|
|
905
|
+
if (!!this.d3c_1) {
|
|
906
906
|
var message = 'Sink is closed.';
|
|
907
907
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
908
908
|
}
|
|
909
|
-
this.
|
|
910
|
-
this.
|
|
909
|
+
this.e3c_1.r3b(short);
|
|
910
|
+
this.l3a();
|
|
911
911
|
};
|
|
912
|
-
protoOf(RealSink).
|
|
912
|
+
protoOf(RealSink).l3a = function () {
|
|
913
913
|
// Inline function 'kotlinx.io.RealSink.checkNotClosed' call
|
|
914
914
|
// Inline function 'kotlin.check' call
|
|
915
|
-
if (!!this.
|
|
915
|
+
if (!!this.d3c_1) {
|
|
916
916
|
var message = 'Sink is closed.';
|
|
917
917
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
918
918
|
}
|
|
919
|
-
var byteCount = this.
|
|
919
|
+
var byteCount = this.e3c_1.q3a();
|
|
920
920
|
if (byteCount.j1(new Long(0, 0)) > 0) {
|
|
921
|
-
this.
|
|
921
|
+
this.c3c_1.x3a(this.e3c_1, byteCount);
|
|
922
922
|
}
|
|
923
923
|
};
|
|
924
924
|
protoOf(RealSink).u4 = function () {
|
|
925
|
-
if (this.
|
|
925
|
+
if (this.d3c_1)
|
|
926
926
|
return Unit_instance;
|
|
927
927
|
var thrown = null;
|
|
928
928
|
try {
|
|
929
|
-
if (this.
|
|
930
|
-
this.
|
|
929
|
+
if (this.e3c_1.s().j1(new Long(0, 0)) > 0) {
|
|
930
|
+
this.c3c_1.x3a(this.e3c_1, this.e3c_1.s());
|
|
931
931
|
}
|
|
932
932
|
} catch ($p) {
|
|
933
933
|
if ($p instanceof Error) {
|
|
@@ -938,7 +938,7 @@
|
|
|
938
938
|
}
|
|
939
939
|
}
|
|
940
940
|
try {
|
|
941
|
-
this.
|
|
941
|
+
this.c3c_1.u4();
|
|
942
942
|
} catch ($p) {
|
|
943
943
|
if ($p instanceof Error) {
|
|
944
944
|
var e_0 = $p;
|
|
@@ -948,25 +948,25 @@
|
|
|
948
948
|
throw $p;
|
|
949
949
|
}
|
|
950
950
|
}
|
|
951
|
-
this.
|
|
951
|
+
this.d3c_1 = true;
|
|
952
952
|
if (!(thrown == null))
|
|
953
953
|
throw thrown;
|
|
954
954
|
};
|
|
955
955
|
protoOf(RealSink).toString = function () {
|
|
956
|
-
return 'buffered(' + toString(this.
|
|
956
|
+
return 'buffered(' + toString(this.c3c_1) + ')';
|
|
957
957
|
};
|
|
958
958
|
function RealSource(source) {
|
|
959
|
-
this.
|
|
960
|
-
this.
|
|
961
|
-
this.
|
|
959
|
+
this.f3c_1 = source;
|
|
960
|
+
this.g3c_1 = false;
|
|
961
|
+
this.h3c_1 = new Buffer();
|
|
962
962
|
}
|
|
963
|
-
protoOf(RealSource).
|
|
964
|
-
return this.
|
|
963
|
+
protoOf(RealSource).v39 = function () {
|
|
964
|
+
return this.h3c_1;
|
|
965
965
|
};
|
|
966
|
-
protoOf(RealSource).
|
|
966
|
+
protoOf(RealSource).w3a = function (sink, byteCount) {
|
|
967
967
|
// Inline function 'kotlinx.io.RealSource.checkNotClosed' call
|
|
968
968
|
// Inline function 'kotlin.check' call
|
|
969
|
-
if (!!this.
|
|
969
|
+
if (!!this.g3c_1) {
|
|
970
970
|
var message = 'Source is closed.';
|
|
971
971
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
972
972
|
}
|
|
@@ -975,33 +975,33 @@
|
|
|
975
975
|
var message_0 = 'byteCount: ' + byteCount.toString();
|
|
976
976
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
977
977
|
}
|
|
978
|
-
if (this.
|
|
979
|
-
var read = this.
|
|
978
|
+
if (this.h3c_1.s().equals(new Long(0, 0))) {
|
|
979
|
+
var read = this.f3c_1.w3a(this.h3c_1, new Long(8192, 0));
|
|
980
980
|
if (read.equals(new Long(-1, -1)))
|
|
981
981
|
return new Long(-1, -1);
|
|
982
982
|
}
|
|
983
983
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
984
|
-
var b = this.
|
|
984
|
+
var b = this.h3c_1.s();
|
|
985
985
|
var toRead = byteCount.j1(b) <= 0 ? byteCount : b;
|
|
986
|
-
return this.
|
|
986
|
+
return this.h3c_1.w3a(sink, toRead);
|
|
987
987
|
};
|
|
988
|
-
protoOf(RealSource).
|
|
988
|
+
protoOf(RealSource).w39 = function () {
|
|
989
989
|
// Inline function 'kotlinx.io.RealSource.checkNotClosed' call
|
|
990
990
|
// Inline function 'kotlin.check' call
|
|
991
|
-
if (!!this.
|
|
991
|
+
if (!!this.g3c_1) {
|
|
992
992
|
var message = 'Source is closed.';
|
|
993
993
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
994
994
|
}
|
|
995
|
-
return this.
|
|
995
|
+
return this.h3c_1.w39() && this.f3c_1.w3a(this.h3c_1, new Long(8192, 0)).equals(new Long(-1, -1));
|
|
996
996
|
};
|
|
997
|
-
protoOf(RealSource).
|
|
998
|
-
if (!this.
|
|
997
|
+
protoOf(RealSource).x39 = function (byteCount) {
|
|
998
|
+
if (!this.y39(byteCount))
|
|
999
999
|
throw EOFException_init_$Create$_0("Source doesn't contain required number of bytes (" + byteCount.toString() + ').');
|
|
1000
1000
|
};
|
|
1001
|
-
protoOf(RealSource).
|
|
1001
|
+
protoOf(RealSource).y39 = function (byteCount) {
|
|
1002
1002
|
// Inline function 'kotlinx.io.RealSource.checkNotClosed' call
|
|
1003
1003
|
// Inline function 'kotlin.check' call
|
|
1004
|
-
if (!!this.
|
|
1004
|
+
if (!!this.g3c_1) {
|
|
1005
1005
|
var message = 'Source is closed.';
|
|
1006
1006
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
1007
1007
|
}
|
|
@@ -1010,90 +1010,90 @@
|
|
|
1010
1010
|
var message_0 = 'byteCount: ' + byteCount.toString();
|
|
1011
1011
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
1012
1012
|
}
|
|
1013
|
-
while (this.
|
|
1014
|
-
if (this.
|
|
1013
|
+
while (this.h3c_1.s().j1(byteCount) < 0) {
|
|
1014
|
+
if (this.f3c_1.w3a(this.h3c_1, new Long(8192, 0)).equals(new Long(-1, -1)))
|
|
1015
1015
|
return false;
|
|
1016
1016
|
}
|
|
1017
1017
|
return true;
|
|
1018
1018
|
};
|
|
1019
|
-
protoOf(RealSource).
|
|
1020
|
-
this.
|
|
1021
|
-
return this.
|
|
1019
|
+
protoOf(RealSource).z39 = function () {
|
|
1020
|
+
this.x39(new Long(1, 0));
|
|
1021
|
+
return this.h3c_1.z39();
|
|
1022
1022
|
};
|
|
1023
|
-
protoOf(RealSource).
|
|
1023
|
+
protoOf(RealSource).u3a = function (sink, startIndex, endIndex) {
|
|
1024
1024
|
// Inline function 'kotlinx.io.checkBounds' call
|
|
1025
1025
|
var size = sink.length;
|
|
1026
1026
|
checkBounds(toLong(size), toLong(startIndex), toLong(endIndex));
|
|
1027
|
-
if (this.
|
|
1028
|
-
var read = this.
|
|
1027
|
+
if (this.h3c_1.s().equals(new Long(0, 0))) {
|
|
1028
|
+
var read = this.f3c_1.w3a(this.h3c_1, new Long(8192, 0));
|
|
1029
1029
|
if (read.equals(new Long(-1, -1)))
|
|
1030
1030
|
return -1;
|
|
1031
1031
|
}
|
|
1032
1032
|
var tmp0 = endIndex - startIndex | 0;
|
|
1033
1033
|
// Inline function 'kotlinx.io.minOf' call
|
|
1034
|
-
var b = this.
|
|
1034
|
+
var b = this.h3c_1.s();
|
|
1035
1035
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
1036
1036
|
var a = toLong(tmp0);
|
|
1037
1037
|
var toRead = (a.j1(b) <= 0 ? a : b).l1();
|
|
1038
|
-
return this.
|
|
1038
|
+
return this.h3c_1.u3a(sink, startIndex, startIndex + toRead | 0);
|
|
1039
1039
|
};
|
|
1040
|
-
protoOf(RealSource).
|
|
1040
|
+
protoOf(RealSource).y3a = function (sink, byteCount) {
|
|
1041
1041
|
try {
|
|
1042
|
-
this.
|
|
1042
|
+
this.x39(byteCount);
|
|
1043
1043
|
} catch ($p) {
|
|
1044
1044
|
if ($p instanceof EOFException) {
|
|
1045
1045
|
var e = $p;
|
|
1046
|
-
sink.
|
|
1046
|
+
sink.x3a(this.h3c_1, this.h3c_1.s());
|
|
1047
1047
|
throw e;
|
|
1048
1048
|
} else {
|
|
1049
1049
|
throw $p;
|
|
1050
1050
|
}
|
|
1051
1051
|
}
|
|
1052
|
-
this.
|
|
1052
|
+
this.h3c_1.y3a(sink, byteCount);
|
|
1053
1053
|
};
|
|
1054
|
-
protoOf(RealSource).
|
|
1054
|
+
protoOf(RealSource).z3a = function (sink) {
|
|
1055
1055
|
var totalBytesWritten = new Long(0, 0);
|
|
1056
|
-
while (!this.
|
|
1057
|
-
var emitByteCount = this.
|
|
1056
|
+
while (!this.f3c_1.w3a(this.h3c_1, new Long(8192, 0)).equals(new Long(-1, -1))) {
|
|
1057
|
+
var emitByteCount = this.h3c_1.q3a();
|
|
1058
1058
|
if (emitByteCount.j1(new Long(0, 0)) > 0) {
|
|
1059
1059
|
totalBytesWritten = totalBytesWritten.b3(emitByteCount);
|
|
1060
|
-
sink.
|
|
1060
|
+
sink.x3a(this.h3c_1, emitByteCount);
|
|
1061
1061
|
}
|
|
1062
1062
|
}
|
|
1063
|
-
if (this.
|
|
1064
|
-
totalBytesWritten = totalBytesWritten.b3(this.
|
|
1065
|
-
sink.
|
|
1063
|
+
if (this.h3c_1.s().j1(new Long(0, 0)) > 0) {
|
|
1064
|
+
totalBytesWritten = totalBytesWritten.b3(this.h3c_1.s());
|
|
1065
|
+
sink.x3a(this.h3c_1, this.h3c_1.s());
|
|
1066
1066
|
}
|
|
1067
1067
|
return totalBytesWritten;
|
|
1068
1068
|
};
|
|
1069
|
-
protoOf(RealSource).
|
|
1070
|
-
this.
|
|
1071
|
-
return this.
|
|
1069
|
+
protoOf(RealSource).j3a = function () {
|
|
1070
|
+
this.x39(new Long(2, 0));
|
|
1071
|
+
return this.h3c_1.j3a();
|
|
1072
1072
|
};
|
|
1073
|
-
protoOf(RealSource).
|
|
1073
|
+
protoOf(RealSource).a3b = function () {
|
|
1074
1074
|
// Inline function 'kotlinx.io.RealSource.checkNotClosed' call
|
|
1075
1075
|
// Inline function 'kotlin.check' call
|
|
1076
|
-
if (!!this.
|
|
1076
|
+
if (!!this.g3c_1) {
|
|
1077
1077
|
var message = 'Source is closed.';
|
|
1078
1078
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
1079
1079
|
}
|
|
1080
1080
|
return buffered(new PeekSource(this));
|
|
1081
1081
|
};
|
|
1082
1082
|
protoOf(RealSource).u4 = function () {
|
|
1083
|
-
if (this.
|
|
1083
|
+
if (this.g3c_1)
|
|
1084
1084
|
return Unit_instance;
|
|
1085
|
-
this.
|
|
1086
|
-
this.
|
|
1087
|
-
this.
|
|
1085
|
+
this.g3c_1 = true;
|
|
1086
|
+
this.f3c_1.u4();
|
|
1087
|
+
this.h3c_1.n2();
|
|
1088
1088
|
};
|
|
1089
1089
|
protoOf(RealSource).toString = function () {
|
|
1090
|
-
return 'buffered(' + toString(this.
|
|
1090
|
+
return 'buffered(' + toString(this.f3c_1) + ')';
|
|
1091
1091
|
};
|
|
1092
1092
|
function Segment_init_$Init$($this) {
|
|
1093
1093
|
Segment.call($this);
|
|
1094
|
-
$this.
|
|
1095
|
-
$this.
|
|
1096
|
-
$this.
|
|
1094
|
+
$this.a3a_1 = new Int8Array(8192);
|
|
1095
|
+
$this.e3a_1 = true;
|
|
1096
|
+
$this.d3a_1 = null;
|
|
1097
1097
|
return $this;
|
|
1098
1098
|
}
|
|
1099
1099
|
function Segment_init_$Create$() {
|
|
@@ -1101,87 +1101,87 @@
|
|
|
1101
1101
|
}
|
|
1102
1102
|
function Segment_init_$Init$_0(data, pos, limit, shareToken, owner, $this) {
|
|
1103
1103
|
Segment.call($this);
|
|
1104
|
-
$this.
|
|
1105
|
-
$this.
|
|
1106
|
-
$this.
|
|
1107
|
-
$this.
|
|
1108
|
-
$this.
|
|
1104
|
+
$this.a3a_1 = data;
|
|
1105
|
+
$this.b3a_1 = pos;
|
|
1106
|
+
$this.c3a_1 = limit;
|
|
1107
|
+
$this.d3a_1 = shareToken;
|
|
1108
|
+
$this.e3a_1 = owner;
|
|
1109
1109
|
return $this;
|
|
1110
1110
|
}
|
|
1111
1111
|
function Segment_init_$Create$_0(data, pos, limit, shareToken, owner) {
|
|
1112
1112
|
return Segment_init_$Init$_0(data, pos, limit, shareToken, owner, objectCreate(protoOf(Segment)));
|
|
1113
1113
|
}
|
|
1114
1114
|
function Companion() {
|
|
1115
|
-
this.
|
|
1116
|
-
this.
|
|
1115
|
+
this.i3c_1 = 8192;
|
|
1116
|
+
this.j3c_1 = 1024;
|
|
1117
1117
|
}
|
|
1118
|
-
protoOf(Companion).
|
|
1118
|
+
protoOf(Companion).k3c = function () {
|
|
1119
1119
|
return Segment_init_$Create$();
|
|
1120
1120
|
};
|
|
1121
1121
|
var Companion_instance;
|
|
1122
1122
|
function Companion_getInstance() {
|
|
1123
1123
|
return Companion_instance;
|
|
1124
1124
|
}
|
|
1125
|
-
protoOf(Segment).
|
|
1126
|
-
var tmp0_safe_receiver = this.
|
|
1127
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1125
|
+
protoOf(Segment).k3b = function () {
|
|
1126
|
+
var tmp0_safe_receiver = this.d3a_1;
|
|
1127
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.l3c();
|
|
1128
1128
|
return tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs;
|
|
1129
1129
|
};
|
|
1130
|
-
protoOf(Segment).
|
|
1131
|
-
var tmp0_elvis_lhs = this.
|
|
1130
|
+
protoOf(Segment).n3a = function () {
|
|
1131
|
+
var tmp0_elvis_lhs = this.d3a_1;
|
|
1132
1132
|
var tmp;
|
|
1133
1133
|
if (tmp0_elvis_lhs == null) {
|
|
1134
1134
|
// Inline function 'kotlin.also' call
|
|
1135
|
-
var this_0 = SegmentPool_instance.
|
|
1136
|
-
this.
|
|
1135
|
+
var this_0 = SegmentPool_instance.m3c();
|
|
1136
|
+
this.d3a_1 = this_0;
|
|
1137
1137
|
tmp = this_0;
|
|
1138
1138
|
} else {
|
|
1139
1139
|
tmp = tmp0_elvis_lhs;
|
|
1140
1140
|
}
|
|
1141
1141
|
var t = tmp;
|
|
1142
|
-
var tmp_0 = this.
|
|
1143
|
-
var tmp_1 = this.
|
|
1142
|
+
var tmp_0 = this.b3a_1;
|
|
1143
|
+
var tmp_1 = this.c3a_1;
|
|
1144
1144
|
// Inline function 'kotlin.also' call
|
|
1145
|
-
t.
|
|
1146
|
-
return Segment_init_$Create$_0(this.
|
|
1145
|
+
t.n3c();
|
|
1146
|
+
return Segment_init_$Create$_0(this.a3a_1, tmp_0, tmp_1, t, false);
|
|
1147
1147
|
};
|
|
1148
|
-
protoOf(Segment).
|
|
1149
|
-
var result = this.
|
|
1150
|
-
if (!(this.
|
|
1151
|
-
ensureNotNull(this.
|
|
1148
|
+
protoOf(Segment).n3b = function () {
|
|
1149
|
+
var result = this.f3a_1;
|
|
1150
|
+
if (!(this.g3a_1 == null)) {
|
|
1151
|
+
ensureNotNull(this.g3a_1).f3a_1 = this.f3a_1;
|
|
1152
1152
|
}
|
|
1153
|
-
if (!(this.
|
|
1154
|
-
ensureNotNull(this.
|
|
1153
|
+
if (!(this.f3a_1 == null)) {
|
|
1154
|
+
ensureNotNull(this.f3a_1).g3a_1 = this.g3a_1;
|
|
1155
1155
|
}
|
|
1156
|
-
this.
|
|
1157
|
-
this.
|
|
1156
|
+
this.f3a_1 = null;
|
|
1157
|
+
this.g3a_1 = null;
|
|
1158
1158
|
return result;
|
|
1159
1159
|
};
|
|
1160
|
-
protoOf(Segment).
|
|
1161
|
-
segment.
|
|
1162
|
-
segment.
|
|
1163
|
-
if (!(this.
|
|
1164
|
-
ensureNotNull(this.
|
|
1160
|
+
protoOf(Segment).o3a = function (segment) {
|
|
1161
|
+
segment.g3a_1 = this;
|
|
1162
|
+
segment.f3a_1 = this.f3a_1;
|
|
1163
|
+
if (!(this.f3a_1 == null)) {
|
|
1164
|
+
ensureNotNull(this.f3a_1).g3a_1 = segment;
|
|
1165
1165
|
}
|
|
1166
|
-
this.
|
|
1166
|
+
this.f3a_1 = segment;
|
|
1167
1167
|
return segment;
|
|
1168
1168
|
};
|
|
1169
|
-
protoOf(Segment).
|
|
1169
|
+
protoOf(Segment).l3b = function (byteCount) {
|
|
1170
1170
|
// Inline function 'kotlin.require' call
|
|
1171
|
-
if (!(byteCount > 0 && byteCount <= (this.
|
|
1171
|
+
if (!(byteCount > 0 && byteCount <= (this.c3a_1 - this.b3a_1 | 0))) {
|
|
1172
1172
|
var message = 'byteCount out of range';
|
|
1173
1173
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1174
1174
|
}
|
|
1175
1175
|
var prefix;
|
|
1176
1176
|
if (byteCount >= 1024) {
|
|
1177
|
-
prefix = this.
|
|
1177
|
+
prefix = this.n3a();
|
|
1178
1178
|
} else {
|
|
1179
|
-
prefix = SegmentPool_instance.
|
|
1180
|
-
var tmp0 = this.
|
|
1181
|
-
var tmp2 = prefix.
|
|
1182
|
-
var tmp4 = this.
|
|
1179
|
+
prefix = SegmentPool_instance.e3b();
|
|
1180
|
+
var tmp0 = this.a3a_1;
|
|
1181
|
+
var tmp2 = prefix.a3a_1;
|
|
1182
|
+
var tmp4 = this.b3a_1;
|
|
1183
1183
|
// Inline function 'kotlin.collections.copyInto' call
|
|
1184
|
-
var endIndex = this.
|
|
1184
|
+
var endIndex = this.b3a_1 + byteCount | 0;
|
|
1185
1185
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1186
1186
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1187
1187
|
var tmp = tmp0;
|
|
@@ -1189,62 +1189,62 @@
|
|
|
1189
1189
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1190
1190
|
arrayCopy(tmp, tmp2, 0, tmp4, endIndex);
|
|
1191
1191
|
}
|
|
1192
|
-
prefix.
|
|
1193
|
-
this.
|
|
1194
|
-
if (!(this.
|
|
1195
|
-
ensureNotNull(this.
|
|
1192
|
+
prefix.c3a_1 = prefix.b3a_1 + byteCount | 0;
|
|
1193
|
+
this.b3a_1 = this.b3a_1 + byteCount | 0;
|
|
1194
|
+
if (!(this.g3a_1 == null)) {
|
|
1195
|
+
ensureNotNull(this.g3a_1).o3a(prefix);
|
|
1196
1196
|
} else {
|
|
1197
|
-
prefix.
|
|
1198
|
-
this.
|
|
1197
|
+
prefix.f3a_1 = this;
|
|
1198
|
+
this.g3a_1 = prefix;
|
|
1199
1199
|
}
|
|
1200
1200
|
return prefix;
|
|
1201
1201
|
};
|
|
1202
|
-
protoOf(Segment).
|
|
1202
|
+
protoOf(Segment).p3a = function () {
|
|
1203
1203
|
// Inline function 'kotlin.check' call
|
|
1204
|
-
if (!!(this.
|
|
1204
|
+
if (!!(this.g3a_1 == null)) {
|
|
1205
1205
|
var message = 'cannot compact';
|
|
1206
1206
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
1207
1207
|
}
|
|
1208
|
-
if (!ensureNotNull(this.
|
|
1208
|
+
if (!ensureNotNull(this.g3a_1).e3a_1)
|
|
1209
1209
|
return this;
|
|
1210
|
-
var byteCount = this.
|
|
1211
|
-
var availableByteCount = (8192 - ensureNotNull(this.
|
|
1210
|
+
var byteCount = this.c3a_1 - this.b3a_1 | 0;
|
|
1211
|
+
var availableByteCount = (8192 - ensureNotNull(this.g3a_1).c3a_1 | 0) + (ensureNotNull(this.g3a_1).k3b() ? 0 : ensureNotNull(this.g3a_1).b3a_1) | 0;
|
|
1212
1212
|
if (byteCount > availableByteCount)
|
|
1213
1213
|
return this;
|
|
1214
|
-
var predecessor = this.
|
|
1215
|
-
this.
|
|
1216
|
-
var successor = this.
|
|
1214
|
+
var predecessor = this.g3a_1;
|
|
1215
|
+
this.m3b(ensureNotNull(predecessor), byteCount);
|
|
1216
|
+
var successor = this.n3b();
|
|
1217
1217
|
// Inline function 'kotlin.check' call
|
|
1218
1218
|
if (!(successor == null)) {
|
|
1219
1219
|
throw IllegalStateException_init_$Create$('Check failed.');
|
|
1220
1220
|
}
|
|
1221
|
-
SegmentPool_instance.
|
|
1221
|
+
SegmentPool_instance.u3b(this);
|
|
1222
1222
|
return predecessor;
|
|
1223
1223
|
};
|
|
1224
|
-
protoOf(Segment).
|
|
1225
|
-
var _unary__edvuaz = this.
|
|
1226
|
-
this.
|
|
1227
|
-
this.
|
|
1224
|
+
protoOf(Segment).q3b = function (byte) {
|
|
1225
|
+
var _unary__edvuaz = this.c3a_1;
|
|
1226
|
+
this.c3a_1 = _unary__edvuaz + 1 | 0;
|
|
1227
|
+
this.a3a_1[_unary__edvuaz] = byte;
|
|
1228
1228
|
};
|
|
1229
|
-
protoOf(Segment).
|
|
1230
|
-
var data = this.
|
|
1231
|
-
var limit = this.
|
|
1229
|
+
protoOf(Segment).s3b = function (short) {
|
|
1230
|
+
var data = this.a3a_1;
|
|
1231
|
+
var limit = this.c3a_1;
|
|
1232
1232
|
var _unary__edvuaz = limit;
|
|
1233
1233
|
limit = _unary__edvuaz + 1 | 0;
|
|
1234
1234
|
data[_unary__edvuaz] = toByte((short >>> 8 | 0) & 255);
|
|
1235
1235
|
var _unary__edvuaz_0 = limit;
|
|
1236
1236
|
limit = _unary__edvuaz_0 + 1 | 0;
|
|
1237
1237
|
data[_unary__edvuaz_0] = toByte(short & 255);
|
|
1238
|
-
this.
|
|
1238
|
+
this.c3a_1 = limit;
|
|
1239
1239
|
};
|
|
1240
|
-
protoOf(Segment).
|
|
1241
|
-
var _unary__edvuaz = this.
|
|
1242
|
-
this.
|
|
1243
|
-
return this.
|
|
1240
|
+
protoOf(Segment).i3a = function () {
|
|
1241
|
+
var _unary__edvuaz = this.b3a_1;
|
|
1242
|
+
this.b3a_1 = _unary__edvuaz + 1 | 0;
|
|
1243
|
+
return this.a3a_1[_unary__edvuaz];
|
|
1244
1244
|
};
|
|
1245
|
-
protoOf(Segment).
|
|
1246
|
-
var data = this.
|
|
1247
|
-
var pos = this.
|
|
1245
|
+
protoOf(Segment).k3a = function () {
|
|
1246
|
+
var data = this.a3a_1;
|
|
1247
|
+
var pos = this.b3a_1;
|
|
1248
1248
|
var _unary__edvuaz = pos;
|
|
1249
1249
|
pos = _unary__edvuaz + 1 | 0;
|
|
1250
1250
|
// Inline function 'kotlinx.io.and' call
|
|
@@ -1254,118 +1254,118 @@
|
|
|
1254
1254
|
// Inline function 'kotlinx.io.and' call
|
|
1255
1255
|
var tmp$ret$1 = data[_unary__edvuaz_0] & 255;
|
|
1256
1256
|
var s = toShort(tmp | tmp$ret$1);
|
|
1257
|
-
this.
|
|
1257
|
+
this.b3a_1 = pos;
|
|
1258
1258
|
return s;
|
|
1259
1259
|
};
|
|
1260
|
-
protoOf(Segment).
|
|
1260
|
+
protoOf(Segment).m3b = function (sink, byteCount) {
|
|
1261
1261
|
// Inline function 'kotlin.check' call
|
|
1262
|
-
if (!sink.
|
|
1262
|
+
if (!sink.e3a_1) {
|
|
1263
1263
|
var message = 'only owner can write';
|
|
1264
1264
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
1265
1265
|
}
|
|
1266
|
-
if ((sink.
|
|
1267
|
-
if (sink.
|
|
1266
|
+
if ((sink.c3a_1 + byteCount | 0) > 8192) {
|
|
1267
|
+
if (sink.k3b())
|
|
1268
1268
|
throw IllegalArgumentException_init_$Create$_0();
|
|
1269
|
-
if (((sink.
|
|
1269
|
+
if (((sink.c3a_1 + byteCount | 0) - sink.b3a_1 | 0) > 8192)
|
|
1270
1270
|
throw IllegalArgumentException_init_$Create$_0();
|
|
1271
|
-
var tmp0 = sink.
|
|
1272
|
-
var tmp2 = sink.
|
|
1273
|
-
var tmp4 = sink.
|
|
1271
|
+
var tmp0 = sink.a3a_1;
|
|
1272
|
+
var tmp2 = sink.a3a_1;
|
|
1273
|
+
var tmp4 = sink.b3a_1;
|
|
1274
1274
|
// Inline function 'kotlin.collections.copyInto' call
|
|
1275
|
-
var endIndex = sink.
|
|
1275
|
+
var endIndex = sink.c3a_1;
|
|
1276
1276
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1277
1277
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1278
1278
|
var tmp = tmp0;
|
|
1279
1279
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1280
1280
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1281
1281
|
arrayCopy(tmp, tmp2, 0, tmp4, endIndex);
|
|
1282
|
-
sink.
|
|
1283
|
-
sink.
|
|
1282
|
+
sink.c3a_1 = sink.c3a_1 - sink.b3a_1 | 0;
|
|
1283
|
+
sink.b3a_1 = 0;
|
|
1284
1284
|
}
|
|
1285
|
-
var tmp0_0 = this.
|
|
1286
|
-
var tmp2_0 = sink.
|
|
1287
|
-
var tmp4_0 = sink.
|
|
1288
|
-
var tmp6 = this.
|
|
1285
|
+
var tmp0_0 = this.a3a_1;
|
|
1286
|
+
var tmp2_0 = sink.a3a_1;
|
|
1287
|
+
var tmp4_0 = sink.c3a_1;
|
|
1288
|
+
var tmp6 = this.b3a_1;
|
|
1289
1289
|
// Inline function 'kotlin.collections.copyInto' call
|
|
1290
|
-
var endIndex_0 = this.
|
|
1290
|
+
var endIndex_0 = this.b3a_1 + byteCount | 0;
|
|
1291
1291
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1292
1292
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1293
1293
|
var tmp_0 = tmp0_0;
|
|
1294
1294
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1295
1295
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1296
1296
|
arrayCopy(tmp_0, tmp2_0, tmp4_0, tmp6, endIndex_0);
|
|
1297
|
-
sink.
|
|
1298
|
-
this.
|
|
1297
|
+
sink.c3a_1 = sink.c3a_1 + byteCount | 0;
|
|
1298
|
+
this.b3a_1 = this.b3a_1 + byteCount | 0;
|
|
1299
1299
|
};
|
|
1300
|
-
protoOf(Segment).
|
|
1300
|
+
protoOf(Segment).v3a = function (dst, dstStartOffset, dstEndOffset) {
|
|
1301
1301
|
var len = dstEndOffset - dstStartOffset | 0;
|
|
1302
|
-
var tmp0 = this.
|
|
1303
|
-
var tmp6 = this.
|
|
1302
|
+
var tmp0 = this.a3a_1;
|
|
1303
|
+
var tmp6 = this.b3a_1;
|
|
1304
1304
|
// Inline function 'kotlin.collections.copyInto' call
|
|
1305
|
-
var endIndex = this.
|
|
1305
|
+
var endIndex = this.b3a_1 + len | 0;
|
|
1306
1306
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1307
1307
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1308
1308
|
var tmp = tmp0;
|
|
1309
1309
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1310
1310
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1311
1311
|
arrayCopy(tmp, dst, dstStartOffset, tmp6, endIndex);
|
|
1312
|
-
this.
|
|
1312
|
+
this.b3a_1 = this.b3a_1 + len | 0;
|
|
1313
1313
|
};
|
|
1314
|
-
protoOf(Segment).
|
|
1315
|
-
var tmp2 = this.
|
|
1314
|
+
protoOf(Segment).h3b = function (src, srcStartOffset, srcEndOffset) {
|
|
1315
|
+
var tmp2 = this.a3a_1;
|
|
1316
1316
|
// Inline function 'kotlin.collections.copyInto' call
|
|
1317
|
-
var destinationOffset = this.
|
|
1317
|
+
var destinationOffset = this.c3a_1;
|
|
1318
1318
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1319
1319
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1320
1320
|
var tmp = src;
|
|
1321
1321
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1322
1322
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1323
1323
|
arrayCopy(tmp, tmp2, destinationOffset, srcStartOffset, srcEndOffset);
|
|
1324
|
-
this.
|
|
1324
|
+
this.c3a_1 = this.c3a_1 + (srcEndOffset - srcStartOffset | 0) | 0;
|
|
1325
1325
|
};
|
|
1326
1326
|
protoOf(Segment).s = function () {
|
|
1327
|
-
return this.
|
|
1327
|
+
return this.c3a_1 - this.b3a_1 | 0;
|
|
1328
1328
|
};
|
|
1329
|
-
protoOf(Segment).
|
|
1330
|
-
return this.
|
|
1329
|
+
protoOf(Segment).g3b = function () {
|
|
1330
|
+
return this.a3a_1.length - this.c3a_1 | 0;
|
|
1331
1331
|
};
|
|
1332
|
-
protoOf(Segment).
|
|
1333
|
-
return this.
|
|
1332
|
+
protoOf(Segment).o3c = function (readOnly) {
|
|
1333
|
+
return this.a3a_1;
|
|
1334
1334
|
};
|
|
1335
|
-
protoOf(Segment).
|
|
1336
|
-
return this.
|
|
1335
|
+
protoOf(Segment).s3a = function (index) {
|
|
1336
|
+
return this.a3a_1[this.b3a_1 + index | 0];
|
|
1337
1337
|
};
|
|
1338
|
-
protoOf(Segment).
|
|
1339
|
-
this.
|
|
1338
|
+
protoOf(Segment).p3c = function (index, value) {
|
|
1339
|
+
this.a3a_1[this.c3a_1 + index | 0] = value;
|
|
1340
1340
|
};
|
|
1341
|
-
protoOf(Segment).
|
|
1342
|
-
var d = this.
|
|
1343
|
-
var l = this.
|
|
1341
|
+
protoOf(Segment).q3c = function (index, b0, b1) {
|
|
1342
|
+
var d = this.a3a_1;
|
|
1343
|
+
var l = this.c3a_1;
|
|
1344
1344
|
d[l + index | 0] = b0;
|
|
1345
1345
|
d[(l + index | 0) + 1 | 0] = b1;
|
|
1346
1346
|
};
|
|
1347
|
-
protoOf(Segment).
|
|
1348
|
-
var d = this.
|
|
1349
|
-
var l = this.
|
|
1347
|
+
protoOf(Segment).r3c = function (index, b0, b1, b2) {
|
|
1348
|
+
var d = this.a3a_1;
|
|
1349
|
+
var l = this.c3a_1;
|
|
1350
1350
|
d[l + index | 0] = b0;
|
|
1351
1351
|
d[(l + index | 0) + 1 | 0] = b1;
|
|
1352
1352
|
d[(l + index | 0) + 2 | 0] = b2;
|
|
1353
1353
|
};
|
|
1354
|
-
protoOf(Segment).
|
|
1355
|
-
var d = this.
|
|
1356
|
-
var l = this.
|
|
1354
|
+
protoOf(Segment).s3c = function (index, b0, b1, b2, b3) {
|
|
1355
|
+
var d = this.a3a_1;
|
|
1356
|
+
var l = this.c3a_1;
|
|
1357
1357
|
d[l + index | 0] = b0;
|
|
1358
1358
|
d[(l + index | 0) + 1 | 0] = b1;
|
|
1359
1359
|
d[(l + index | 0) + 2 | 0] = b2;
|
|
1360
1360
|
d[(l + index | 0) + 3 | 0] = b3;
|
|
1361
1361
|
};
|
|
1362
1362
|
function Segment() {
|
|
1363
|
-
this.
|
|
1364
|
-
this.
|
|
1365
|
-
this.
|
|
1366
|
-
this.
|
|
1367
|
-
this.
|
|
1368
|
-
this.
|
|
1363
|
+
this.b3a_1 = 0;
|
|
1364
|
+
this.c3a_1 = 0;
|
|
1365
|
+
this.d3a_1 = null;
|
|
1366
|
+
this.e3a_1 = false;
|
|
1367
|
+
this.f3a_1 = null;
|
|
1368
|
+
this.g3a_1 = null;
|
|
1369
1369
|
}
|
|
1370
1370
|
function SegmentCopyTracker() {
|
|
1371
1371
|
}
|
|
@@ -1376,10 +1376,10 @@
|
|
|
1376
1376
|
AlwaysSharedCopyTracker_instance = this;
|
|
1377
1377
|
SegmentCopyTracker.call(this);
|
|
1378
1378
|
}
|
|
1379
|
-
protoOf(AlwaysSharedCopyTracker).
|
|
1379
|
+
protoOf(AlwaysSharedCopyTracker).l3c = function () {
|
|
1380
1380
|
return true;
|
|
1381
1381
|
};
|
|
1382
|
-
protoOf(AlwaysSharedCopyTracker).
|
|
1382
|
+
protoOf(AlwaysSharedCopyTracker).n3c = function () {
|
|
1383
1383
|
return Unit_instance;
|
|
1384
1384
|
};
|
|
1385
1385
|
var AlwaysSharedCopyTracker_instance;
|
|
@@ -1399,8 +1399,8 @@
|
|
|
1399
1399
|
var message_0 = '' + endOffset;
|
|
1400
1400
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
1401
1401
|
}
|
|
1402
|
-
var p = _this__u8e3s4.
|
|
1403
|
-
var data = _this__u8e3s4.
|
|
1402
|
+
var p = _this__u8e3s4.b3a_1;
|
|
1403
|
+
var data = _this__u8e3s4.o3c(true);
|
|
1404
1404
|
var inductionVariable = startOffset;
|
|
1405
1405
|
if (inductionVariable < endOffset)
|
|
1406
1406
|
do {
|
|
@@ -1424,21 +1424,21 @@
|
|
|
1424
1424
|
var arraySize = size;
|
|
1425
1425
|
if (size === -1) {
|
|
1426
1426
|
var fetchSize = new Long(2147483647, 0);
|
|
1427
|
-
while (_this__u8e3s4.
|
|
1427
|
+
while (_this__u8e3s4.v39().s().j1(new Long(2147483647, 0)) < 0 && _this__u8e3s4.y39(fetchSize)) {
|
|
1428
1428
|
// Inline function 'kotlin.Long.times' call
|
|
1429
1429
|
fetchSize = fetchSize.d3(toLong(2));
|
|
1430
1430
|
}
|
|
1431
1431
|
// Inline function 'kotlin.check' call
|
|
1432
|
-
if (!(_this__u8e3s4.
|
|
1433
|
-
var message = "Can't create an array of size " + _this__u8e3s4.
|
|
1432
|
+
if (!(_this__u8e3s4.v39().s().j1(new Long(2147483647, 0)) < 0)) {
|
|
1433
|
+
var message = "Can't create an array of size " + _this__u8e3s4.v39().s().toString();
|
|
1434
1434
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
1435
1435
|
}
|
|
1436
|
-
arraySize = _this__u8e3s4.
|
|
1436
|
+
arraySize = _this__u8e3s4.v39().s().l1();
|
|
1437
1437
|
} else {
|
|
1438
|
-
_this__u8e3s4.
|
|
1438
|
+
_this__u8e3s4.x39(toLong(size));
|
|
1439
1439
|
}
|
|
1440
1440
|
var array = new Int8Array(arraySize);
|
|
1441
|
-
readTo(_this__u8e3s4.
|
|
1441
|
+
readTo(_this__u8e3s4.v39(), array);
|
|
1442
1442
|
return array;
|
|
1443
1443
|
}
|
|
1444
1444
|
function readTo(_this__u8e3s4, sink, startIndex, endIndex) {
|
|
@@ -1449,7 +1449,7 @@
|
|
|
1449
1449
|
checkBounds(toLong(size), toLong(startIndex), toLong(endIndex));
|
|
1450
1450
|
var offset = startIndex;
|
|
1451
1451
|
while (offset < endIndex) {
|
|
1452
|
-
var bytesRead = _this__u8e3s4.
|
|
1452
|
+
var bytesRead = _this__u8e3s4.u3a(sink, offset, endIndex);
|
|
1453
1453
|
if (bytesRead === -1) {
|
|
1454
1454
|
throw EOFException_init_$Create$_0('Source exhausted before reading ' + (endIndex - startIndex | 0) + ' bytes. ' + ('Only ' + bytesRead + ' bytes were read.'));
|
|
1455
1455
|
}
|
|
@@ -1488,29 +1488,29 @@
|
|
|
1488
1488
|
if (offset.j1(endIndex) < 0) {
|
|
1489
1489
|
// Inline function 'kotlin.Long.plus' call
|
|
1490
1490
|
var tmp$ret$2 = offset.b3(toLong(1));
|
|
1491
|
-
tmp_0 = _this__u8e3s4.
|
|
1491
|
+
tmp_0 = _this__u8e3s4.y39(tmp$ret$2);
|
|
1492
1492
|
} else {
|
|
1493
1493
|
tmp_0 = false;
|
|
1494
1494
|
}
|
|
1495
1495
|
if (!tmp_0) {
|
|
1496
1496
|
break $l$loop;
|
|
1497
1497
|
}
|
|
1498
|
-
var tmp_1 = _this__u8e3s4.
|
|
1498
|
+
var tmp_1 = _this__u8e3s4.v39();
|
|
1499
1499
|
var tmp_2 = offset;
|
|
1500
1500
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
1501
|
-
var b = _this__u8e3s4.
|
|
1501
|
+
var b = _this__u8e3s4.v39().s();
|
|
1502
1502
|
var tmp$ret$3 = endIndex.j1(b) <= 0 ? endIndex : b;
|
|
1503
1503
|
var idx = indexOf(tmp_1, byte, tmp_2, tmp$ret$3);
|
|
1504
1504
|
if (!idx.equals(new Long(-1, -1))) {
|
|
1505
1505
|
return idx;
|
|
1506
1506
|
}
|
|
1507
|
-
offset = _this__u8e3s4.
|
|
1507
|
+
offset = _this__u8e3s4.v39().s();
|
|
1508
1508
|
}
|
|
1509
1509
|
return new Long(-1, -1);
|
|
1510
1510
|
}
|
|
1511
1511
|
function readString(_this__u8e3s4) {
|
|
1512
|
-
_this__u8e3s4.
|
|
1513
|
-
return commonReadUtf8(_this__u8e3s4.
|
|
1512
|
+
_this__u8e3s4.y39(new Long(-1, 2147483647));
|
|
1513
|
+
return commonReadUtf8(_this__u8e3s4.v39(), _this__u8e3s4.v39().s());
|
|
1514
1514
|
}
|
|
1515
1515
|
function writeString(_this__u8e3s4, string, startIndex, endIndex) {
|
|
1516
1516
|
startIndex = startIndex === VOID ? 0 : startIndex;
|
|
@@ -1520,7 +1520,7 @@
|
|
|
1520
1520
|
checkBounds(toLong(size), toLong(startIndex), toLong(endIndex));
|
|
1521
1521
|
// Inline function 'kotlinx.io.writeToInternalBuffer' call
|
|
1522
1522
|
// Inline function 'kotlinx.io.commonWriteUtf8' call
|
|
1523
|
-
var this_0 = _this__u8e3s4.
|
|
1523
|
+
var this_0 = _this__u8e3s4.v39();
|
|
1524
1524
|
var i = startIndex;
|
|
1525
1525
|
while (i < endIndex) {
|
|
1526
1526
|
var p0 = i;
|
|
@@ -1530,15 +1530,15 @@
|
|
|
1530
1530
|
if (c < 128) {
|
|
1531
1531
|
$l$block_0: {
|
|
1532
1532
|
// Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.writeToTail' call
|
|
1533
|
-
var tail = this_0.
|
|
1533
|
+
var tail = this_0.b3b(1);
|
|
1534
1534
|
var ctx = get_SegmentWriteContextImpl();
|
|
1535
1535
|
var segmentOffset = -i | 0;
|
|
1536
1536
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
1537
|
-
var b = i + tail.
|
|
1537
|
+
var b = i + tail.g3b() | 0;
|
|
1538
1538
|
var runLimit = Math.min(endIndex, b);
|
|
1539
1539
|
var _unary__edvuaz = i;
|
|
1540
1540
|
i = _unary__edvuaz + 1 | 0;
|
|
1541
|
-
ctx.
|
|
1541
|
+
ctx.w3c(tail, segmentOffset + _unary__edvuaz | 0, toByte(c));
|
|
1542
1542
|
$l$loop: while (i < runLimit) {
|
|
1543
1543
|
var p0_0 = i;
|
|
1544
1544
|
// Inline function 'kotlin.code' call
|
|
@@ -1548,89 +1548,89 @@
|
|
|
1548
1548
|
break $l$loop;
|
|
1549
1549
|
var _unary__edvuaz_0 = i;
|
|
1550
1550
|
i = _unary__edvuaz_0 + 1 | 0;
|
|
1551
|
-
ctx.
|
|
1551
|
+
ctx.w3c(tail, segmentOffset + _unary__edvuaz_0 | 0, toByte(c));
|
|
1552
1552
|
}
|
|
1553
1553
|
var bytesWritten = i + segmentOffset | 0;
|
|
1554
1554
|
if (bytesWritten === 1) {
|
|
1555
|
-
tail.
|
|
1555
|
+
tail.c3a_1 = tail.c3a_1 + bytesWritten | 0;
|
|
1556
1556
|
var tmp = this_0;
|
|
1557
1557
|
// Inline function 'kotlin.Long.plus' call
|
|
1558
|
-
tmp.
|
|
1558
|
+
tmp.u39_1 = this_0.u39_1.b3(toLong(bytesWritten));
|
|
1559
1559
|
break $l$block_0;
|
|
1560
1560
|
}
|
|
1561
1561
|
// Inline function 'kotlin.check' call
|
|
1562
|
-
if (!(0 <= bytesWritten ? bytesWritten <= tail.
|
|
1563
|
-
var message = 'Invalid number of bytes written: ' + bytesWritten + '. Should be in 0..' + tail.
|
|
1562
|
+
if (!(0 <= bytesWritten ? bytesWritten <= tail.g3b() : false)) {
|
|
1563
|
+
var message = 'Invalid number of bytes written: ' + bytesWritten + '. Should be in 0..' + tail.g3b();
|
|
1564
1564
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
1565
1565
|
}
|
|
1566
1566
|
if (!(bytesWritten === 0)) {
|
|
1567
|
-
tail.
|
|
1567
|
+
tail.c3a_1 = tail.c3a_1 + bytesWritten | 0;
|
|
1568
1568
|
var tmp_0 = this_0;
|
|
1569
1569
|
// Inline function 'kotlin.Long.plus' call
|
|
1570
|
-
tmp_0.
|
|
1570
|
+
tmp_0.u39_1 = this_0.u39_1.b3(toLong(bytesWritten));
|
|
1571
1571
|
break $l$block_0;
|
|
1572
1572
|
}
|
|
1573
1573
|
if (isEmpty(tail)) {
|
|
1574
|
-
this_0.
|
|
1574
|
+
this_0.v3b();
|
|
1575
1575
|
}
|
|
1576
1576
|
}
|
|
1577
1577
|
} else if (c < 2048) {
|
|
1578
1578
|
$l$block_2: {
|
|
1579
1579
|
// Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.writeToTail' call
|
|
1580
|
-
var tail_0 = this_0.
|
|
1581
|
-
get_SegmentWriteContextImpl().
|
|
1580
|
+
var tail_0 = this_0.b3b(2);
|
|
1581
|
+
get_SegmentWriteContextImpl().v3c(tail_0, 0, toByte(c >> 6 | 192), toByte(c & 63 | 128));
|
|
1582
1582
|
var bytesWritten_0 = 2;
|
|
1583
1583
|
if (bytesWritten_0 === 2) {
|
|
1584
|
-
tail_0.
|
|
1584
|
+
tail_0.c3a_1 = tail_0.c3a_1 + bytesWritten_0 | 0;
|
|
1585
1585
|
var tmp_1 = this_0;
|
|
1586
1586
|
// Inline function 'kotlin.Long.plus' call
|
|
1587
|
-
tmp_1.
|
|
1587
|
+
tmp_1.u39_1 = this_0.u39_1.b3(toLong(bytesWritten_0));
|
|
1588
1588
|
break $l$block_2;
|
|
1589
1589
|
}
|
|
1590
1590
|
// Inline function 'kotlin.check' call
|
|
1591
|
-
if (!(0 <= bytesWritten_0 ? bytesWritten_0 <= tail_0.
|
|
1592
|
-
var message_0 = 'Invalid number of bytes written: ' + bytesWritten_0 + '. Should be in 0..' + tail_0.
|
|
1591
|
+
if (!(0 <= bytesWritten_0 ? bytesWritten_0 <= tail_0.g3b() : false)) {
|
|
1592
|
+
var message_0 = 'Invalid number of bytes written: ' + bytesWritten_0 + '. Should be in 0..' + tail_0.g3b();
|
|
1593
1593
|
throw IllegalStateException_init_$Create$(toString(message_0));
|
|
1594
1594
|
}
|
|
1595
1595
|
if (!(bytesWritten_0 === 0)) {
|
|
1596
|
-
tail_0.
|
|
1596
|
+
tail_0.c3a_1 = tail_0.c3a_1 + bytesWritten_0 | 0;
|
|
1597
1597
|
var tmp_2 = this_0;
|
|
1598
1598
|
// Inline function 'kotlin.Long.plus' call
|
|
1599
|
-
tmp_2.
|
|
1599
|
+
tmp_2.u39_1 = this_0.u39_1.b3(toLong(bytesWritten_0));
|
|
1600
1600
|
break $l$block_2;
|
|
1601
1601
|
}
|
|
1602
1602
|
if (isEmpty(tail_0)) {
|
|
1603
|
-
this_0.
|
|
1603
|
+
this_0.v3b();
|
|
1604
1604
|
}
|
|
1605
1605
|
}
|
|
1606
1606
|
i = i + 1 | 0;
|
|
1607
1607
|
} else if (c < 55296 || c > 57343) {
|
|
1608
1608
|
$l$block_4: {
|
|
1609
1609
|
// Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.writeToTail' call
|
|
1610
|
-
var tail_1 = this_0.
|
|
1611
|
-
get_SegmentWriteContextImpl().
|
|
1610
|
+
var tail_1 = this_0.b3b(3);
|
|
1611
|
+
get_SegmentWriteContextImpl().u3c(tail_1, 0, toByte(c >> 12 | 224), toByte(c >> 6 & 63 | 128), toByte(c & 63 | 128));
|
|
1612
1612
|
var bytesWritten_1 = 3;
|
|
1613
1613
|
if (bytesWritten_1 === 3) {
|
|
1614
|
-
tail_1.
|
|
1614
|
+
tail_1.c3a_1 = tail_1.c3a_1 + bytesWritten_1 | 0;
|
|
1615
1615
|
var tmp_3 = this_0;
|
|
1616
1616
|
// Inline function 'kotlin.Long.plus' call
|
|
1617
|
-
tmp_3.
|
|
1617
|
+
tmp_3.u39_1 = this_0.u39_1.b3(toLong(bytesWritten_1));
|
|
1618
1618
|
break $l$block_4;
|
|
1619
1619
|
}
|
|
1620
1620
|
// Inline function 'kotlin.check' call
|
|
1621
|
-
if (!(0 <= bytesWritten_1 ? bytesWritten_1 <= tail_1.
|
|
1622
|
-
var message_1 = 'Invalid number of bytes written: ' + bytesWritten_1 + '. Should be in 0..' + tail_1.
|
|
1621
|
+
if (!(0 <= bytesWritten_1 ? bytesWritten_1 <= tail_1.g3b() : false)) {
|
|
1622
|
+
var message_1 = 'Invalid number of bytes written: ' + bytesWritten_1 + '. Should be in 0..' + tail_1.g3b();
|
|
1623
1623
|
throw IllegalStateException_init_$Create$(toString(message_1));
|
|
1624
1624
|
}
|
|
1625
1625
|
if (!(bytesWritten_1 === 0)) {
|
|
1626
|
-
tail_1.
|
|
1626
|
+
tail_1.c3a_1 = tail_1.c3a_1 + bytesWritten_1 | 0;
|
|
1627
1627
|
var tmp_4 = this_0;
|
|
1628
1628
|
// Inline function 'kotlin.Long.plus' call
|
|
1629
|
-
tmp_4.
|
|
1629
|
+
tmp_4.u39_1 = this_0.u39_1.b3(toLong(bytesWritten_1));
|
|
1630
1630
|
break $l$block_4;
|
|
1631
1631
|
}
|
|
1632
1632
|
if (isEmpty(tail_1)) {
|
|
1633
|
-
this_0.
|
|
1633
|
+
this_0.v3b();
|
|
1634
1634
|
}
|
|
1635
1635
|
}
|
|
1636
1636
|
i = i + 1 | 0;
|
|
@@ -1649,62 +1649,62 @@
|
|
|
1649
1649
|
// Inline function 'kotlin.code' call
|
|
1650
1650
|
var this_4 = _Char___init__impl__6a9atx(63);
|
|
1651
1651
|
var tmp$ret$26 = Char__toInt_impl_vasixd(this_4);
|
|
1652
|
-
this_0.
|
|
1652
|
+
this_0.p3b(toByte(tmp$ret$26));
|
|
1653
1653
|
i = i + 1 | 0;
|
|
1654
1654
|
} else {
|
|
1655
1655
|
var codePoint = 65536 + ((c & 1023) << 10 | low & 1023) | 0;
|
|
1656
1656
|
$l$block_6: {
|
|
1657
1657
|
// Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.writeToTail' call
|
|
1658
|
-
var tail_2 = this_0.
|
|
1659
|
-
get_SegmentWriteContextImpl().
|
|
1658
|
+
var tail_2 = this_0.b3b(4);
|
|
1659
|
+
get_SegmentWriteContextImpl().t3c(tail_2, 0, toByte(codePoint >> 18 | 240), toByte(codePoint >> 12 & 63 | 128), toByte(codePoint >> 6 & 63 | 128), toByte(codePoint & 63 | 128));
|
|
1660
1660
|
var bytesWritten_2 = 4;
|
|
1661
1661
|
if (bytesWritten_2 === 4) {
|
|
1662
|
-
tail_2.
|
|
1662
|
+
tail_2.c3a_1 = tail_2.c3a_1 + bytesWritten_2 | 0;
|
|
1663
1663
|
var tmp_6 = this_0;
|
|
1664
1664
|
// Inline function 'kotlin.Long.plus' call
|
|
1665
|
-
tmp_6.
|
|
1665
|
+
tmp_6.u39_1 = this_0.u39_1.b3(toLong(bytesWritten_2));
|
|
1666
1666
|
break $l$block_6;
|
|
1667
1667
|
}
|
|
1668
1668
|
// Inline function 'kotlin.check' call
|
|
1669
|
-
if (!(0 <= bytesWritten_2 ? bytesWritten_2 <= tail_2.
|
|
1670
|
-
var message_2 = 'Invalid number of bytes written: ' + bytesWritten_2 + '. Should be in 0..' + tail_2.
|
|
1669
|
+
if (!(0 <= bytesWritten_2 ? bytesWritten_2 <= tail_2.g3b() : false)) {
|
|
1670
|
+
var message_2 = 'Invalid number of bytes written: ' + bytesWritten_2 + '. Should be in 0..' + tail_2.g3b();
|
|
1671
1671
|
throw IllegalStateException_init_$Create$(toString(message_2));
|
|
1672
1672
|
}
|
|
1673
1673
|
if (!(bytesWritten_2 === 0)) {
|
|
1674
|
-
tail_2.
|
|
1674
|
+
tail_2.c3a_1 = tail_2.c3a_1 + bytesWritten_2 | 0;
|
|
1675
1675
|
var tmp_7 = this_0;
|
|
1676
1676
|
// Inline function 'kotlin.Long.plus' call
|
|
1677
|
-
tmp_7.
|
|
1677
|
+
tmp_7.u39_1 = this_0.u39_1.b3(toLong(bytesWritten_2));
|
|
1678
1678
|
break $l$block_6;
|
|
1679
1679
|
}
|
|
1680
1680
|
if (isEmpty(tail_2)) {
|
|
1681
|
-
this_0.
|
|
1681
|
+
this_0.v3b();
|
|
1682
1682
|
}
|
|
1683
1683
|
}
|
|
1684
1684
|
i = i + 2 | 0;
|
|
1685
1685
|
}
|
|
1686
1686
|
}
|
|
1687
1687
|
}
|
|
1688
|
-
_this__u8e3s4.
|
|
1688
|
+
_this__u8e3s4.l3a();
|
|
1689
1689
|
}
|
|
1690
1690
|
function commonReadUtf8(_this__u8e3s4, byteCount) {
|
|
1691
1691
|
if (byteCount.equals(new Long(0, 0)))
|
|
1692
1692
|
return '';
|
|
1693
1693
|
// Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.forEachSegment' call
|
|
1694
|
-
var curr = _this__u8e3s4.
|
|
1694
|
+
var curr = _this__u8e3s4.s39_1;
|
|
1695
1695
|
while (!(curr == null)) {
|
|
1696
1696
|
get_SegmentReadContextImpl();
|
|
1697
1697
|
if (toLong(curr.s()).j1(byteCount) >= 0) {
|
|
1698
1698
|
var result = '';
|
|
1699
1699
|
// Inline function 'kotlinx.io.unsafe.withData' call
|
|
1700
|
-
var tmp0 = curr.
|
|
1701
|
-
var tmp2 = curr.
|
|
1702
|
-
var tmp0_0 = curr.
|
|
1700
|
+
var tmp0 = curr.o3c(true);
|
|
1701
|
+
var tmp2 = curr.b3a_1;
|
|
1702
|
+
var tmp0_0 = curr.c3a_1;
|
|
1703
1703
|
// Inline function 'kotlin.math.min' call
|
|
1704
1704
|
var b = tmp2 + byteCount.l1() | 0;
|
|
1705
1705
|
var tmp$ret$0 = Math.min(tmp0_0, b);
|
|
1706
1706
|
result = commonToUtf8String(tmp0, tmp2, tmp$ret$0);
|
|
1707
|
-
_this__u8e3s4.
|
|
1707
|
+
_this__u8e3s4.t3a(byteCount);
|
|
1708
1708
|
return result;
|
|
1709
1709
|
}
|
|
1710
1710
|
return commonToUtf8String(readByteArray_0(_this__u8e3s4, byteCount.l1()));
|
|
@@ -1714,8 +1714,8 @@
|
|
|
1714
1714
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
1715
1715
|
}
|
|
1716
1716
|
function readString_0(_this__u8e3s4, byteCount) {
|
|
1717
|
-
_this__u8e3s4.
|
|
1718
|
-
return commonReadUtf8(_this__u8e3s4.
|
|
1717
|
+
_this__u8e3s4.x39(byteCount);
|
|
1718
|
+
return commonReadUtf8(_this__u8e3s4.v39(), byteCount);
|
|
1719
1719
|
}
|
|
1720
1720
|
function readString_1(_this__u8e3s4) {
|
|
1721
1721
|
return commonReadUtf8(_this__u8e3s4, _this__u8e3s4.s());
|
|
@@ -1728,9 +1728,9 @@
|
|
|
1728
1728
|
isRegularFile = isRegularFile === VOID ? false : isRegularFile;
|
|
1729
1729
|
isDirectory = isDirectory === VOID ? false : isDirectory;
|
|
1730
1730
|
size = size === VOID ? new Long(0, 0) : size;
|
|
1731
|
-
this.
|
|
1732
|
-
this.
|
|
1733
|
-
this.
|
|
1731
|
+
this.i3d_1 = isRegularFile;
|
|
1732
|
+
this.j3d_1 = isDirectory;
|
|
1733
|
+
this.k3d_1 = size;
|
|
1734
1734
|
}
|
|
1735
1735
|
function Path(base, parts) {
|
|
1736
1736
|
return Path_0(base.toString(), parts.slice());
|
|
@@ -2177,27 +2177,27 @@
|
|
|
2177
2177
|
}
|
|
2178
2178
|
function SegmentReadContextImpl$1() {
|
|
2179
2179
|
}
|
|
2180
|
-
protoOf(SegmentReadContextImpl$1).
|
|
2181
|
-
return segment.
|
|
2180
|
+
protoOf(SegmentReadContextImpl$1).t3b = function (segment, offset) {
|
|
2181
|
+
return segment.s3a(offset);
|
|
2182
2182
|
};
|
|
2183
2183
|
function SegmentWriteContextImpl$1() {
|
|
2184
2184
|
}
|
|
2185
|
-
protoOf(SegmentWriteContextImpl$1).
|
|
2186
|
-
segment.
|
|
2185
|
+
protoOf(SegmentWriteContextImpl$1).w3c = function (segment, offset, value) {
|
|
2186
|
+
segment.p3c(offset, value);
|
|
2187
2187
|
};
|
|
2188
|
-
protoOf(SegmentWriteContextImpl$1).
|
|
2189
|
-
segment.
|
|
2188
|
+
protoOf(SegmentWriteContextImpl$1).v3c = function (segment, offset, b0, b1) {
|
|
2189
|
+
segment.q3c(offset, b0, b1);
|
|
2190
2190
|
};
|
|
2191
|
-
protoOf(SegmentWriteContextImpl$1).
|
|
2192
|
-
segment.
|
|
2191
|
+
protoOf(SegmentWriteContextImpl$1).u3c = function (segment, offset, b0, b1, b2) {
|
|
2192
|
+
segment.r3c(offset, b0, b1, b2);
|
|
2193
2193
|
};
|
|
2194
|
-
protoOf(SegmentWriteContextImpl$1).
|
|
2195
|
-
segment.
|
|
2194
|
+
protoOf(SegmentWriteContextImpl$1).t3c = function (segment, offset, b0, b1, b2, b3) {
|
|
2195
|
+
segment.s3c(offset, b0, b1, b2, b3);
|
|
2196
2196
|
};
|
|
2197
2197
|
function BufferIterationContextImpl$1() {
|
|
2198
2198
|
}
|
|
2199
|
-
protoOf(BufferIterationContextImpl$1).
|
|
2200
|
-
return get_SegmentReadContextImpl().
|
|
2199
|
+
protoOf(BufferIterationContextImpl$1).t3b = function (segment, offset) {
|
|
2200
|
+
return get_SegmentReadContextImpl().t3b(segment, offset);
|
|
2201
2201
|
};
|
|
2202
2202
|
var properties_initialized_UnsafeBufferOperations_kt_2xfgoc;
|
|
2203
2203
|
function _init_properties_UnsafeBufferOperations_kt__xw75gy() {
|
|
@@ -2278,15 +2278,15 @@
|
|
|
2278
2278
|
captureStack(this, EOFException);
|
|
2279
2279
|
}
|
|
2280
2280
|
function SegmentPool() {
|
|
2281
|
-
this.
|
|
2282
|
-
this.
|
|
2281
|
+
this.c3b_1 = 0;
|
|
2282
|
+
this.d3b_1 = 0;
|
|
2283
2283
|
}
|
|
2284
|
-
protoOf(SegmentPool).
|
|
2285
|
-
return Companion_instance.
|
|
2284
|
+
protoOf(SegmentPool).e3b = function () {
|
|
2285
|
+
return Companion_instance.k3c();
|
|
2286
2286
|
};
|
|
2287
|
-
protoOf(SegmentPool).
|
|
2287
|
+
protoOf(SegmentPool).u3b = function (segment) {
|
|
2288
2288
|
};
|
|
2289
|
-
protoOf(SegmentPool).
|
|
2289
|
+
protoOf(SegmentPool).m3c = function () {
|
|
2290
2290
|
return AlwaysSharedCopyTracker_getInstance();
|
|
2291
2291
|
};
|
|
2292
2292
|
var SegmentPool_instance;
|
|
@@ -2439,7 +2439,7 @@
|
|
|
2439
2439
|
}
|
|
2440
2440
|
function SystemFileSystem$o$delete$lambda($path) {
|
|
2441
2441
|
return function () {
|
|
2442
|
-
var tmp0_elvis_lhs = get_fs().statSync($path.
|
|
2442
|
+
var tmp0_elvis_lhs = get_fs().statSync($path.l3d_1);
|
|
2443
2443
|
var tmp;
|
|
2444
2444
|
if (tmp0_elvis_lhs == null) {
|
|
2445
2445
|
throw new FileNotFoundException('File does not exist: ' + $path.toString());
|
|
@@ -2449,10 +2449,10 @@
|
|
|
2449
2449
|
var stats = tmp;
|
|
2450
2450
|
var tmp_0;
|
|
2451
2451
|
if (stats.isDirectory()) {
|
|
2452
|
-
get_fs().rmdirSync($path.
|
|
2452
|
+
get_fs().rmdirSync($path.l3d_1);
|
|
2453
2453
|
tmp_0 = Unit_instance;
|
|
2454
2454
|
} else {
|
|
2455
|
-
get_fs().rmSync($path.
|
|
2455
|
+
get_fs().rmSync($path.l3d_1);
|
|
2456
2456
|
tmp_0 = Unit_instance;
|
|
2457
2457
|
}
|
|
2458
2458
|
return Unit_instance;
|
|
@@ -2460,7 +2460,7 @@
|
|
|
2460
2460
|
}
|
|
2461
2461
|
function SystemFileSystem$o$metadataOrNull$lambda($path, $metadata) {
|
|
2462
2462
|
return function () {
|
|
2463
|
-
var tmp0_elvis_lhs = get_fs().statSync($path.
|
|
2463
|
+
var tmp0_elvis_lhs = get_fs().statSync($path.l3d_1);
|
|
2464
2464
|
var tmp;
|
|
2465
2465
|
if (tmp0_elvis_lhs == null) {
|
|
2466
2466
|
return Unit_instance;
|
|
@@ -2477,11 +2477,11 @@
|
|
|
2477
2477
|
function SystemFileSystem$1() {
|
|
2478
2478
|
SystemFileSystemImpl.call(this);
|
|
2479
2479
|
}
|
|
2480
|
-
protoOf(SystemFileSystem$1).
|
|
2481
|
-
return get_fs().existsSync(path.
|
|
2480
|
+
protoOf(SystemFileSystem$1).x3c = function (path) {
|
|
2481
|
+
return get_fs().existsSync(path.l3d_1);
|
|
2482
2482
|
};
|
|
2483
|
-
protoOf(SystemFileSystem$1).
|
|
2484
|
-
if (!this.
|
|
2483
|
+
protoOf(SystemFileSystem$1).y3c = function (path, mustExist) {
|
|
2484
|
+
if (!this.x3c(path)) {
|
|
2485
2485
|
if (mustExist) {
|
|
2486
2486
|
throw new FileNotFoundException('File does not exist: ' + path.toString());
|
|
2487
2487
|
}
|
|
@@ -2495,13 +2495,13 @@
|
|
|
2495
2495
|
throw IOException_init_$Create$_1('Delete failed for ' + path.toString(), tmp0_safe_receiver);
|
|
2496
2496
|
}
|
|
2497
2497
|
};
|
|
2498
|
-
protoOf(SystemFileSystem$1).
|
|
2499
|
-
var metadata = this.
|
|
2498
|
+
protoOf(SystemFileSystem$1).a3d = function (path, mustCreate) {
|
|
2499
|
+
var metadata = this.f3d(path);
|
|
2500
2500
|
if (!(metadata == null)) {
|
|
2501
2501
|
if (mustCreate) {
|
|
2502
2502
|
throw IOException_init_$Create$_0('Path already exists: ' + path.toString());
|
|
2503
2503
|
}
|
|
2504
|
-
if (metadata.
|
|
2504
|
+
if (metadata.i3d_1) {
|
|
2505
2505
|
throw IOException_init_$Create$_0("Path already exists and it's a file: " + path.toString());
|
|
2506
2506
|
}
|
|
2507
2507
|
return Unit_instance;
|
|
@@ -2509,7 +2509,7 @@
|
|
|
2509
2509
|
// Inline function 'kotlin.collections.arrayListOf' call
|
|
2510
2510
|
var parts = ArrayList_init_$Create$();
|
|
2511
2511
|
var p = path;
|
|
2512
|
-
while (!(p == null) && !this.
|
|
2512
|
+
while (!(p == null) && !this.x3c(p)) {
|
|
2513
2513
|
parts.h(p.toString());
|
|
2514
2514
|
p = p.t1w();
|
|
2515
2515
|
}
|
|
@@ -2520,8 +2520,8 @@
|
|
|
2520
2520
|
get_fs().mkdirSync(element);
|
|
2521
2521
|
}
|
|
2522
2522
|
};
|
|
2523
|
-
protoOf(SystemFileSystem$1).
|
|
2524
|
-
if (!this.
|
|
2523
|
+
protoOf(SystemFileSystem$1).f3d = function (path) {
|
|
2524
|
+
if (!this.x3c(path))
|
|
2525
2525
|
return null;
|
|
2526
2526
|
var metadata = {_v: null};
|
|
2527
2527
|
var tmp0_safe_receiver = withCaughtException(SystemFileSystem$o$metadataOrNull$lambda(path, metadata));
|
|
@@ -2533,32 +2533,32 @@
|
|
|
2533
2533
|
}
|
|
2534
2534
|
return metadata._v;
|
|
2535
2535
|
};
|
|
2536
|
-
protoOf(SystemFileSystem$1).
|
|
2536
|
+
protoOf(SystemFileSystem$1).c3d = function (path) {
|
|
2537
2537
|
return new FileSource(path);
|
|
2538
2538
|
};
|
|
2539
|
-
protoOf(SystemFileSystem$1).
|
|
2539
|
+
protoOf(SystemFileSystem$1).d3d = function (path, append) {
|
|
2540
2540
|
return new FileSink(path, append);
|
|
2541
2541
|
};
|
|
2542
|
-
protoOf(SystemFileSystem$1).
|
|
2543
|
-
if (!this.
|
|
2544
|
-
throw new FileNotFoundException(path.
|
|
2545
|
-
return Path_2(get_fs().realpathSync.native(path.
|
|
2542
|
+
protoOf(SystemFileSystem$1).g3d = function (path) {
|
|
2543
|
+
if (!this.x3c(path))
|
|
2544
|
+
throw new FileNotFoundException(path.l3d_1);
|
|
2545
|
+
return Path_2(get_fs().realpathSync.native(path.l3d_1));
|
|
2546
2546
|
};
|
|
2547
|
-
protoOf(SystemFileSystem$1).
|
|
2548
|
-
var tmp0_elvis_lhs = this.
|
|
2547
|
+
protoOf(SystemFileSystem$1).h3d = function (directory) {
|
|
2548
|
+
var tmp0_elvis_lhs = this.f3d(directory);
|
|
2549
2549
|
var tmp;
|
|
2550
2550
|
if (tmp0_elvis_lhs == null) {
|
|
2551
|
-
throw new FileNotFoundException(directory.
|
|
2551
|
+
throw new FileNotFoundException(directory.l3d_1);
|
|
2552
2552
|
} else {
|
|
2553
2553
|
tmp = tmp0_elvis_lhs;
|
|
2554
2554
|
}
|
|
2555
2555
|
var metadata = tmp;
|
|
2556
|
-
if (!metadata.
|
|
2557
|
-
throw IOException_init_$Create$_0('Not a directory: ' + directory.
|
|
2558
|
-
var tmp1_elvis_lhs = get_fs().opendirSync(directory.
|
|
2556
|
+
if (!metadata.j3d_1)
|
|
2557
|
+
throw IOException_init_$Create$_0('Not a directory: ' + directory.l3d_1);
|
|
2558
|
+
var tmp1_elvis_lhs = get_fs().opendirSync(directory.l3d_1);
|
|
2559
2559
|
var tmp_0;
|
|
2560
2560
|
if (tmp1_elvis_lhs == null) {
|
|
2561
|
-
throw IOException_init_$Create$_0('Unable to read directory: ' + directory.
|
|
2561
|
+
throw IOException_init_$Create$_0('Unable to read directory: ' + directory.l3d_1);
|
|
2562
2562
|
} else {
|
|
2563
2563
|
tmp_0 = tmp1_elvis_lhs;
|
|
2564
2564
|
}
|
|
@@ -2596,27 +2596,27 @@
|
|
|
2596
2596
|
}
|
|
2597
2597
|
var SystemPathSeparator$delegate;
|
|
2598
2598
|
function Path_1(rawPath, any) {
|
|
2599
|
-
this.
|
|
2599
|
+
this.l3d_1 = removeTrailingSeparators(rawPath);
|
|
2600
2600
|
}
|
|
2601
2601
|
protoOf(Path_1).t1w = function () {
|
|
2602
2602
|
// Inline function 'kotlin.text.isEmpty' call
|
|
2603
|
-
var this_0 = this.
|
|
2603
|
+
var this_0 = this.l3d_1;
|
|
2604
2604
|
if (charSequenceLength(this_0) === 0)
|
|
2605
2605
|
return null;
|
|
2606
2606
|
if (get_isWindows()) {
|
|
2607
|
-
if (!contains(this.
|
|
2607
|
+
if (!contains(this.l3d_1, _Char___init__impl__6a9atx(47)) && !contains(this.l3d_1, _Char___init__impl__6a9atx(92))) {
|
|
2608
2608
|
return null;
|
|
2609
2609
|
}
|
|
2610
|
-
} else if (!contains(this.
|
|
2610
|
+
} else if (!contains(this.l3d_1, get_SystemPathSeparator())) {
|
|
2611
2611
|
return null;
|
|
2612
2612
|
}
|
|
2613
|
-
var p = get_path().dirname(this.
|
|
2613
|
+
var p = get_path().dirname(this.l3d_1);
|
|
2614
2614
|
var tmp;
|
|
2615
2615
|
// Inline function 'kotlin.text.isEmpty' call
|
|
2616
2616
|
if (charSequenceLength(p) === 0) {
|
|
2617
2617
|
tmp = null;
|
|
2618
2618
|
} else {
|
|
2619
|
-
if (p === this.
|
|
2619
|
+
if (p === this.l3d_1) {
|
|
2620
2620
|
tmp = null;
|
|
2621
2621
|
} else {
|
|
2622
2622
|
tmp = Path_2(p);
|
|
@@ -2624,12 +2624,12 @@
|
|
|
2624
2624
|
}
|
|
2625
2625
|
return tmp;
|
|
2626
2626
|
};
|
|
2627
|
-
protoOf(Path_1).
|
|
2627
|
+
protoOf(Path_1).m3d = function () {
|
|
2628
2628
|
// Inline function 'kotlin.text.isEmpty' call
|
|
2629
|
-
var this_0 = this.
|
|
2629
|
+
var this_0 = this.l3d_1;
|
|
2630
2630
|
if (charSequenceLength(this_0) === 0)
|
|
2631
2631
|
return '';
|
|
2632
|
-
var p = get_path().basename(this.
|
|
2632
|
+
var p = get_path().basename(this.l3d_1);
|
|
2633
2633
|
var tmp;
|
|
2634
2634
|
// Inline function 'kotlin.text.isEmpty' call
|
|
2635
2635
|
if (charSequenceLength(p) === 0) {
|
|
@@ -2640,21 +2640,21 @@
|
|
|
2640
2640
|
return tmp;
|
|
2641
2641
|
};
|
|
2642
2642
|
protoOf(Path_1).toString = function () {
|
|
2643
|
-
return this.
|
|
2643
|
+
return this.l3d_1;
|
|
2644
2644
|
};
|
|
2645
2645
|
protoOf(Path_1).equals = function (other) {
|
|
2646
2646
|
if (this === other)
|
|
2647
2647
|
return true;
|
|
2648
2648
|
if (!(other instanceof Path_1))
|
|
2649
2649
|
return false;
|
|
2650
|
-
return this.
|
|
2650
|
+
return this.l3d_1 === other.l3d_1;
|
|
2651
2651
|
};
|
|
2652
2652
|
protoOf(Path_1).hashCode = function () {
|
|
2653
|
-
return getStringHashCode(this.
|
|
2653
|
+
return getStringHashCode(this.l3d_1);
|
|
2654
2654
|
};
|
|
2655
2655
|
function open($this, path) {
|
|
2656
|
-
if (!get_fs().existsSync(path.
|
|
2657
|
-
throw new FileNotFoundException('File does not exist: ' + path.
|
|
2656
|
+
if (!get_fs().existsSync(path.l3d_1)) {
|
|
2657
|
+
throw new FileNotFoundException('File does not exist: ' + path.l3d_1);
|
|
2658
2658
|
}
|
|
2659
2659
|
var fd = {_v: -1};
|
|
2660
2660
|
var tmp0_safe_receiver = withCaughtException(FileSource$open$lambda(fd, path));
|
|
@@ -2662,55 +2662,55 @@
|
|
|
2662
2662
|
null;
|
|
2663
2663
|
else {
|
|
2664
2664
|
// Inline function 'kotlin.also' call
|
|
2665
|
-
throw IOException_init_$Create$_1('Failed to open a file ' + path.
|
|
2665
|
+
throw IOException_init_$Create$_1('Failed to open a file ' + path.l3d_1 + '.', tmp0_safe_receiver);
|
|
2666
2666
|
}
|
|
2667
2667
|
if (fd._v < 0)
|
|
2668
|
-
throw IOException_init_$Create$_0('Failed to open a file ' + path.
|
|
2668
|
+
throw IOException_init_$Create$_0('Failed to open a file ' + path.l3d_1 + '.');
|
|
2669
2669
|
return fd._v;
|
|
2670
2670
|
}
|
|
2671
2671
|
function FileSource$open$lambda($fd, $path) {
|
|
2672
2672
|
return function () {
|
|
2673
|
-
$fd._v = get_fs().openSync($path.
|
|
2673
|
+
$fd._v = get_fs().openSync($path.l3d_1, 'r');
|
|
2674
2674
|
return Unit_instance;
|
|
2675
2675
|
};
|
|
2676
2676
|
}
|
|
2677
2677
|
function FileSource$readAtMostTo$lambda(this$0) {
|
|
2678
2678
|
return function () {
|
|
2679
|
-
this$0.
|
|
2679
|
+
this$0.o3d_1 = get_fs().readFileSync(this$0.r3d_1, null);
|
|
2680
2680
|
return Unit_instance;
|
|
2681
2681
|
};
|
|
2682
2682
|
}
|
|
2683
2683
|
function FileSource(path) {
|
|
2684
|
-
this.
|
|
2685
|
-
this.
|
|
2686
|
-
this.
|
|
2687
|
-
this.
|
|
2688
|
-
this.
|
|
2684
|
+
this.n3d_1 = path;
|
|
2685
|
+
this.o3d_1 = null;
|
|
2686
|
+
this.p3d_1 = false;
|
|
2687
|
+
this.q3d_1 = 0;
|
|
2688
|
+
this.r3d_1 = open(this, this.n3d_1);
|
|
2689
2689
|
}
|
|
2690
|
-
protoOf(FileSource).
|
|
2690
|
+
protoOf(FileSource).w3a = function (sink, byteCount) {
|
|
2691
2691
|
// Inline function 'kotlin.check' call
|
|
2692
|
-
if (!!this.
|
|
2692
|
+
if (!!this.p3d_1) {
|
|
2693
2693
|
var message = 'Source is closed.';
|
|
2694
2694
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
2695
2695
|
}
|
|
2696
2696
|
if (byteCount.equals(new Long(0, 0))) {
|
|
2697
2697
|
return new Long(0, 0);
|
|
2698
2698
|
}
|
|
2699
|
-
if (this.
|
|
2699
|
+
if (this.o3d_1 === null) {
|
|
2700
2700
|
var tmp0_safe_receiver = withCaughtException(FileSource$readAtMostTo$lambda(this));
|
|
2701
2701
|
if (tmp0_safe_receiver == null)
|
|
2702
2702
|
null;
|
|
2703
2703
|
else {
|
|
2704
2704
|
// Inline function 'kotlin.also' call
|
|
2705
|
-
throw IOException_init_$Create$_1('Failed to read data from ' + this.
|
|
2705
|
+
throw IOException_init_$Create$_1('Failed to read data from ' + this.n3d_1.l3d_1, tmp0_safe_receiver);
|
|
2706
2706
|
}
|
|
2707
2707
|
}
|
|
2708
|
-
var len = ensureNotNull(this.
|
|
2709
|
-
if (this.
|
|
2708
|
+
var len = ensureNotNull(this.o3d_1).length;
|
|
2709
|
+
if (this.q3d_1 >= len) {
|
|
2710
2710
|
return new Long(-1, -1);
|
|
2711
2711
|
}
|
|
2712
2712
|
// Inline function 'kotlinx.io.minOf' call
|
|
2713
|
-
var b = len - this.
|
|
2713
|
+
var b = len - this.q3d_1 | 0;
|
|
2714
2714
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
2715
2715
|
var b_0 = toLong(b);
|
|
2716
2716
|
var bytesToRead = byteCount.j1(b_0) <= 0 ? byteCount : b_0;
|
|
@@ -2719,18 +2719,18 @@
|
|
|
2719
2719
|
do {
|
|
2720
2720
|
var i = inductionVariable;
|
|
2721
2721
|
inductionVariable = inductionVariable.b3(new Long(1, 0));
|
|
2722
|
-
var tmp = ensureNotNull(this.
|
|
2723
|
-
var _unary__edvuaz = this.
|
|
2724
|
-
this.
|
|
2725
|
-
sink.
|
|
2722
|
+
var tmp = ensureNotNull(this.o3d_1);
|
|
2723
|
+
var _unary__edvuaz = this.q3d_1;
|
|
2724
|
+
this.q3d_1 = _unary__edvuaz + 1 | 0;
|
|
2725
|
+
sink.p3b(tmp.readInt8(_unary__edvuaz));
|
|
2726
2726
|
}
|
|
2727
2727
|
while (inductionVariable.j1(bytesToRead) < 0);
|
|
2728
2728
|
return bytesToRead;
|
|
2729
2729
|
};
|
|
2730
2730
|
protoOf(FileSource).u4 = function () {
|
|
2731
|
-
if (!this.
|
|
2732
|
-
this.
|
|
2733
|
-
get_fs().closeSync(this.
|
|
2731
|
+
if (!this.p3d_1) {
|
|
2732
|
+
this.p3d_1 = true;
|
|
2733
|
+
get_fs().closeSync(this.r3d_1);
|
|
2734
2734
|
}
|
|
2735
2735
|
};
|
|
2736
2736
|
function open_0($this, path, append) {
|
|
@@ -2741,31 +2741,31 @@
|
|
|
2741
2741
|
null;
|
|
2742
2742
|
else {
|
|
2743
2743
|
// Inline function 'kotlin.also' call
|
|
2744
|
-
throw IOException_init_$Create$_1('Failed to open a file ' + path.
|
|
2744
|
+
throw IOException_init_$Create$_1('Failed to open a file ' + path.l3d_1 + '.', tmp0_safe_receiver);
|
|
2745
2745
|
}
|
|
2746
2746
|
if (fd._v < 0)
|
|
2747
|
-
throw IOException_init_$Create$_0('Failed to open a file ' + path.
|
|
2747
|
+
throw IOException_init_$Create$_0('Failed to open a file ' + path.l3d_1 + '.');
|
|
2748
2748
|
return fd._v;
|
|
2749
2749
|
}
|
|
2750
2750
|
function FileSink$open$lambda($fd, $path, $flags) {
|
|
2751
2751
|
return function () {
|
|
2752
|
-
$fd._v = get_fs().openSync($path.
|
|
2752
|
+
$fd._v = get_fs().openSync($path.l3d_1, $flags);
|
|
2753
2753
|
return Unit_instance;
|
|
2754
2754
|
};
|
|
2755
2755
|
}
|
|
2756
2756
|
function FileSink$write$lambda(this$0, $buf) {
|
|
2757
2757
|
return function () {
|
|
2758
|
-
get_fs().writeFileSync(this$0.
|
|
2758
|
+
get_fs().writeFileSync(this$0.t3d_1, $buf);
|
|
2759
2759
|
return Unit_instance;
|
|
2760
2760
|
};
|
|
2761
2761
|
}
|
|
2762
2762
|
function FileSink(path, append) {
|
|
2763
|
-
this.
|
|
2764
|
-
this.
|
|
2763
|
+
this.s3d_1 = false;
|
|
2764
|
+
this.t3d_1 = open_0(this, path, append);
|
|
2765
2765
|
}
|
|
2766
|
-
protoOf(FileSink).
|
|
2766
|
+
protoOf(FileSink).x3a = function (source, byteCount) {
|
|
2767
2767
|
// Inline function 'kotlin.check' call
|
|
2768
|
-
if (!!this.
|
|
2768
|
+
if (!!this.s3d_1) {
|
|
2769
2769
|
var message = 'Sink is closed.';
|
|
2770
2770
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
2771
2771
|
}
|
|
@@ -2779,14 +2779,14 @@
|
|
|
2779
2779
|
var segmentBytes = 0;
|
|
2780
2780
|
// Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.readFromHead' call
|
|
2781
2781
|
// Inline function 'kotlin.require' call
|
|
2782
|
-
if (!!source.
|
|
2782
|
+
if (!!source.w39()) {
|
|
2783
2783
|
var message_0 = 'Buffer is empty';
|
|
2784
2784
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
2785
2785
|
}
|
|
2786
|
-
var head = ensureNotNull(source.
|
|
2787
|
-
var tmp0 = head.
|
|
2788
|
-
var tmp2 = head.
|
|
2789
|
-
segmentBytes = head.
|
|
2786
|
+
var head = ensureNotNull(source.s39_1);
|
|
2787
|
+
var tmp0 = head.o3c(true);
|
|
2788
|
+
var tmp2 = head.b3a_1;
|
|
2789
|
+
segmentBytes = head.c3a_1 - tmp2 | 0;
|
|
2790
2790
|
var buf = get_buffer().Buffer.allocUnsafe(segmentBytes);
|
|
2791
2791
|
var inductionVariable = 0;
|
|
2792
2792
|
var last = segmentBytes;
|
|
@@ -2810,7 +2810,7 @@
|
|
|
2810
2810
|
throw IllegalStateException_init_$Create$('Returned negative read bytes count');
|
|
2811
2811
|
if (bytesRead > head.s())
|
|
2812
2812
|
throw IllegalStateException_init_$Create$('Returned too many bytes');
|
|
2813
|
-
source.
|
|
2813
|
+
source.t3a(toLong(bytesRead));
|
|
2814
2814
|
}
|
|
2815
2815
|
var tmp0_0 = remainingBytes;
|
|
2816
2816
|
// Inline function 'kotlin.Long.minus' call
|
|
@@ -2819,9 +2819,9 @@
|
|
|
2819
2819
|
}
|
|
2820
2820
|
};
|
|
2821
2821
|
protoOf(FileSink).u4 = function () {
|
|
2822
|
-
if (!this.
|
|
2823
|
-
this.
|
|
2824
|
-
get_fs().closeSync(this.
|
|
2822
|
+
if (!this.s3d_1) {
|
|
2823
|
+
this.s3d_1 = true;
|
|
2824
|
+
get_fs().closeSync(this.t3d_1);
|
|
2825
2825
|
}
|
|
2826
2826
|
};
|
|
2827
2827
|
function Path_2(path) {
|
|
@@ -2850,11 +2850,11 @@
|
|
|
2850
2850
|
}
|
|
2851
2851
|
}
|
|
2852
2852
|
//region block: post-declaration
|
|
2853
|
-
protoOf(Buffer).
|
|
2854
|
-
protoOf(RealSink).
|
|
2855
|
-
protoOf(SystemFileSystemImpl).
|
|
2856
|
-
protoOf(SystemFileSystemImpl).
|
|
2857
|
-
protoOf(SystemFileSystemImpl).
|
|
2853
|
+
protoOf(Buffer).i3b = write$default;
|
|
2854
|
+
protoOf(RealSink).i3b = write$default;
|
|
2855
|
+
protoOf(SystemFileSystemImpl).z3c = delete$default;
|
|
2856
|
+
protoOf(SystemFileSystemImpl).b3d = createDirectories$default;
|
|
2857
|
+
protoOf(SystemFileSystemImpl).e3d = sink$default;
|
|
2858
2858
|
//endregion
|
|
2859
2859
|
//region block: init
|
|
2860
2860
|
Companion_instance = new Companion();
|