client_plugin_logic_deb 1.8.430 → 1.8.432
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Kosi-Kaverit-kaverit.js +58 -58
- package/Kosi-Kodein-kodein-di.js +523 -523
- package/Kotlin-DateTime-library-kotlinx-datetime.js +151 -151
- package/Logic_Debertz-ai_module.js +235 -235
- package/Logic_Debertz-client_plugin.d.ts +5 -0
- package/Logic_Debertz-client_plugin.js +3090 -3090
- package/Logic_Debertz-core.js +682 -682
- package/Logic_Debertz-engine.js +14223 -14151
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_client.js +8869 -8869
- package/Logic_Debertz-game_server.js +1175 -1174
- package/Logic_Debertz-game_server.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +552 -546
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-atomicfu.js +13 -13
- package/kotlinx-coroutines-core.js +2488 -2488
- package/kotlinx-coroutines-core.js.map +1 -1
- package/kotlinx-io-kotlinx-io-core.js +314 -314
- package/kotlinx-serialization-kotlinx-serialization-core.js +1739 -1739
- package/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.js +1316 -1316
- package/ktor-ktor-client-content-negotiation.js +123 -123
- package/ktor-ktor-client-core.js +1442 -1442
- package/ktor-ktor-client-logging.js +265 -265
- package/ktor-ktor-events.js +6 -6
- package/ktor-ktor-http.js +590 -590
- package/ktor-ktor-io.js +1241 -1241
- package/ktor-ktor-serialization-kotlinx-json.js +6 -6
- package/ktor-ktor-serialization-kotlinx.js +132 -132
- package/ktor-ktor-serialization.js +61 -61
- package/ktor-ktor-utils.js +483 -483
- package/ktor-ktor-websockets.js +42 -42
- package/package.json +1 -1
- package/random-library-crypto-rand.js +1 -1
- package/random-library-secure-random.js +2 -2
- package/raspberry-cardgame-lib-core.js +7 -7
- package/raspberry-cardgame-lib-logger.js +90 -90
- package/raspberry-cardgame-lib-random.js +794 -794
- package/raspberry-cardgame-lib-random.js.map +1 -1
- package/uuid.js +12 -12
|
@@ -72,10 +72,10 @@
|
|
|
72
72
|
mustExist = mustExist === VOID ? true : mustExist;
|
|
73
73
|
var tmp;
|
|
74
74
|
if ($super === VOID) {
|
|
75
|
-
this.
|
|
75
|
+
this.i1j(path, mustExist);
|
|
76
76
|
tmp = Unit_instance;
|
|
77
77
|
} else {
|
|
78
|
-
tmp = $super.
|
|
78
|
+
tmp = $super.i1j.call(this, path, mustExist);
|
|
79
79
|
}
|
|
80
80
|
return tmp;
|
|
81
81
|
}
|
|
@@ -83,10 +83,10 @@
|
|
|
83
83
|
mustCreate = mustCreate === VOID ? false : mustCreate;
|
|
84
84
|
var tmp;
|
|
85
85
|
if ($super === VOID) {
|
|
86
|
-
this.
|
|
86
|
+
this.k1j(path, mustCreate);
|
|
87
87
|
tmp = Unit_instance;
|
|
88
88
|
} else {
|
|
89
|
-
tmp = $super.
|
|
89
|
+
tmp = $super.k1j.call(this, path, mustCreate);
|
|
90
90
|
}
|
|
91
91
|
return tmp;
|
|
92
92
|
}
|
|
@@ -134,33 +134,33 @@
|
|
|
134
134
|
}
|
|
135
135
|
}
|
|
136
136
|
function Buffer() {
|
|
137
|
-
this.e1h_1 = null;
|
|
138
137
|
this.f1h_1 = null;
|
|
139
|
-
this.g1h_1 =
|
|
138
|
+
this.g1h_1 = null;
|
|
139
|
+
this.h1h_1 = new Long(0, 0);
|
|
140
140
|
}
|
|
141
141
|
protoOf(Buffer).o = function () {
|
|
142
|
-
return this.
|
|
142
|
+
return this.h1h_1;
|
|
143
143
|
};
|
|
144
|
-
protoOf(Buffer).
|
|
144
|
+
protoOf(Buffer).i1h = function () {
|
|
145
145
|
return this;
|
|
146
146
|
};
|
|
147
|
-
protoOf(Buffer).
|
|
147
|
+
protoOf(Buffer).j1h = function () {
|
|
148
148
|
return equalsLong(this.o(), new Long(0, 0));
|
|
149
149
|
};
|
|
150
|
-
protoOf(Buffer).
|
|
150
|
+
protoOf(Buffer).k1h = function () {
|
|
151
151
|
return Unit_instance;
|
|
152
152
|
};
|
|
153
|
-
protoOf(Buffer).
|
|
153
|
+
protoOf(Buffer).l1h = function () {
|
|
154
154
|
var result = this.o();
|
|
155
155
|
if (equalsLong(result, new Long(0, 0)))
|
|
156
156
|
return new Long(0, 0);
|
|
157
|
-
var tail = ensureNotNull(this.
|
|
158
|
-
if (tail.
|
|
159
|
-
result = subtract(result, fromInt(tail.
|
|
157
|
+
var tail = ensureNotNull(this.g1h_1);
|
|
158
|
+
if (tail.o1h_1 < 8192 && tail.q1h_1) {
|
|
159
|
+
result = subtract(result, fromInt(tail.o1h_1 - tail.n1h_1 | 0));
|
|
160
160
|
}
|
|
161
161
|
return result;
|
|
162
162
|
};
|
|
163
|
-
protoOf(Buffer).
|
|
163
|
+
protoOf(Buffer).t1h = function (byteCount) {
|
|
164
164
|
// Inline function 'kotlinx.io.checkByteCount' call
|
|
165
165
|
// Inline function 'kotlin.require' call
|
|
166
166
|
if (!(compare(byteCount, new Long(0, 0)) >= 0)) {
|
|
@@ -169,7 +169,7 @@
|
|
|
169
169
|
}
|
|
170
170
|
var remainingByteCount = byteCount;
|
|
171
171
|
while (compare(remainingByteCount, new Long(0, 0)) > 0) {
|
|
172
|
-
var tmp0_elvis_lhs = this.
|
|
172
|
+
var tmp0_elvis_lhs = this.f1h_1;
|
|
173
173
|
var tmp;
|
|
174
174
|
if (tmp0_elvis_lhs == null) {
|
|
175
175
|
throw EOFException_init_$Create$_0('Buffer exhausted before skipping ' + byteCount.toString() + ' bytes.');
|
|
@@ -179,100 +179,100 @@
|
|
|
179
179
|
var head = tmp;
|
|
180
180
|
var tmp0 = remainingByteCount;
|
|
181
181
|
// Inline function 'kotlinx.io.minOf' call
|
|
182
|
-
var b = head.
|
|
182
|
+
var b = head.o1h_1 - head.n1h_1 | 0;
|
|
183
183
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
184
184
|
var b_0 = fromInt(b);
|
|
185
185
|
var tmp$ret$4 = compare(tmp0, b_0) <= 0 ? tmp0 : b_0;
|
|
186
186
|
var toSkip = convertToInt(tmp$ret$4);
|
|
187
|
-
this.
|
|
187
|
+
this.h1h_1 = subtract(this.h1h_1, fromInt(toSkip));
|
|
188
188
|
remainingByteCount = subtract(remainingByteCount, fromInt(toSkip));
|
|
189
|
-
head.
|
|
190
|
-
if (head.
|
|
191
|
-
this.
|
|
189
|
+
head.n1h_1 = head.n1h_1 + toSkip | 0;
|
|
190
|
+
if (head.n1h_1 === head.o1h_1) {
|
|
191
|
+
this.u1h();
|
|
192
192
|
}
|
|
193
193
|
}
|
|
194
194
|
};
|
|
195
|
-
protoOf(Buffer).
|
|
195
|
+
protoOf(Buffer).v1h = function (minimumCapacity) {
|
|
196
196
|
// Inline function 'kotlin.require' call
|
|
197
197
|
if (!(minimumCapacity >= 1 && minimumCapacity <= 8192)) {
|
|
198
198
|
var message = 'unexpected capacity (' + minimumCapacity + '), should be in range [1, 8192]';
|
|
199
199
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
200
200
|
}
|
|
201
|
-
if (this.
|
|
202
|
-
var result = SegmentPool_instance.
|
|
203
|
-
this.e1h_1 = result;
|
|
201
|
+
if (this.g1h_1 == null) {
|
|
202
|
+
var result = SegmentPool_instance.y1h();
|
|
204
203
|
this.f1h_1 = result;
|
|
204
|
+
this.g1h_1 = result;
|
|
205
205
|
return result;
|
|
206
206
|
}
|
|
207
|
-
var t = ensureNotNull(this.
|
|
208
|
-
if ((t.
|
|
209
|
-
var newTail = t.
|
|
210
|
-
this.
|
|
207
|
+
var t = ensureNotNull(this.g1h_1);
|
|
208
|
+
if ((t.o1h_1 + minimumCapacity | 0) > 8192 || !t.q1h_1) {
|
|
209
|
+
var newTail = t.z1h(SegmentPool_instance.y1h());
|
|
210
|
+
this.g1h_1 = newTail;
|
|
211
211
|
return newTail;
|
|
212
212
|
}
|
|
213
213
|
return t;
|
|
214
214
|
};
|
|
215
|
-
protoOf(Buffer).
|
|
215
|
+
protoOf(Buffer).a1i = function (source, byteCount) {
|
|
216
216
|
// Inline function 'kotlin.require' call
|
|
217
217
|
if (!!(source === this)) {
|
|
218
218
|
var message = 'source == this';
|
|
219
219
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
220
220
|
}
|
|
221
|
-
checkOffsetAndCount(source.
|
|
221
|
+
checkOffsetAndCount(source.h1h_1, new Long(0, 0), byteCount);
|
|
222
222
|
var remainingByteCount = byteCount;
|
|
223
223
|
while (compare(remainingByteCount, new Long(0, 0)) > 0) {
|
|
224
|
-
if (compare(remainingByteCount, fromInt(ensureNotNull(source.
|
|
225
|
-
var tail = this.
|
|
224
|
+
if (compare(remainingByteCount, fromInt(ensureNotNull(source.f1h_1).o())) < 0) {
|
|
225
|
+
var tail = this.g1h_1;
|
|
226
226
|
var tmp;
|
|
227
|
-
if (!(tail == null) && tail.
|
|
227
|
+
if (!(tail == null) && tail.q1h_1) {
|
|
228
228
|
var tmp0 = remainingByteCount;
|
|
229
229
|
// Inline function 'kotlin.Long.plus' call
|
|
230
|
-
var other = tail.
|
|
230
|
+
var other = tail.o1h_1;
|
|
231
231
|
var tmp0_0 = add(tmp0, fromInt(other));
|
|
232
232
|
// Inline function 'kotlin.Long.minus' call
|
|
233
|
-
var other_0 = tail.
|
|
233
|
+
var other_0 = tail.b1i() ? 0 : tail.n1h_1;
|
|
234
234
|
var tmp$ret$3 = subtract(tmp0_0, fromInt(other_0));
|
|
235
235
|
tmp = compare(tmp$ret$3, new Long(8192, 0)) <= 0;
|
|
236
236
|
} else {
|
|
237
237
|
tmp = false;
|
|
238
238
|
}
|
|
239
239
|
if (tmp) {
|
|
240
|
-
ensureNotNull(source.
|
|
241
|
-
source.
|
|
242
|
-
this.
|
|
240
|
+
ensureNotNull(source.f1h_1).d1i(tail, convertToInt(remainingByteCount));
|
|
241
|
+
source.h1h_1 = subtract(source.h1h_1, remainingByteCount);
|
|
242
|
+
this.h1h_1 = add(this.h1h_1, remainingByteCount);
|
|
243
243
|
return Unit_instance;
|
|
244
244
|
} else {
|
|
245
|
-
source.
|
|
245
|
+
source.f1h_1 = ensureNotNull(source.f1h_1).c1i(convertToInt(remainingByteCount));
|
|
246
246
|
}
|
|
247
247
|
}
|
|
248
|
-
var segmentToMove = ensureNotNull(source.
|
|
248
|
+
var segmentToMove = ensureNotNull(source.f1h_1);
|
|
249
249
|
var movedByteCount = fromInt(segmentToMove.o());
|
|
250
|
-
source.
|
|
251
|
-
if (source.
|
|
252
|
-
source.
|
|
250
|
+
source.f1h_1 = segmentToMove.e1i();
|
|
251
|
+
if (source.f1h_1 == null) {
|
|
252
|
+
source.g1h_1 = null;
|
|
253
253
|
}
|
|
254
254
|
// Inline function 'kotlinx.io.Buffer.pushSegment' call
|
|
255
|
-
if (this.
|
|
256
|
-
this.e1h_1 = segmentToMove;
|
|
255
|
+
if (this.f1h_1 == null) {
|
|
257
256
|
this.f1h_1 = segmentToMove;
|
|
257
|
+
this.g1h_1 = segmentToMove;
|
|
258
258
|
} else if (true) {
|
|
259
|
-
this.
|
|
260
|
-
if (ensureNotNull(this.
|
|
261
|
-
this.
|
|
259
|
+
this.g1h_1 = ensureNotNull(this.g1h_1).z1h(segmentToMove).f1i();
|
|
260
|
+
if (ensureNotNull(this.g1h_1).s1h_1 == null) {
|
|
261
|
+
this.f1h_1 = this.g1h_1;
|
|
262
262
|
}
|
|
263
263
|
} else {
|
|
264
|
-
this.
|
|
264
|
+
this.g1h_1 = ensureNotNull(this.g1h_1).z1h(segmentToMove);
|
|
265
265
|
}
|
|
266
|
-
source.
|
|
267
|
-
this.
|
|
266
|
+
source.h1h_1 = subtract(source.h1h_1, movedByteCount);
|
|
267
|
+
this.h1h_1 = add(this.h1h_1, movedByteCount);
|
|
268
268
|
remainingByteCount = subtract(remainingByteCount, movedByteCount);
|
|
269
269
|
}
|
|
270
270
|
};
|
|
271
|
-
protoOf(Buffer).
|
|
272
|
-
this.
|
|
273
|
-
this.
|
|
271
|
+
protoOf(Buffer).g1i = function (byte) {
|
|
272
|
+
this.v1h(1).h1i(byte);
|
|
273
|
+
this.h1h_1 = add(this.h1h_1, new Long(1, 0));
|
|
274
274
|
};
|
|
275
|
-
protoOf(Buffer).
|
|
275
|
+
protoOf(Buffer).i1i = function () {
|
|
276
276
|
return Unit_instance;
|
|
277
277
|
};
|
|
278
278
|
protoOf(Buffer).toString = function () {
|
|
@@ -288,7 +288,7 @@
|
|
|
288
288
|
var builder = StringBuilder_init_$Create$(imul(len, 2) + (compare(this.o(), fromInt(maxPrintableBytes)) > 0 ? 1 : 0) | 0);
|
|
289
289
|
var bytesWritten = 0;
|
|
290
290
|
// Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.forEachSegment' call
|
|
291
|
-
var curr = this.
|
|
291
|
+
var curr = this.f1h_1;
|
|
292
292
|
while (!(curr == null)) {
|
|
293
293
|
var tmp0 = get_SegmentReadContextImpl();
|
|
294
294
|
var segment = curr;
|
|
@@ -296,7 +296,7 @@
|
|
|
296
296
|
while (bytesWritten < len && idx < segment.o()) {
|
|
297
297
|
var _unary__edvuaz = idx;
|
|
298
298
|
idx = _unary__edvuaz + 1 | 0;
|
|
299
|
-
var b_0 = tmp0.
|
|
299
|
+
var b_0 = tmp0.j1i(segment, _unary__edvuaz);
|
|
300
300
|
bytesWritten = bytesWritten + 1 | 0;
|
|
301
301
|
var tmp = get_HEX_DIGIT_CHARS();
|
|
302
302
|
// Inline function 'kotlinx.io.shr' call
|
|
@@ -307,52 +307,52 @@
|
|
|
307
307
|
var tmp$ret$3 = b_0 & 15;
|
|
308
308
|
tmp_0.e8(tmp_1[tmp$ret$3]);
|
|
309
309
|
}
|
|
310
|
-
curr = curr.
|
|
310
|
+
curr = curr.r1h_1;
|
|
311
311
|
}
|
|
312
312
|
if (compare(this.o(), fromInt(maxPrintableBytes)) > 0) {
|
|
313
313
|
builder.e8(_Char___init__impl__6a9atx(8230));
|
|
314
314
|
}
|
|
315
315
|
return 'Buffer(size=' + this.o().toString() + ' hex=' + builder.toString() + ')';
|
|
316
316
|
};
|
|
317
|
-
protoOf(Buffer).
|
|
318
|
-
var oldHead = ensureNotNull(this.
|
|
319
|
-
var nextHead = oldHead.
|
|
320
|
-
this.
|
|
317
|
+
protoOf(Buffer).u1h = function () {
|
|
318
|
+
var oldHead = ensureNotNull(this.f1h_1);
|
|
319
|
+
var nextHead = oldHead.r1h_1;
|
|
320
|
+
this.f1h_1 = nextHead;
|
|
321
321
|
if (nextHead == null) {
|
|
322
|
-
this.
|
|
322
|
+
this.g1h_1 = null;
|
|
323
323
|
} else {
|
|
324
|
-
nextHead.
|
|
324
|
+
nextHead.s1h_1 = null;
|
|
325
325
|
}
|
|
326
|
-
oldHead.
|
|
327
|
-
SegmentPool_instance.
|
|
326
|
+
oldHead.r1h_1 = null;
|
|
327
|
+
SegmentPool_instance.k1i(oldHead);
|
|
328
328
|
};
|
|
329
|
-
protoOf(Buffer).
|
|
330
|
-
var oldTail = ensureNotNull(this.
|
|
331
|
-
var newTail = oldTail.
|
|
332
|
-
this.
|
|
329
|
+
protoOf(Buffer).l1i = function () {
|
|
330
|
+
var oldTail = ensureNotNull(this.g1h_1);
|
|
331
|
+
var newTail = oldTail.s1h_1;
|
|
332
|
+
this.g1h_1 = newTail;
|
|
333
333
|
if (newTail == null) {
|
|
334
|
-
this.
|
|
334
|
+
this.f1h_1 = null;
|
|
335
335
|
} else {
|
|
336
|
-
newTail.
|
|
336
|
+
newTail.r1h_1 = null;
|
|
337
337
|
}
|
|
338
|
-
oldTail.
|
|
339
|
-
SegmentPool_instance.
|
|
338
|
+
oldTail.s1h_1 = null;
|
|
339
|
+
SegmentPool_instance.k1i(oldTail);
|
|
340
340
|
};
|
|
341
341
|
function buffered(_this__u8e3s4) {
|
|
342
342
|
return new RealSink(_this__u8e3s4);
|
|
343
343
|
}
|
|
344
344
|
function RealSink(sink) {
|
|
345
|
-
this.
|
|
346
|
-
this.
|
|
347
|
-
this.
|
|
345
|
+
this.m1i_1 = sink;
|
|
346
|
+
this.n1i_1 = false;
|
|
347
|
+
this.o1i_1 = new Buffer();
|
|
348
348
|
}
|
|
349
|
-
protoOf(RealSink).
|
|
350
|
-
return this.
|
|
349
|
+
protoOf(RealSink).i1h = function () {
|
|
350
|
+
return this.o1i_1;
|
|
351
351
|
};
|
|
352
|
-
protoOf(RealSink).
|
|
352
|
+
protoOf(RealSink).a1i = function (source, byteCount) {
|
|
353
353
|
// Inline function 'kotlinx.io.RealSink.checkNotClosed' call
|
|
354
354
|
// Inline function 'kotlin.check' call
|
|
355
|
-
if (!!this.
|
|
355
|
+
if (!!this.n1i_1) {
|
|
356
356
|
var message = 'Sink is closed.';
|
|
357
357
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
358
358
|
}
|
|
@@ -361,28 +361,28 @@
|
|
|
361
361
|
var message_0 = 'byteCount: ' + byteCount.toString();
|
|
362
362
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
363
363
|
}
|
|
364
|
-
this.
|
|
365
|
-
this.
|
|
364
|
+
this.o1i_1.a1i(source, byteCount);
|
|
365
|
+
this.k1h();
|
|
366
366
|
};
|
|
367
|
-
protoOf(RealSink).
|
|
367
|
+
protoOf(RealSink).k1h = function () {
|
|
368
368
|
// Inline function 'kotlinx.io.RealSink.checkNotClosed' call
|
|
369
369
|
// Inline function 'kotlin.check' call
|
|
370
|
-
if (!!this.
|
|
370
|
+
if (!!this.n1i_1) {
|
|
371
371
|
var message = 'Sink is closed.';
|
|
372
372
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
373
373
|
}
|
|
374
|
-
var byteCount = this.
|
|
374
|
+
var byteCount = this.o1i_1.l1h();
|
|
375
375
|
if (compare(byteCount, new Long(0, 0)) > 0) {
|
|
376
|
-
this.
|
|
376
|
+
this.m1i_1.a1i(this.o1i_1, byteCount);
|
|
377
377
|
}
|
|
378
378
|
};
|
|
379
|
-
protoOf(RealSink).
|
|
380
|
-
if (this.
|
|
379
|
+
protoOf(RealSink).i1i = function () {
|
|
380
|
+
if (this.n1i_1)
|
|
381
381
|
return Unit_instance;
|
|
382
382
|
var thrown = null;
|
|
383
383
|
try {
|
|
384
|
-
if (compare(this.
|
|
385
|
-
this.
|
|
384
|
+
if (compare(this.o1i_1.o(), new Long(0, 0)) > 0) {
|
|
385
|
+
this.m1i_1.a1i(this.o1i_1, this.o1i_1.o());
|
|
386
386
|
}
|
|
387
387
|
} catch ($p) {
|
|
388
388
|
if ($p instanceof Error) {
|
|
@@ -393,7 +393,7 @@
|
|
|
393
393
|
}
|
|
394
394
|
}
|
|
395
395
|
try {
|
|
396
|
-
this.
|
|
396
|
+
this.m1i_1.i1i();
|
|
397
397
|
} catch ($p) {
|
|
398
398
|
if ($p instanceof Error) {
|
|
399
399
|
var e_0 = $p;
|
|
@@ -403,18 +403,18 @@
|
|
|
403
403
|
throw $p;
|
|
404
404
|
}
|
|
405
405
|
}
|
|
406
|
-
this.
|
|
406
|
+
this.n1i_1 = true;
|
|
407
407
|
if (!(thrown == null))
|
|
408
408
|
throw thrown;
|
|
409
409
|
};
|
|
410
410
|
protoOf(RealSink).toString = function () {
|
|
411
|
-
return 'buffered(' + toString(this.
|
|
411
|
+
return 'buffered(' + toString(this.m1i_1) + ')';
|
|
412
412
|
};
|
|
413
413
|
function Segment_init_$Init$($this) {
|
|
414
414
|
Segment.call($this);
|
|
415
|
-
$this.
|
|
416
|
-
$this.
|
|
417
|
-
$this.
|
|
415
|
+
$this.m1h_1 = new Int8Array(8192);
|
|
416
|
+
$this.q1h_1 = true;
|
|
417
|
+
$this.p1h_1 = null;
|
|
418
418
|
return $this;
|
|
419
419
|
}
|
|
420
420
|
function Segment_init_$Create$() {
|
|
@@ -422,87 +422,87 @@
|
|
|
422
422
|
}
|
|
423
423
|
function Segment_init_$Init$_0(data, pos, limit, shareToken, owner, $this) {
|
|
424
424
|
Segment.call($this);
|
|
425
|
-
$this.
|
|
426
|
-
$this.
|
|
427
|
-
$this.
|
|
428
|
-
$this.
|
|
429
|
-
$this.
|
|
425
|
+
$this.m1h_1 = data;
|
|
426
|
+
$this.n1h_1 = pos;
|
|
427
|
+
$this.o1h_1 = limit;
|
|
428
|
+
$this.p1h_1 = shareToken;
|
|
429
|
+
$this.q1h_1 = owner;
|
|
430
430
|
return $this;
|
|
431
431
|
}
|
|
432
432
|
function Segment_init_$Create$_0(data, pos, limit, shareToken, owner) {
|
|
433
433
|
return Segment_init_$Init$_0(data, pos, limit, shareToken, owner, objectCreate(protoOf(Segment)));
|
|
434
434
|
}
|
|
435
435
|
function Companion() {
|
|
436
|
-
this.
|
|
437
|
-
this.
|
|
436
|
+
this.p1i_1 = 8192;
|
|
437
|
+
this.q1i_1 = 1024;
|
|
438
438
|
}
|
|
439
|
-
protoOf(Companion).
|
|
439
|
+
protoOf(Companion).r1i = function () {
|
|
440
440
|
return Segment_init_$Create$();
|
|
441
441
|
};
|
|
442
442
|
var Companion_instance;
|
|
443
443
|
function Companion_getInstance() {
|
|
444
444
|
return Companion_instance;
|
|
445
445
|
}
|
|
446
|
-
protoOf(Segment).
|
|
447
|
-
var tmp0_safe_receiver = this.
|
|
448
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
446
|
+
protoOf(Segment).b1i = function () {
|
|
447
|
+
var tmp0_safe_receiver = this.p1h_1;
|
|
448
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.s1i();
|
|
449
449
|
return tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs;
|
|
450
450
|
};
|
|
451
|
-
protoOf(Segment).
|
|
452
|
-
var tmp0_elvis_lhs = this.
|
|
451
|
+
protoOf(Segment).t1i = function () {
|
|
452
|
+
var tmp0_elvis_lhs = this.p1h_1;
|
|
453
453
|
var tmp;
|
|
454
454
|
if (tmp0_elvis_lhs == null) {
|
|
455
455
|
// Inline function 'kotlin.also' call
|
|
456
|
-
var this_0 = SegmentPool_instance.
|
|
457
|
-
this.
|
|
456
|
+
var this_0 = SegmentPool_instance.u1i();
|
|
457
|
+
this.p1h_1 = this_0;
|
|
458
458
|
tmp = this_0;
|
|
459
459
|
} else {
|
|
460
460
|
tmp = tmp0_elvis_lhs;
|
|
461
461
|
}
|
|
462
462
|
var t = tmp;
|
|
463
|
-
var tmp_0 = this.
|
|
464
|
-
var tmp_1 = this.
|
|
463
|
+
var tmp_0 = this.n1h_1;
|
|
464
|
+
var tmp_1 = this.o1h_1;
|
|
465
465
|
// Inline function 'kotlin.also' call
|
|
466
|
-
t.
|
|
467
|
-
return Segment_init_$Create$_0(this.
|
|
466
|
+
t.v1i();
|
|
467
|
+
return Segment_init_$Create$_0(this.m1h_1, tmp_0, tmp_1, t, false);
|
|
468
468
|
};
|
|
469
|
-
protoOf(Segment).
|
|
470
|
-
var result = this.
|
|
471
|
-
if (!(this.
|
|
472
|
-
ensureNotNull(this.
|
|
469
|
+
protoOf(Segment).e1i = function () {
|
|
470
|
+
var result = this.r1h_1;
|
|
471
|
+
if (!(this.s1h_1 == null)) {
|
|
472
|
+
ensureNotNull(this.s1h_1).r1h_1 = this.r1h_1;
|
|
473
473
|
}
|
|
474
|
-
if (!(this.
|
|
475
|
-
ensureNotNull(this.
|
|
474
|
+
if (!(this.r1h_1 == null)) {
|
|
475
|
+
ensureNotNull(this.r1h_1).s1h_1 = this.s1h_1;
|
|
476
476
|
}
|
|
477
|
-
this.q1h_1 = null;
|
|
478
477
|
this.r1h_1 = null;
|
|
478
|
+
this.s1h_1 = null;
|
|
479
479
|
return result;
|
|
480
480
|
};
|
|
481
|
-
protoOf(Segment).
|
|
482
|
-
segment.
|
|
483
|
-
segment.
|
|
484
|
-
if (!(this.
|
|
485
|
-
ensureNotNull(this.
|
|
481
|
+
protoOf(Segment).z1h = function (segment) {
|
|
482
|
+
segment.s1h_1 = this;
|
|
483
|
+
segment.r1h_1 = this.r1h_1;
|
|
484
|
+
if (!(this.r1h_1 == null)) {
|
|
485
|
+
ensureNotNull(this.r1h_1).s1h_1 = segment;
|
|
486
486
|
}
|
|
487
|
-
this.
|
|
487
|
+
this.r1h_1 = segment;
|
|
488
488
|
return segment;
|
|
489
489
|
};
|
|
490
|
-
protoOf(Segment).
|
|
490
|
+
protoOf(Segment).c1i = function (byteCount) {
|
|
491
491
|
// Inline function 'kotlin.require' call
|
|
492
|
-
if (!(byteCount > 0 && byteCount <= (this.
|
|
492
|
+
if (!(byteCount > 0 && byteCount <= (this.o1h_1 - this.n1h_1 | 0))) {
|
|
493
493
|
var message = 'byteCount out of range';
|
|
494
494
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
495
495
|
}
|
|
496
496
|
var prefix;
|
|
497
497
|
if (byteCount >= 1024) {
|
|
498
|
-
prefix = this.
|
|
498
|
+
prefix = this.t1i();
|
|
499
499
|
} else {
|
|
500
|
-
prefix = SegmentPool_instance.
|
|
501
|
-
var tmp0 = this.
|
|
502
|
-
var tmp2 = prefix.
|
|
503
|
-
var tmp4 = this.
|
|
500
|
+
prefix = SegmentPool_instance.y1h();
|
|
501
|
+
var tmp0 = this.m1h_1;
|
|
502
|
+
var tmp2 = prefix.m1h_1;
|
|
503
|
+
var tmp4 = this.n1h_1;
|
|
504
504
|
// Inline function 'kotlin.collections.copyInto' call
|
|
505
|
-
var endIndex = this.
|
|
505
|
+
var endIndex = this.n1h_1 + byteCount | 0;
|
|
506
506
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
507
507
|
// Inline function 'kotlin.js.asDynamic' call
|
|
508
508
|
var tmp = tmp0;
|
|
@@ -510,135 +510,135 @@
|
|
|
510
510
|
// Inline function 'kotlin.js.asDynamic' call
|
|
511
511
|
arrayCopy(tmp, tmp2, 0, tmp4, endIndex);
|
|
512
512
|
}
|
|
513
|
-
prefix.
|
|
514
|
-
this.
|
|
515
|
-
if (!(this.
|
|
516
|
-
ensureNotNull(this.
|
|
513
|
+
prefix.o1h_1 = prefix.n1h_1 + byteCount | 0;
|
|
514
|
+
this.n1h_1 = this.n1h_1 + byteCount | 0;
|
|
515
|
+
if (!(this.s1h_1 == null)) {
|
|
516
|
+
ensureNotNull(this.s1h_1).z1h(prefix);
|
|
517
517
|
} else {
|
|
518
|
-
prefix.
|
|
519
|
-
this.
|
|
518
|
+
prefix.r1h_1 = this;
|
|
519
|
+
this.s1h_1 = prefix;
|
|
520
520
|
}
|
|
521
521
|
return prefix;
|
|
522
522
|
};
|
|
523
|
-
protoOf(Segment).
|
|
523
|
+
protoOf(Segment).f1i = function () {
|
|
524
524
|
// Inline function 'kotlin.check' call
|
|
525
|
-
if (!!(this.
|
|
525
|
+
if (!!(this.s1h_1 == null)) {
|
|
526
526
|
var message = 'cannot compact';
|
|
527
527
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
528
528
|
}
|
|
529
|
-
if (!ensureNotNull(this.
|
|
529
|
+
if (!ensureNotNull(this.s1h_1).q1h_1)
|
|
530
530
|
return this;
|
|
531
|
-
var byteCount = this.
|
|
532
|
-
var availableByteCount = (8192 - ensureNotNull(this.
|
|
531
|
+
var byteCount = this.o1h_1 - this.n1h_1 | 0;
|
|
532
|
+
var availableByteCount = (8192 - ensureNotNull(this.s1h_1).o1h_1 | 0) + (ensureNotNull(this.s1h_1).b1i() ? 0 : ensureNotNull(this.s1h_1).n1h_1) | 0;
|
|
533
533
|
if (byteCount > availableByteCount)
|
|
534
534
|
return this;
|
|
535
|
-
var predecessor = this.
|
|
536
|
-
this.
|
|
537
|
-
var successor = this.
|
|
535
|
+
var predecessor = this.s1h_1;
|
|
536
|
+
this.d1i(ensureNotNull(predecessor), byteCount);
|
|
537
|
+
var successor = this.e1i();
|
|
538
538
|
// Inline function 'kotlin.check' call
|
|
539
539
|
if (!(successor == null)) {
|
|
540
540
|
throw IllegalStateException_init_$Create$('Check failed.');
|
|
541
541
|
}
|
|
542
|
-
SegmentPool_instance.
|
|
542
|
+
SegmentPool_instance.k1i(this);
|
|
543
543
|
return predecessor;
|
|
544
544
|
};
|
|
545
|
-
protoOf(Segment).
|
|
546
|
-
var _unary__edvuaz = this.
|
|
547
|
-
this.
|
|
548
|
-
this.
|
|
545
|
+
protoOf(Segment).h1i = function (byte) {
|
|
546
|
+
var _unary__edvuaz = this.o1h_1;
|
|
547
|
+
this.o1h_1 = _unary__edvuaz + 1 | 0;
|
|
548
|
+
this.m1h_1[_unary__edvuaz] = byte;
|
|
549
549
|
};
|
|
550
|
-
protoOf(Segment).
|
|
550
|
+
protoOf(Segment).d1i = function (sink, byteCount) {
|
|
551
551
|
// Inline function 'kotlin.check' call
|
|
552
|
-
if (!sink.
|
|
552
|
+
if (!sink.q1h_1) {
|
|
553
553
|
var message = 'only owner can write';
|
|
554
554
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
555
555
|
}
|
|
556
|
-
if ((sink.
|
|
557
|
-
if (sink.
|
|
556
|
+
if ((sink.o1h_1 + byteCount | 0) > 8192) {
|
|
557
|
+
if (sink.b1i())
|
|
558
558
|
throw IllegalArgumentException_init_$Create$_0();
|
|
559
|
-
if (((sink.
|
|
559
|
+
if (((sink.o1h_1 + byteCount | 0) - sink.n1h_1 | 0) > 8192)
|
|
560
560
|
throw IllegalArgumentException_init_$Create$_0();
|
|
561
|
-
var tmp0 = sink.
|
|
562
|
-
var tmp2 = sink.
|
|
563
|
-
var tmp4 = sink.
|
|
561
|
+
var tmp0 = sink.m1h_1;
|
|
562
|
+
var tmp2 = sink.m1h_1;
|
|
563
|
+
var tmp4 = sink.n1h_1;
|
|
564
564
|
// Inline function 'kotlin.collections.copyInto' call
|
|
565
|
-
var endIndex = sink.
|
|
565
|
+
var endIndex = sink.o1h_1;
|
|
566
566
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
567
567
|
// Inline function 'kotlin.js.asDynamic' call
|
|
568
568
|
var tmp = tmp0;
|
|
569
569
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
570
570
|
// Inline function 'kotlin.js.asDynamic' call
|
|
571
571
|
arrayCopy(tmp, tmp2, 0, tmp4, endIndex);
|
|
572
|
-
sink.
|
|
573
|
-
sink.
|
|
572
|
+
sink.o1h_1 = sink.o1h_1 - sink.n1h_1 | 0;
|
|
573
|
+
sink.n1h_1 = 0;
|
|
574
574
|
}
|
|
575
|
-
var tmp0_0 = this.
|
|
576
|
-
var tmp2_0 = sink.
|
|
577
|
-
var tmp4_0 = sink.
|
|
578
|
-
var tmp6 = this.
|
|
575
|
+
var tmp0_0 = this.m1h_1;
|
|
576
|
+
var tmp2_0 = sink.m1h_1;
|
|
577
|
+
var tmp4_0 = sink.o1h_1;
|
|
578
|
+
var tmp6 = this.n1h_1;
|
|
579
579
|
// Inline function 'kotlin.collections.copyInto' call
|
|
580
|
-
var endIndex_0 = this.
|
|
580
|
+
var endIndex_0 = this.n1h_1 + byteCount | 0;
|
|
581
581
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
582
582
|
// Inline function 'kotlin.js.asDynamic' call
|
|
583
583
|
var tmp_0 = tmp0_0;
|
|
584
584
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
585
585
|
// Inline function 'kotlin.js.asDynamic' call
|
|
586
586
|
arrayCopy(tmp_0, tmp2_0, tmp4_0, tmp6, endIndex_0);
|
|
587
|
-
sink.
|
|
588
|
-
this.
|
|
587
|
+
sink.o1h_1 = sink.o1h_1 + byteCount | 0;
|
|
588
|
+
this.n1h_1 = this.n1h_1 + byteCount | 0;
|
|
589
589
|
};
|
|
590
590
|
protoOf(Segment).o = function () {
|
|
591
|
-
return this.
|
|
591
|
+
return this.o1h_1 - this.n1h_1 | 0;
|
|
592
592
|
};
|
|
593
|
-
protoOf(Segment).
|
|
594
|
-
return this.
|
|
593
|
+
protoOf(Segment).w1i = function () {
|
|
594
|
+
return this.m1h_1.length - this.o1h_1 | 0;
|
|
595
595
|
};
|
|
596
|
-
protoOf(Segment).
|
|
597
|
-
return this.
|
|
596
|
+
protoOf(Segment).x1i = function (readOnly) {
|
|
597
|
+
return this.m1h_1;
|
|
598
598
|
};
|
|
599
|
-
protoOf(Segment).
|
|
600
|
-
return this.
|
|
599
|
+
protoOf(Segment).y1i = function (index) {
|
|
600
|
+
return this.m1h_1[this.n1h_1 + index | 0];
|
|
601
601
|
};
|
|
602
|
-
protoOf(Segment).
|
|
603
|
-
this.
|
|
602
|
+
protoOf(Segment).z1i = function (index, value) {
|
|
603
|
+
this.m1h_1[this.o1h_1 + index | 0] = value;
|
|
604
604
|
};
|
|
605
|
-
protoOf(Segment).
|
|
606
|
-
var d = this.
|
|
607
|
-
var l = this.
|
|
605
|
+
protoOf(Segment).a1j = function (index, b0, b1) {
|
|
606
|
+
var d = this.m1h_1;
|
|
607
|
+
var l = this.o1h_1;
|
|
608
608
|
d[l + index | 0] = b0;
|
|
609
609
|
d[(l + index | 0) + 1 | 0] = b1;
|
|
610
610
|
};
|
|
611
|
-
protoOf(Segment).
|
|
612
|
-
var d = this.
|
|
613
|
-
var l = this.
|
|
611
|
+
protoOf(Segment).b1j = function (index, b0, b1, b2) {
|
|
612
|
+
var d = this.m1h_1;
|
|
613
|
+
var l = this.o1h_1;
|
|
614
614
|
d[l + index | 0] = b0;
|
|
615
615
|
d[(l + index | 0) + 1 | 0] = b1;
|
|
616
616
|
d[(l + index | 0) + 2 | 0] = b2;
|
|
617
617
|
};
|
|
618
|
-
protoOf(Segment).
|
|
619
|
-
var d = this.
|
|
620
|
-
var l = this.
|
|
618
|
+
protoOf(Segment).c1j = function (index, b0, b1, b2, b3) {
|
|
619
|
+
var d = this.m1h_1;
|
|
620
|
+
var l = this.o1h_1;
|
|
621
621
|
d[l + index | 0] = b0;
|
|
622
622
|
d[(l + index | 0) + 1 | 0] = b1;
|
|
623
623
|
d[(l + index | 0) + 2 | 0] = b2;
|
|
624
624
|
d[(l + index | 0) + 3 | 0] = b3;
|
|
625
625
|
};
|
|
626
626
|
function Segment() {
|
|
627
|
-
this.m1h_1 = 0;
|
|
628
627
|
this.n1h_1 = 0;
|
|
629
|
-
this.o1h_1 =
|
|
630
|
-
this.p1h_1 =
|
|
631
|
-
this.q1h_1 =
|
|
628
|
+
this.o1h_1 = 0;
|
|
629
|
+
this.p1h_1 = null;
|
|
630
|
+
this.q1h_1 = false;
|
|
632
631
|
this.r1h_1 = null;
|
|
632
|
+
this.s1h_1 = null;
|
|
633
633
|
}
|
|
634
634
|
function AlwaysSharedCopyTracker() {
|
|
635
635
|
AlwaysSharedCopyTracker_instance = this;
|
|
636
636
|
SegmentCopyTracker.call(this);
|
|
637
637
|
}
|
|
638
|
-
protoOf(AlwaysSharedCopyTracker).
|
|
638
|
+
protoOf(AlwaysSharedCopyTracker).s1i = function () {
|
|
639
639
|
return true;
|
|
640
640
|
};
|
|
641
|
-
protoOf(AlwaysSharedCopyTracker).
|
|
641
|
+
protoOf(AlwaysSharedCopyTracker).v1i = function () {
|
|
642
642
|
return Unit_instance;
|
|
643
643
|
};
|
|
644
644
|
var AlwaysSharedCopyTracker_instance;
|
|
@@ -660,7 +660,7 @@
|
|
|
660
660
|
checkBounds(fromInt(size), fromInt(startIndex), fromInt(endIndex));
|
|
661
661
|
// Inline function 'kotlinx.io.writeToInternalBuffer' call
|
|
662
662
|
// Inline function 'kotlinx.io.commonWriteUtf8' call
|
|
663
|
-
var this_0 = _this__u8e3s4.
|
|
663
|
+
var this_0 = _this__u8e3s4.i1h();
|
|
664
664
|
var i = startIndex;
|
|
665
665
|
while (i < endIndex) {
|
|
666
666
|
var p0 = i;
|
|
@@ -670,15 +670,15 @@
|
|
|
670
670
|
if (c < 128) {
|
|
671
671
|
$l$block_0: {
|
|
672
672
|
// Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.writeToTail' call
|
|
673
|
-
var tail = this_0.
|
|
673
|
+
var tail = this_0.v1h(1);
|
|
674
674
|
var ctx = get_SegmentWriteContextImpl();
|
|
675
675
|
var segmentOffset = -i | 0;
|
|
676
676
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
677
|
-
var b = i + tail.
|
|
677
|
+
var b = i + tail.w1i() | 0;
|
|
678
678
|
var runLimit = Math.min(endIndex, b);
|
|
679
679
|
var _unary__edvuaz = i;
|
|
680
680
|
i = _unary__edvuaz + 1 | 0;
|
|
681
|
-
ctx.
|
|
681
|
+
ctx.g1j(tail, segmentOffset + _unary__edvuaz | 0, toByte(c));
|
|
682
682
|
$l$loop: while (i < runLimit) {
|
|
683
683
|
var p0_0 = i;
|
|
684
684
|
// Inline function 'kotlin.code' call
|
|
@@ -688,95 +688,95 @@
|
|
|
688
688
|
break $l$loop;
|
|
689
689
|
var _unary__edvuaz_0 = i;
|
|
690
690
|
i = _unary__edvuaz_0 + 1 | 0;
|
|
691
|
-
ctx.
|
|
691
|
+
ctx.g1j(tail, segmentOffset + _unary__edvuaz_0 | 0, toByte(c));
|
|
692
692
|
}
|
|
693
693
|
var bytesWritten = i + segmentOffset | 0;
|
|
694
694
|
if (bytesWritten === 1) {
|
|
695
|
-
tail.
|
|
695
|
+
tail.o1h_1 = tail.o1h_1 + bytesWritten | 0;
|
|
696
696
|
var tmp = this_0;
|
|
697
697
|
// Inline function 'kotlin.Long.plus' call
|
|
698
|
-
var this_3 = this_0.
|
|
699
|
-
tmp.
|
|
698
|
+
var this_3 = this_0.h1h_1;
|
|
699
|
+
tmp.h1h_1 = add(this_3, fromInt(bytesWritten));
|
|
700
700
|
break $l$block_0;
|
|
701
701
|
}
|
|
702
702
|
// Inline function 'kotlin.check' call
|
|
703
|
-
if (!(0 <= bytesWritten ? bytesWritten <= tail.
|
|
704
|
-
var message = 'Invalid number of bytes written: ' + bytesWritten + '. Should be in 0..' + tail.
|
|
703
|
+
if (!(0 <= bytesWritten ? bytesWritten <= tail.w1i() : false)) {
|
|
704
|
+
var message = 'Invalid number of bytes written: ' + bytesWritten + '. Should be in 0..' + tail.w1i();
|
|
705
705
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
706
706
|
}
|
|
707
707
|
if (!(bytesWritten === 0)) {
|
|
708
|
-
tail.
|
|
708
|
+
tail.o1h_1 = tail.o1h_1 + bytesWritten | 0;
|
|
709
709
|
var tmp_0 = this_0;
|
|
710
710
|
// Inline function 'kotlin.Long.plus' call
|
|
711
|
-
var this_4 = this_0.
|
|
712
|
-
tmp_0.
|
|
711
|
+
var this_4 = this_0.h1h_1;
|
|
712
|
+
tmp_0.h1h_1 = add(this_4, fromInt(bytesWritten));
|
|
713
713
|
break $l$block_0;
|
|
714
714
|
}
|
|
715
715
|
if (isEmpty(tail)) {
|
|
716
|
-
this_0.
|
|
716
|
+
this_0.l1i();
|
|
717
717
|
}
|
|
718
718
|
}
|
|
719
719
|
} else if (c < 2048) {
|
|
720
720
|
$l$block_2: {
|
|
721
721
|
// Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.writeToTail' call
|
|
722
|
-
var tail_0 = this_0.
|
|
723
|
-
get_SegmentWriteContextImpl().
|
|
722
|
+
var tail_0 = this_0.v1h(2);
|
|
723
|
+
get_SegmentWriteContextImpl().f1j(tail_0, 0, toByte(c >> 6 | 192), toByte(c & 63 | 128));
|
|
724
724
|
var bytesWritten_0 = 2;
|
|
725
725
|
if (bytesWritten_0 === 2) {
|
|
726
|
-
tail_0.
|
|
726
|
+
tail_0.o1h_1 = tail_0.o1h_1 + bytesWritten_0 | 0;
|
|
727
727
|
var tmp_1 = this_0;
|
|
728
728
|
// Inline function 'kotlin.Long.plus' call
|
|
729
|
-
var this_5 = this_0.
|
|
730
|
-
tmp_1.
|
|
729
|
+
var this_5 = this_0.h1h_1;
|
|
730
|
+
tmp_1.h1h_1 = add(this_5, fromInt(bytesWritten_0));
|
|
731
731
|
break $l$block_2;
|
|
732
732
|
}
|
|
733
733
|
// Inline function 'kotlin.check' call
|
|
734
|
-
if (!(0 <= bytesWritten_0 ? bytesWritten_0 <= tail_0.
|
|
735
|
-
var message_0 = 'Invalid number of bytes written: ' + bytesWritten_0 + '. Should be in 0..' + tail_0.
|
|
734
|
+
if (!(0 <= bytesWritten_0 ? bytesWritten_0 <= tail_0.w1i() : false)) {
|
|
735
|
+
var message_0 = 'Invalid number of bytes written: ' + bytesWritten_0 + '. Should be in 0..' + tail_0.w1i();
|
|
736
736
|
throw IllegalStateException_init_$Create$(toString(message_0));
|
|
737
737
|
}
|
|
738
738
|
if (!(bytesWritten_0 === 0)) {
|
|
739
|
-
tail_0.
|
|
739
|
+
tail_0.o1h_1 = tail_0.o1h_1 + bytesWritten_0 | 0;
|
|
740
740
|
var tmp_2 = this_0;
|
|
741
741
|
// Inline function 'kotlin.Long.plus' call
|
|
742
|
-
var this_6 = this_0.
|
|
743
|
-
tmp_2.
|
|
742
|
+
var this_6 = this_0.h1h_1;
|
|
743
|
+
tmp_2.h1h_1 = add(this_6, fromInt(bytesWritten_0));
|
|
744
744
|
break $l$block_2;
|
|
745
745
|
}
|
|
746
746
|
if (isEmpty(tail_0)) {
|
|
747
|
-
this_0.
|
|
747
|
+
this_0.l1i();
|
|
748
748
|
}
|
|
749
749
|
}
|
|
750
750
|
i = i + 1 | 0;
|
|
751
751
|
} else if (c < 55296 || c > 57343) {
|
|
752
752
|
$l$block_4: {
|
|
753
753
|
// Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.writeToTail' call
|
|
754
|
-
var tail_1 = this_0.
|
|
755
|
-
get_SegmentWriteContextImpl().
|
|
754
|
+
var tail_1 = this_0.v1h(3);
|
|
755
|
+
get_SegmentWriteContextImpl().e1j(tail_1, 0, toByte(c >> 12 | 224), toByte(c >> 6 & 63 | 128), toByte(c & 63 | 128));
|
|
756
756
|
var bytesWritten_1 = 3;
|
|
757
757
|
if (bytesWritten_1 === 3) {
|
|
758
|
-
tail_1.
|
|
758
|
+
tail_1.o1h_1 = tail_1.o1h_1 + bytesWritten_1 | 0;
|
|
759
759
|
var tmp_3 = this_0;
|
|
760
760
|
// Inline function 'kotlin.Long.plus' call
|
|
761
|
-
var this_7 = this_0.
|
|
762
|
-
tmp_3.
|
|
761
|
+
var this_7 = this_0.h1h_1;
|
|
762
|
+
tmp_3.h1h_1 = add(this_7, fromInt(bytesWritten_1));
|
|
763
763
|
break $l$block_4;
|
|
764
764
|
}
|
|
765
765
|
// Inline function 'kotlin.check' call
|
|
766
|
-
if (!(0 <= bytesWritten_1 ? bytesWritten_1 <= tail_1.
|
|
767
|
-
var message_1 = 'Invalid number of bytes written: ' + bytesWritten_1 + '. Should be in 0..' + tail_1.
|
|
766
|
+
if (!(0 <= bytesWritten_1 ? bytesWritten_1 <= tail_1.w1i() : false)) {
|
|
767
|
+
var message_1 = 'Invalid number of bytes written: ' + bytesWritten_1 + '. Should be in 0..' + tail_1.w1i();
|
|
768
768
|
throw IllegalStateException_init_$Create$(toString(message_1));
|
|
769
769
|
}
|
|
770
770
|
if (!(bytesWritten_1 === 0)) {
|
|
771
|
-
tail_1.
|
|
771
|
+
tail_1.o1h_1 = tail_1.o1h_1 + bytesWritten_1 | 0;
|
|
772
772
|
var tmp_4 = this_0;
|
|
773
773
|
// Inline function 'kotlin.Long.plus' call
|
|
774
|
-
var this_8 = this_0.
|
|
775
|
-
tmp_4.
|
|
774
|
+
var this_8 = this_0.h1h_1;
|
|
775
|
+
tmp_4.h1h_1 = add(this_8, fromInt(bytesWritten_1));
|
|
776
776
|
break $l$block_4;
|
|
777
777
|
}
|
|
778
778
|
if (isEmpty(tail_1)) {
|
|
779
|
-
this_0.
|
|
779
|
+
this_0.l1i();
|
|
780
780
|
}
|
|
781
781
|
}
|
|
782
782
|
i = i + 1 | 0;
|
|
@@ -795,45 +795,45 @@
|
|
|
795
795
|
// Inline function 'kotlin.code' call
|
|
796
796
|
var this_10 = _Char___init__impl__6a9atx(63);
|
|
797
797
|
var tmp$ret$26 = Char__toInt_impl_vasixd(this_10);
|
|
798
|
-
this_0.
|
|
798
|
+
this_0.g1i(toByte(tmp$ret$26));
|
|
799
799
|
i = i + 1 | 0;
|
|
800
800
|
} else {
|
|
801
801
|
var codePoint = 65536 + ((c & 1023) << 10 | low & 1023) | 0;
|
|
802
802
|
$l$block_6: {
|
|
803
803
|
// Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.writeToTail' call
|
|
804
|
-
var tail_2 = this_0.
|
|
805
|
-
get_SegmentWriteContextImpl().
|
|
804
|
+
var tail_2 = this_0.v1h(4);
|
|
805
|
+
get_SegmentWriteContextImpl().d1j(tail_2, 0, toByte(codePoint >> 18 | 240), toByte(codePoint >> 12 & 63 | 128), toByte(codePoint >> 6 & 63 | 128), toByte(codePoint & 63 | 128));
|
|
806
806
|
var bytesWritten_2 = 4;
|
|
807
807
|
if (bytesWritten_2 === 4) {
|
|
808
|
-
tail_2.
|
|
808
|
+
tail_2.o1h_1 = tail_2.o1h_1 + bytesWritten_2 | 0;
|
|
809
809
|
var tmp_6 = this_0;
|
|
810
810
|
// Inline function 'kotlin.Long.plus' call
|
|
811
|
-
var this_11 = this_0.
|
|
812
|
-
tmp_6.
|
|
811
|
+
var this_11 = this_0.h1h_1;
|
|
812
|
+
tmp_6.h1h_1 = add(this_11, fromInt(bytesWritten_2));
|
|
813
813
|
break $l$block_6;
|
|
814
814
|
}
|
|
815
815
|
// Inline function 'kotlin.check' call
|
|
816
|
-
if (!(0 <= bytesWritten_2 ? bytesWritten_2 <= tail_2.
|
|
817
|
-
var message_2 = 'Invalid number of bytes written: ' + bytesWritten_2 + '. Should be in 0..' + tail_2.
|
|
816
|
+
if (!(0 <= bytesWritten_2 ? bytesWritten_2 <= tail_2.w1i() : false)) {
|
|
817
|
+
var message_2 = 'Invalid number of bytes written: ' + bytesWritten_2 + '. Should be in 0..' + tail_2.w1i();
|
|
818
818
|
throw IllegalStateException_init_$Create$(toString(message_2));
|
|
819
819
|
}
|
|
820
820
|
if (!(bytesWritten_2 === 0)) {
|
|
821
|
-
tail_2.
|
|
821
|
+
tail_2.o1h_1 = tail_2.o1h_1 + bytesWritten_2 | 0;
|
|
822
822
|
var tmp_7 = this_0;
|
|
823
823
|
// Inline function 'kotlin.Long.plus' call
|
|
824
|
-
var this_12 = this_0.
|
|
825
|
-
tmp_7.
|
|
824
|
+
var this_12 = this_0.h1h_1;
|
|
825
|
+
tmp_7.h1h_1 = add(this_12, fromInt(bytesWritten_2));
|
|
826
826
|
break $l$block_6;
|
|
827
827
|
}
|
|
828
828
|
if (isEmpty(tail_2)) {
|
|
829
|
-
this_0.
|
|
829
|
+
this_0.l1i();
|
|
830
830
|
}
|
|
831
831
|
}
|
|
832
832
|
i = i + 2 | 0;
|
|
833
833
|
}
|
|
834
834
|
}
|
|
835
835
|
}
|
|
836
|
-
_this__u8e3s4.
|
|
836
|
+
_this__u8e3s4.k1h();
|
|
837
837
|
}
|
|
838
838
|
function FileSystem() {
|
|
839
839
|
}
|
|
@@ -841,9 +841,9 @@
|
|
|
841
841
|
isRegularFile = isRegularFile === VOID ? false : isRegularFile;
|
|
842
842
|
isDirectory = isDirectory === VOID ? false : isDirectory;
|
|
843
843
|
size = size === VOID ? new Long(0, 0) : size;
|
|
844
|
-
this.
|
|
845
|
-
this.
|
|
846
|
-
this.
|
|
844
|
+
this.n1j_1 = isRegularFile;
|
|
845
|
+
this.o1j_1 = isDirectory;
|
|
846
|
+
this.p1j_1 = size;
|
|
847
847
|
}
|
|
848
848
|
function SystemFileSystemImpl() {
|
|
849
849
|
}
|
|
@@ -946,27 +946,27 @@
|
|
|
946
946
|
}
|
|
947
947
|
function SegmentReadContextImpl$1() {
|
|
948
948
|
}
|
|
949
|
-
protoOf(SegmentReadContextImpl$1).
|
|
950
|
-
return segment.
|
|
949
|
+
protoOf(SegmentReadContextImpl$1).j1i = function (segment, offset) {
|
|
950
|
+
return segment.y1i(offset);
|
|
951
951
|
};
|
|
952
952
|
function SegmentWriteContextImpl$1() {
|
|
953
953
|
}
|
|
954
|
-
protoOf(SegmentWriteContextImpl$1).
|
|
955
|
-
segment.
|
|
954
|
+
protoOf(SegmentWriteContextImpl$1).g1j = function (segment, offset, value) {
|
|
955
|
+
segment.z1i(offset, value);
|
|
956
956
|
};
|
|
957
|
-
protoOf(SegmentWriteContextImpl$1).
|
|
958
|
-
segment.
|
|
957
|
+
protoOf(SegmentWriteContextImpl$1).f1j = function (segment, offset, b0, b1) {
|
|
958
|
+
segment.a1j(offset, b0, b1);
|
|
959
959
|
};
|
|
960
|
-
protoOf(SegmentWriteContextImpl$1).
|
|
961
|
-
segment.
|
|
960
|
+
protoOf(SegmentWriteContextImpl$1).e1j = function (segment, offset, b0, b1, b2) {
|
|
961
|
+
segment.b1j(offset, b0, b1, b2);
|
|
962
962
|
};
|
|
963
|
-
protoOf(SegmentWriteContextImpl$1).
|
|
964
|
-
segment.
|
|
963
|
+
protoOf(SegmentWriteContextImpl$1).d1j = function (segment, offset, b0, b1, b2, b3) {
|
|
964
|
+
segment.c1j(offset, b0, b1, b2, b3);
|
|
965
965
|
};
|
|
966
966
|
function BufferIterationContextImpl$1() {
|
|
967
967
|
}
|
|
968
|
-
protoOf(BufferIterationContextImpl$1).
|
|
969
|
-
return get_SegmentReadContextImpl().
|
|
968
|
+
protoOf(BufferIterationContextImpl$1).j1i = function (segment, offset) {
|
|
969
|
+
return get_SegmentReadContextImpl().j1i(segment, offset);
|
|
970
970
|
};
|
|
971
971
|
var properties_initialized_UnsafeBufferOperations_kt_2xfgoc;
|
|
972
972
|
function _init_properties_UnsafeBufferOperations_kt__xw75gy() {
|
|
@@ -1047,15 +1047,15 @@
|
|
|
1047
1047
|
}
|
|
1048
1048
|
}
|
|
1049
1049
|
function SegmentPool() {
|
|
1050
|
-
this.v1h_1 = 0;
|
|
1051
1050
|
this.w1h_1 = 0;
|
|
1051
|
+
this.x1h_1 = 0;
|
|
1052
1052
|
}
|
|
1053
|
-
protoOf(SegmentPool).
|
|
1054
|
-
return Companion_instance.
|
|
1053
|
+
protoOf(SegmentPool).y1h = function () {
|
|
1054
|
+
return Companion_instance.r1i();
|
|
1055
1055
|
};
|
|
1056
|
-
protoOf(SegmentPool).
|
|
1056
|
+
protoOf(SegmentPool).k1i = function (segment) {
|
|
1057
1057
|
};
|
|
1058
|
-
protoOf(SegmentPool).
|
|
1058
|
+
protoOf(SegmentPool).u1i = function () {
|
|
1059
1059
|
return AlwaysSharedCopyTracker_getInstance();
|
|
1060
1060
|
};
|
|
1061
1061
|
var SegmentPool_instance;
|
|
@@ -1213,7 +1213,7 @@
|
|
|
1213
1213
|
}
|
|
1214
1214
|
function SystemFileSystem$o$delete$lambda($path) {
|
|
1215
1215
|
return function () {
|
|
1216
|
-
var tmp0_elvis_lhs = get_fs().statSync($path.
|
|
1216
|
+
var tmp0_elvis_lhs = get_fs().statSync($path.q1j_1);
|
|
1217
1217
|
var tmp;
|
|
1218
1218
|
if (tmp0_elvis_lhs == null) {
|
|
1219
1219
|
throw new FileNotFoundException('File does not exist: ' + $path.toString());
|
|
@@ -1223,10 +1223,10 @@
|
|
|
1223
1223
|
var stats = tmp;
|
|
1224
1224
|
var tmp_0;
|
|
1225
1225
|
if (stats.isDirectory()) {
|
|
1226
|
-
get_fs().rmdirSync($path.
|
|
1226
|
+
get_fs().rmdirSync($path.q1j_1);
|
|
1227
1227
|
tmp_0 = Unit_instance;
|
|
1228
1228
|
} else {
|
|
1229
|
-
get_fs().rmSync($path.
|
|
1229
|
+
get_fs().rmSync($path.q1j_1);
|
|
1230
1230
|
tmp_0 = Unit_instance;
|
|
1231
1231
|
}
|
|
1232
1232
|
return Unit_instance;
|
|
@@ -1234,7 +1234,7 @@
|
|
|
1234
1234
|
}
|
|
1235
1235
|
function SystemFileSystem$o$metadataOrNull$lambda($path, $metadata) {
|
|
1236
1236
|
return function () {
|
|
1237
|
-
var tmp0_elvis_lhs = get_fs().statSync($path.
|
|
1237
|
+
var tmp0_elvis_lhs = get_fs().statSync($path.q1j_1);
|
|
1238
1238
|
var tmp;
|
|
1239
1239
|
if (tmp0_elvis_lhs == null) {
|
|
1240
1240
|
return Unit_instance;
|
|
@@ -1251,11 +1251,11 @@
|
|
|
1251
1251
|
function SystemFileSystem$1() {
|
|
1252
1252
|
SystemFileSystemImpl.call(this);
|
|
1253
1253
|
}
|
|
1254
|
-
protoOf(SystemFileSystem$1).
|
|
1255
|
-
return get_fs().existsSync(path.
|
|
1254
|
+
protoOf(SystemFileSystem$1).h1j = function (path) {
|
|
1255
|
+
return get_fs().existsSync(path.q1j_1);
|
|
1256
1256
|
};
|
|
1257
|
-
protoOf(SystemFileSystem$1).
|
|
1258
|
-
if (!this.
|
|
1257
|
+
protoOf(SystemFileSystem$1).i1j = function (path, mustExist) {
|
|
1258
|
+
if (!this.h1j(path)) {
|
|
1259
1259
|
if (mustExist) {
|
|
1260
1260
|
throw new FileNotFoundException('File does not exist: ' + path.toString());
|
|
1261
1261
|
}
|
|
@@ -1269,13 +1269,13 @@
|
|
|
1269
1269
|
throw IOException_init_$Create$_1('Delete failed for ' + path.toString(), tmp0_safe_receiver);
|
|
1270
1270
|
}
|
|
1271
1271
|
};
|
|
1272
|
-
protoOf(SystemFileSystem$1).
|
|
1273
|
-
var metadata = this.
|
|
1272
|
+
protoOf(SystemFileSystem$1).k1j = function (path, mustCreate) {
|
|
1273
|
+
var metadata = this.r1j(path);
|
|
1274
1274
|
if (!(metadata == null)) {
|
|
1275
1275
|
if (mustCreate) {
|
|
1276
1276
|
throw IOException_init_$Create$_0('Path already exists: ' + path.toString());
|
|
1277
1277
|
}
|
|
1278
|
-
if (metadata.
|
|
1278
|
+
if (metadata.n1j_1) {
|
|
1279
1279
|
throw IOException_init_$Create$_0("Path already exists and it's a file: " + path.toString());
|
|
1280
1280
|
}
|
|
1281
1281
|
return Unit_instance;
|
|
@@ -1283,9 +1283,9 @@
|
|
|
1283
1283
|
// Inline function 'kotlin.collections.arrayListOf' call
|
|
1284
1284
|
var parts = ArrayList_init_$Create$();
|
|
1285
1285
|
var p = path;
|
|
1286
|
-
while (!(p == null) && !this.
|
|
1286
|
+
while (!(p == null) && !this.h1j(p)) {
|
|
1287
1287
|
parts.j(p.toString());
|
|
1288
|
-
p = p.
|
|
1288
|
+
p = p.s1j();
|
|
1289
1289
|
}
|
|
1290
1290
|
// Inline function 'kotlin.collections.forEach' call
|
|
1291
1291
|
var _iterator__ex2g4s = asReversed(parts).l();
|
|
@@ -1294,8 +1294,8 @@
|
|
|
1294
1294
|
get_fs().mkdirSync(element);
|
|
1295
1295
|
}
|
|
1296
1296
|
};
|
|
1297
|
-
protoOf(SystemFileSystem$1).
|
|
1298
|
-
if (!this.
|
|
1297
|
+
protoOf(SystemFileSystem$1).r1j = function (path) {
|
|
1298
|
+
if (!this.h1j(path))
|
|
1299
1299
|
return null;
|
|
1300
1300
|
var metadata = {_v: null};
|
|
1301
1301
|
var tmp0_safe_receiver = withCaughtException(SystemFileSystem$o$metadataOrNull$lambda(path, metadata));
|
|
@@ -1307,7 +1307,7 @@
|
|
|
1307
1307
|
}
|
|
1308
1308
|
return metadata._v;
|
|
1309
1309
|
};
|
|
1310
|
-
protoOf(SystemFileSystem$1).
|
|
1310
|
+
protoOf(SystemFileSystem$1).m1j = function (path, append) {
|
|
1311
1311
|
return new FileSink(path, append);
|
|
1312
1312
|
};
|
|
1313
1313
|
var properties_initialized_FileSystemNodeJs_kt_vmmd20;
|
|
@@ -1328,27 +1328,27 @@
|
|
|
1328
1328
|
}
|
|
1329
1329
|
var SystemPathSeparator$delegate;
|
|
1330
1330
|
function Path_0(rawPath, any) {
|
|
1331
|
-
this.
|
|
1331
|
+
this.q1j_1 = removeTrailingSeparators(rawPath);
|
|
1332
1332
|
}
|
|
1333
|
-
protoOf(Path_0).
|
|
1333
|
+
protoOf(Path_0).s1j = function () {
|
|
1334
1334
|
// Inline function 'kotlin.text.isEmpty' call
|
|
1335
|
-
var this_0 = this.
|
|
1335
|
+
var this_0 = this.q1j_1;
|
|
1336
1336
|
if (charSequenceLength(this_0) === 0)
|
|
1337
1337
|
return null;
|
|
1338
1338
|
if (get_isWindows()) {
|
|
1339
|
-
if (!contains(this.
|
|
1339
|
+
if (!contains(this.q1j_1, _Char___init__impl__6a9atx(47)) && !contains(this.q1j_1, _Char___init__impl__6a9atx(92))) {
|
|
1340
1340
|
return null;
|
|
1341
1341
|
}
|
|
1342
|
-
} else if (!contains(this.
|
|
1342
|
+
} else if (!contains(this.q1j_1, get_SystemPathSeparator())) {
|
|
1343
1343
|
return null;
|
|
1344
1344
|
}
|
|
1345
|
-
var p = get_path().dirname(this.
|
|
1345
|
+
var p = get_path().dirname(this.q1j_1);
|
|
1346
1346
|
var tmp;
|
|
1347
1347
|
// Inline function 'kotlin.text.isEmpty' call
|
|
1348
1348
|
if (charSequenceLength(p) === 0) {
|
|
1349
1349
|
tmp = null;
|
|
1350
1350
|
} else {
|
|
1351
|
-
if (p === this.
|
|
1351
|
+
if (p === this.q1j_1) {
|
|
1352
1352
|
tmp = null;
|
|
1353
1353
|
} else {
|
|
1354
1354
|
tmp = Path_1(p);
|
|
@@ -1357,17 +1357,17 @@
|
|
|
1357
1357
|
return tmp;
|
|
1358
1358
|
};
|
|
1359
1359
|
protoOf(Path_0).toString = function () {
|
|
1360
|
-
return this.
|
|
1360
|
+
return this.q1j_1;
|
|
1361
1361
|
};
|
|
1362
1362
|
protoOf(Path_0).equals = function (other) {
|
|
1363
1363
|
if (this === other)
|
|
1364
1364
|
return true;
|
|
1365
1365
|
if (!(other instanceof Path_0))
|
|
1366
1366
|
return false;
|
|
1367
|
-
return this.
|
|
1367
|
+
return this.q1j_1 === other.q1j_1;
|
|
1368
1368
|
};
|
|
1369
1369
|
protoOf(Path_0).hashCode = function () {
|
|
1370
|
-
return getStringHashCode(this.
|
|
1370
|
+
return getStringHashCode(this.q1j_1);
|
|
1371
1371
|
};
|
|
1372
1372
|
function Path_1(path) {
|
|
1373
1373
|
_init_properties_PathsNodeJs_kt__bvvvsp();
|
|
@@ -1381,31 +1381,31 @@
|
|
|
1381
1381
|
null;
|
|
1382
1382
|
else {
|
|
1383
1383
|
// Inline function 'kotlin.also' call
|
|
1384
|
-
throw IOException_init_$Create$_1('Failed to open a file ' + path.
|
|
1384
|
+
throw IOException_init_$Create$_1('Failed to open a file ' + path.q1j_1 + '.', tmp0_safe_receiver);
|
|
1385
1385
|
}
|
|
1386
1386
|
if (fd._v < 0)
|
|
1387
|
-
throw IOException_init_$Create$_0('Failed to open a file ' + path.
|
|
1387
|
+
throw IOException_init_$Create$_0('Failed to open a file ' + path.q1j_1 + '.');
|
|
1388
1388
|
return fd._v;
|
|
1389
1389
|
}
|
|
1390
1390
|
function FileSink$open$lambda($fd, $path, $flags) {
|
|
1391
1391
|
return function () {
|
|
1392
|
-
$fd._v = get_fs().openSync($path.
|
|
1392
|
+
$fd._v = get_fs().openSync($path.q1j_1, $flags);
|
|
1393
1393
|
return Unit_instance;
|
|
1394
1394
|
};
|
|
1395
1395
|
}
|
|
1396
1396
|
function FileSink$write$lambda(this$0, $buf) {
|
|
1397
1397
|
return function () {
|
|
1398
|
-
get_fs().writeFileSync(this$0.
|
|
1398
|
+
get_fs().writeFileSync(this$0.u1j_1, $buf);
|
|
1399
1399
|
return Unit_instance;
|
|
1400
1400
|
};
|
|
1401
1401
|
}
|
|
1402
1402
|
function FileSink(path, append) {
|
|
1403
|
-
this.
|
|
1404
|
-
this.
|
|
1403
|
+
this.t1j_1 = false;
|
|
1404
|
+
this.u1j_1 = open(this, path, append);
|
|
1405
1405
|
}
|
|
1406
|
-
protoOf(FileSink).
|
|
1406
|
+
protoOf(FileSink).a1i = function (source, byteCount) {
|
|
1407
1407
|
// Inline function 'kotlin.check' call
|
|
1408
|
-
if (!!this.
|
|
1408
|
+
if (!!this.t1j_1) {
|
|
1409
1409
|
var message = 'Sink is closed.';
|
|
1410
1410
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
1411
1411
|
}
|
|
@@ -1419,14 +1419,14 @@
|
|
|
1419
1419
|
var segmentBytes = 0;
|
|
1420
1420
|
// Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.readFromHead' call
|
|
1421
1421
|
// Inline function 'kotlin.require' call
|
|
1422
|
-
if (!!source.
|
|
1422
|
+
if (!!source.j1h()) {
|
|
1423
1423
|
var message_0 = 'Buffer is empty';
|
|
1424
1424
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
1425
1425
|
}
|
|
1426
|
-
var head = ensureNotNull(source.
|
|
1427
|
-
var tmp0 = head.
|
|
1428
|
-
var tmp2 = head.
|
|
1429
|
-
segmentBytes = head.
|
|
1426
|
+
var head = ensureNotNull(source.f1h_1);
|
|
1427
|
+
var tmp0 = head.x1i(true);
|
|
1428
|
+
var tmp2 = head.n1h_1;
|
|
1429
|
+
segmentBytes = head.o1h_1 - tmp2 | 0;
|
|
1430
1430
|
var buf = get_buffer().Buffer.allocUnsafe(segmentBytes);
|
|
1431
1431
|
var inductionVariable = 0;
|
|
1432
1432
|
var last = segmentBytes;
|
|
@@ -1450,7 +1450,7 @@
|
|
|
1450
1450
|
throw IllegalStateException_init_$Create$('Returned negative read bytes count');
|
|
1451
1451
|
if (bytesRead > head.o())
|
|
1452
1452
|
throw IllegalStateException_init_$Create$('Returned too many bytes');
|
|
1453
|
-
source.
|
|
1453
|
+
source.t1h(fromInt(bytesRead));
|
|
1454
1454
|
}
|
|
1455
1455
|
var tmp0_0 = remainingBytes;
|
|
1456
1456
|
// Inline function 'kotlin.Long.minus' call
|
|
@@ -1458,10 +1458,10 @@
|
|
|
1458
1458
|
remainingBytes = subtract(tmp0_0, fromInt(other));
|
|
1459
1459
|
}
|
|
1460
1460
|
};
|
|
1461
|
-
protoOf(FileSink).
|
|
1462
|
-
if (!this.
|
|
1463
|
-
this.
|
|
1464
|
-
get_fs().closeSync(this.
|
|
1461
|
+
protoOf(FileSink).i1i = function () {
|
|
1462
|
+
if (!this.t1j_1) {
|
|
1463
|
+
this.t1j_1 = true;
|
|
1464
|
+
get_fs().closeSync(this.u1j_1);
|
|
1465
1465
|
}
|
|
1466
1466
|
};
|
|
1467
1467
|
function SystemPathSeparator$delegate$lambda() {
|
|
@@ -1486,8 +1486,8 @@
|
|
|
1486
1486
|
}
|
|
1487
1487
|
}
|
|
1488
1488
|
//region block: post-declaration
|
|
1489
|
-
protoOf(SystemFileSystemImpl).
|
|
1490
|
-
protoOf(SystemFileSystemImpl).
|
|
1489
|
+
protoOf(SystemFileSystemImpl).j1j = delete$default;
|
|
1490
|
+
protoOf(SystemFileSystemImpl).l1j = createDirectories$default;
|
|
1491
1491
|
//endregion
|
|
1492
1492
|
//region block: init
|
|
1493
1493
|
Companion_instance = new Companion();
|