game_client_logic_deb 1.8.305 → 1.8.310
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 +56 -56
- package/Kosi-Kodein-kodein-di.js +511 -511
- package/Kotlin-DateTime-library-kotlinx-datetime.js +2 -2
- package/Logic_Debertz-core.js +1004 -1004
- package/Logic_Debertz-engine.js +10664 -10673
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_client.d.ts +1 -0
- package/Logic_Debertz-game_client.js +2742 -2750
- package/Logic_Debertz-game_client.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +6 -6
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-coroutines-core.js +8 -8
- package/kotlinx-coroutines-core.js.map +1 -1
- package/kotlinx-io-kotlinx-io-core.js +310 -310
- package/package.json +1 -1
- package/raspberry-cardgame-lib-core.js +166 -166
- package/raspberry-cardgame-lib-random.js +194 -184
- package/raspberry-cardgame-lib-random.js.map +1 -1
|
@@ -66,10 +66,10 @@
|
|
|
66
66
|
mustExist = mustExist === VOID ? true : mustExist;
|
|
67
67
|
var tmp;
|
|
68
68
|
if ($super === VOID) {
|
|
69
|
-
this.
|
|
69
|
+
this.t63(path, mustExist);
|
|
70
70
|
tmp = Unit_instance;
|
|
71
71
|
} else {
|
|
72
|
-
tmp = $super.
|
|
72
|
+
tmp = $super.t63.call(this, path, mustExist);
|
|
73
73
|
}
|
|
74
74
|
return tmp;
|
|
75
75
|
}
|
|
@@ -77,10 +77,10 @@
|
|
|
77
77
|
mustCreate = mustCreate === VOID ? false : mustCreate;
|
|
78
78
|
var tmp;
|
|
79
79
|
if ($super === VOID) {
|
|
80
|
-
this.
|
|
80
|
+
this.v63(path, mustCreate);
|
|
81
81
|
tmp = Unit_instance;
|
|
82
82
|
} else {
|
|
83
|
-
tmp = $super.
|
|
83
|
+
tmp = $super.v63.call(this, path, mustCreate);
|
|
84
84
|
}
|
|
85
85
|
return tmp;
|
|
86
86
|
}
|
|
@@ -128,33 +128,33 @@
|
|
|
128
128
|
}
|
|
129
129
|
}
|
|
130
130
|
function Buffer() {
|
|
131
|
-
this.
|
|
132
|
-
this.
|
|
133
|
-
this.
|
|
131
|
+
this.r61_1 = null;
|
|
132
|
+
this.s61_1 = null;
|
|
133
|
+
this.t61_1 = new Long(0, 0);
|
|
134
134
|
}
|
|
135
135
|
protoOf(Buffer).m = function () {
|
|
136
|
-
return this.
|
|
136
|
+
return this.t61_1;
|
|
137
137
|
};
|
|
138
|
-
protoOf(Buffer).
|
|
138
|
+
protoOf(Buffer).u61 = function () {
|
|
139
139
|
return this;
|
|
140
140
|
};
|
|
141
|
-
protoOf(Buffer).
|
|
141
|
+
protoOf(Buffer).v61 = function () {
|
|
142
142
|
return this.m().equals(new Long(0, 0));
|
|
143
143
|
};
|
|
144
|
-
protoOf(Buffer).
|
|
144
|
+
protoOf(Buffer).w61 = function () {
|
|
145
145
|
return Unit_instance;
|
|
146
146
|
};
|
|
147
|
-
protoOf(Buffer).
|
|
147
|
+
protoOf(Buffer).x61 = function () {
|
|
148
148
|
var result = this.m();
|
|
149
149
|
if (result.equals(new Long(0, 0)))
|
|
150
150
|
return new Long(0, 0);
|
|
151
|
-
var tail = ensureNotNull(this.
|
|
152
|
-
if (tail.
|
|
153
|
-
result = result.x2(toLong(tail.
|
|
151
|
+
var tail = ensureNotNull(this.s61_1);
|
|
152
|
+
if (tail.a62_1 < 8192 && tail.c62_1) {
|
|
153
|
+
result = result.x2(toLong(tail.a62_1 - tail.z61_1 | 0));
|
|
154
154
|
}
|
|
155
155
|
return result;
|
|
156
156
|
};
|
|
157
|
-
protoOf(Buffer).
|
|
157
|
+
protoOf(Buffer).f62 = function (byteCount) {
|
|
158
158
|
// Inline function 'kotlinx.io.checkByteCount' call
|
|
159
159
|
// Inline function 'kotlin.require' call
|
|
160
160
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -165,7 +165,7 @@
|
|
|
165
165
|
}
|
|
166
166
|
var remainingByteCount = byteCount;
|
|
167
167
|
while (remainingByteCount.z(new Long(0, 0)) > 0) {
|
|
168
|
-
var tmp0_elvis_lhs = this.
|
|
168
|
+
var tmp0_elvis_lhs = this.r61_1;
|
|
169
169
|
var tmp;
|
|
170
170
|
if (tmp0_elvis_lhs == null) {
|
|
171
171
|
throw EOFException_init_$Create$_0('Buffer exhausted before skipping ' + byteCount.toString() + ' bytes.');
|
|
@@ -175,19 +175,19 @@
|
|
|
175
175
|
var head = tmp;
|
|
176
176
|
// Inline function 'kotlinx.io.minOf' call
|
|
177
177
|
var a = remainingByteCount;
|
|
178
|
-
var b = head.
|
|
178
|
+
var b = head.a62_1 - head.z61_1 | 0;
|
|
179
179
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
180
180
|
var b_0 = toLong(b);
|
|
181
181
|
var toSkip = (a.z(b_0) <= 0 ? a : b_0).e1();
|
|
182
|
-
this.
|
|
182
|
+
this.t61_1 = this.t61_1.x2(toLong(toSkip));
|
|
183
183
|
remainingByteCount = remainingByteCount.x2(toLong(toSkip));
|
|
184
|
-
head.
|
|
185
|
-
if (head.
|
|
186
|
-
this.
|
|
184
|
+
head.z61_1 = head.z61_1 + toSkip | 0;
|
|
185
|
+
if (head.z61_1 === head.a62_1) {
|
|
186
|
+
this.g62();
|
|
187
187
|
}
|
|
188
188
|
}
|
|
189
189
|
};
|
|
190
|
-
protoOf(Buffer).
|
|
190
|
+
protoOf(Buffer).h62 = function (minimumCapacity) {
|
|
191
191
|
// Inline function 'kotlin.require' call
|
|
192
192
|
// Inline function 'kotlin.contracts.contract' call
|
|
193
193
|
if (!(minimumCapacity >= 1 && minimumCapacity <= 8192)) {
|
|
@@ -195,21 +195,21 @@
|
|
|
195
195
|
var message = 'unexpected capacity';
|
|
196
196
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
197
197
|
}
|
|
198
|
-
if (this.
|
|
199
|
-
var result = SegmentPool_instance.
|
|
200
|
-
this.
|
|
201
|
-
this.
|
|
198
|
+
if (this.s61_1 == null) {
|
|
199
|
+
var result = SegmentPool_instance.k62();
|
|
200
|
+
this.r61_1 = result;
|
|
201
|
+
this.s61_1 = result;
|
|
202
202
|
return result;
|
|
203
203
|
}
|
|
204
|
-
var t = ensureNotNull(this.
|
|
205
|
-
if ((t.
|
|
206
|
-
var newTail = t.
|
|
207
|
-
this.
|
|
204
|
+
var t = ensureNotNull(this.s61_1);
|
|
205
|
+
if ((t.a62_1 + minimumCapacity | 0) > 8192 || !t.c62_1) {
|
|
206
|
+
var newTail = t.l62(SegmentPool_instance.k62());
|
|
207
|
+
this.s61_1 = newTail;
|
|
208
208
|
return newTail;
|
|
209
209
|
}
|
|
210
210
|
return t;
|
|
211
211
|
};
|
|
212
|
-
protoOf(Buffer).
|
|
212
|
+
protoOf(Buffer).m62 = function (source, byteCount) {
|
|
213
213
|
// Inline function 'kotlin.require' call
|
|
214
214
|
// Inline function 'kotlin.contracts.contract' call
|
|
215
215
|
if (!!(source === this)) {
|
|
@@ -217,58 +217,58 @@
|
|
|
217
217
|
var message = 'source == this';
|
|
218
218
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
219
219
|
}
|
|
220
|
-
checkOffsetAndCount(source.
|
|
220
|
+
checkOffsetAndCount(source.t61_1, new Long(0, 0), byteCount);
|
|
221
221
|
var remainingByteCount = byteCount;
|
|
222
222
|
while (remainingByteCount.z(new Long(0, 0)) > 0) {
|
|
223
|
-
if (remainingByteCount.z(toLong(ensureNotNull(source.
|
|
224
|
-
var tail = this.
|
|
223
|
+
if (remainingByteCount.z(toLong(ensureNotNull(source.r61_1).q62())) < 0) {
|
|
224
|
+
var tail = this.s61_1;
|
|
225
225
|
var tmp;
|
|
226
|
-
if (!(tail == null) && tail.
|
|
226
|
+
if (!(tail == null) && tail.c62_1) {
|
|
227
227
|
// Inline function 'kotlin.Long.minus' call
|
|
228
228
|
// Inline function 'kotlin.Long.plus' call
|
|
229
229
|
var this_0 = remainingByteCount;
|
|
230
|
-
var other = tail.
|
|
230
|
+
var other = tail.a62_1;
|
|
231
231
|
var this_1 = this_0.w2(toLong(other));
|
|
232
|
-
var other_0 = tail.
|
|
232
|
+
var other_0 = tail.n62() ? 0 : tail.z61_1;
|
|
233
233
|
tmp = this_1.x2(toLong(other_0)).z(new Long(8192, 0)) <= 0;
|
|
234
234
|
} else {
|
|
235
235
|
tmp = false;
|
|
236
236
|
}
|
|
237
237
|
if (tmp) {
|
|
238
|
-
ensureNotNull(source.
|
|
239
|
-
source.
|
|
240
|
-
this.
|
|
238
|
+
ensureNotNull(source.r61_1).p62(tail, remainingByteCount.e1());
|
|
239
|
+
source.t61_1 = source.t61_1.x2(remainingByteCount);
|
|
240
|
+
this.t61_1 = this.t61_1.w2(remainingByteCount);
|
|
241
241
|
return Unit_instance;
|
|
242
242
|
} else {
|
|
243
|
-
source.
|
|
243
|
+
source.r61_1 = ensureNotNull(source.r61_1).o62(remainingByteCount.e1());
|
|
244
244
|
}
|
|
245
245
|
}
|
|
246
|
-
var segmentToMove = ensureNotNull(source.
|
|
247
|
-
var movedByteCount = toLong(segmentToMove.
|
|
248
|
-
source.
|
|
249
|
-
if (source.
|
|
250
|
-
source.
|
|
246
|
+
var segmentToMove = ensureNotNull(source.r61_1);
|
|
247
|
+
var movedByteCount = toLong(segmentToMove.q62());
|
|
248
|
+
source.r61_1 = segmentToMove.r62();
|
|
249
|
+
if (source.r61_1 == null) {
|
|
250
|
+
source.s61_1 = null;
|
|
251
251
|
}
|
|
252
252
|
// Inline function 'kotlinx.io.Buffer.pushSegment' call
|
|
253
|
-
if (this.
|
|
254
|
-
this.
|
|
255
|
-
this.
|
|
253
|
+
if (this.r61_1 == null) {
|
|
254
|
+
this.r61_1 = segmentToMove;
|
|
255
|
+
this.s61_1 = segmentToMove;
|
|
256
256
|
} else if (true) {
|
|
257
|
-
this.
|
|
258
|
-
if (ensureNotNull(this.
|
|
259
|
-
this.
|
|
257
|
+
this.s61_1 = ensureNotNull(this.s61_1).l62(segmentToMove).s62();
|
|
258
|
+
if (ensureNotNull(this.s61_1).e62_1 == null) {
|
|
259
|
+
this.r61_1 = this.s61_1;
|
|
260
260
|
}
|
|
261
261
|
} else {
|
|
262
|
-
this.
|
|
262
|
+
this.s61_1 = ensureNotNull(this.s61_1).l62(segmentToMove);
|
|
263
263
|
}
|
|
264
|
-
source.
|
|
265
|
-
this.
|
|
264
|
+
source.t61_1 = source.t61_1.x2(movedByteCount);
|
|
265
|
+
this.t61_1 = this.t61_1.w2(movedByteCount);
|
|
266
266
|
remainingByteCount = remainingByteCount.x2(movedByteCount);
|
|
267
267
|
}
|
|
268
268
|
};
|
|
269
269
|
protoOf(Buffer).b1y = function (byte) {
|
|
270
|
-
this.
|
|
271
|
-
this.
|
|
270
|
+
this.h62(1).t62(byte);
|
|
271
|
+
this.t61_1 = this.t61_1.w2(new Long(1, 0));
|
|
272
272
|
};
|
|
273
273
|
protoOf(Buffer).k1z = function () {
|
|
274
274
|
return Unit_instance;
|
|
@@ -285,16 +285,16 @@
|
|
|
285
285
|
var builder = StringBuilder_init_$Create$(imul(len, 2) + (this.m().z(toLong(maxPrintableBytes)) > 0 ? 1 : 0) | 0);
|
|
286
286
|
var bytesWritten = 0;
|
|
287
287
|
// Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.forEachSegment' call
|
|
288
|
-
var curr = this.
|
|
288
|
+
var curr = this.r61_1;
|
|
289
289
|
while (!(curr == null)) {
|
|
290
290
|
// Inline function 'kotlinx.io.Buffer.toString.<anonymous>' call
|
|
291
291
|
var ctx = get_SegmentReadContextImpl();
|
|
292
292
|
var segment = curr;
|
|
293
293
|
var idx = 0;
|
|
294
|
-
while (bytesWritten < len && idx < segment.
|
|
294
|
+
while (bytesWritten < len && idx < segment.q62()) {
|
|
295
295
|
var _unary__edvuaz = idx;
|
|
296
296
|
idx = _unary__edvuaz + 1 | 0;
|
|
297
|
-
var b_0 = ctx.
|
|
297
|
+
var b_0 = ctx.u62(segment, _unary__edvuaz);
|
|
298
298
|
bytesWritten = bytesWritten + 1 | 0;
|
|
299
299
|
var tmp = get_HEX_DIGIT_CHARS();
|
|
300
300
|
// Inline function 'kotlinx.io.shr' call
|
|
@@ -305,53 +305,53 @@
|
|
|
305
305
|
var tmp$ret$3 = b_0 & 15;
|
|
306
306
|
tmp_0.p8(tmp_1[tmp$ret$3]);
|
|
307
307
|
}
|
|
308
|
-
curr = curr.
|
|
308
|
+
curr = curr.d62_1;
|
|
309
309
|
}
|
|
310
310
|
if (this.m().z(toLong(maxPrintableBytes)) > 0) {
|
|
311
311
|
builder.p8(_Char___init__impl__6a9atx(8230));
|
|
312
312
|
}
|
|
313
313
|
return 'Buffer(size=' + this.m().toString() + ' hex=' + builder.toString() + ')';
|
|
314
314
|
};
|
|
315
|
-
protoOf(Buffer).
|
|
316
|
-
var oldHead = ensureNotNull(this.
|
|
317
|
-
var nextHead = oldHead.
|
|
318
|
-
this.
|
|
315
|
+
protoOf(Buffer).g62 = function () {
|
|
316
|
+
var oldHead = ensureNotNull(this.r61_1);
|
|
317
|
+
var nextHead = oldHead.d62_1;
|
|
318
|
+
this.r61_1 = nextHead;
|
|
319
319
|
if (nextHead == null) {
|
|
320
|
-
this.
|
|
320
|
+
this.s61_1 = null;
|
|
321
321
|
} else {
|
|
322
|
-
nextHead.
|
|
322
|
+
nextHead.e62_1 = null;
|
|
323
323
|
}
|
|
324
|
-
oldHead.
|
|
325
|
-
SegmentPool_instance.
|
|
324
|
+
oldHead.d62_1 = null;
|
|
325
|
+
SegmentPool_instance.v62(oldHead);
|
|
326
326
|
};
|
|
327
|
-
protoOf(Buffer).
|
|
328
|
-
var oldTail = ensureNotNull(this.
|
|
329
|
-
var newTail = oldTail.
|
|
330
|
-
this.
|
|
327
|
+
protoOf(Buffer).w62 = function () {
|
|
328
|
+
var oldTail = ensureNotNull(this.s61_1);
|
|
329
|
+
var newTail = oldTail.e62_1;
|
|
330
|
+
this.s61_1 = newTail;
|
|
331
331
|
if (newTail == null) {
|
|
332
|
-
this.
|
|
332
|
+
this.r61_1 = null;
|
|
333
333
|
} else {
|
|
334
|
-
newTail.
|
|
334
|
+
newTail.d62_1 = null;
|
|
335
335
|
}
|
|
336
|
-
oldTail.
|
|
337
|
-
SegmentPool_instance.
|
|
336
|
+
oldTail.e62_1 = null;
|
|
337
|
+
SegmentPool_instance.v62(oldTail);
|
|
338
338
|
};
|
|
339
339
|
function buffered(_this__u8e3s4) {
|
|
340
340
|
return new RealSink(_this__u8e3s4);
|
|
341
341
|
}
|
|
342
342
|
function RealSink(sink) {
|
|
343
|
-
this.
|
|
344
|
-
this.
|
|
345
|
-
this.
|
|
343
|
+
this.x62_1 = sink;
|
|
344
|
+
this.y62_1 = false;
|
|
345
|
+
this.z62_1 = new Buffer();
|
|
346
346
|
}
|
|
347
|
-
protoOf(RealSink).
|
|
348
|
-
return this.
|
|
347
|
+
protoOf(RealSink).u61 = function () {
|
|
348
|
+
return this.z62_1;
|
|
349
349
|
};
|
|
350
|
-
protoOf(RealSink).
|
|
350
|
+
protoOf(RealSink).m62 = function (source, byteCount) {
|
|
351
351
|
// Inline function 'kotlinx.io.RealSink.checkNotClosed' call
|
|
352
352
|
// Inline function 'kotlin.check' call
|
|
353
353
|
// Inline function 'kotlin.contracts.contract' call
|
|
354
|
-
if (!!this.
|
|
354
|
+
if (!!this.y62_1) {
|
|
355
355
|
// Inline function 'kotlinx.io.RealSink.checkNotClosed.<anonymous>' call
|
|
356
356
|
var message = 'Sink is closed.';
|
|
357
357
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
@@ -363,30 +363,30 @@
|
|
|
363
363
|
var message_0 = 'byteCount: ' + byteCount.toString();
|
|
364
364
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
365
365
|
}
|
|
366
|
-
this.
|
|
367
|
-
this.
|
|
366
|
+
this.z62_1.m62(source, byteCount);
|
|
367
|
+
this.w61();
|
|
368
368
|
};
|
|
369
|
-
protoOf(RealSink).
|
|
369
|
+
protoOf(RealSink).w61 = function () {
|
|
370
370
|
// Inline function 'kotlinx.io.RealSink.checkNotClosed' call
|
|
371
371
|
// Inline function 'kotlin.check' call
|
|
372
372
|
// Inline function 'kotlin.contracts.contract' call
|
|
373
|
-
if (!!this.
|
|
373
|
+
if (!!this.y62_1) {
|
|
374
374
|
// Inline function 'kotlinx.io.RealSink.checkNotClosed.<anonymous>' call
|
|
375
375
|
var message = 'Sink is closed.';
|
|
376
376
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
377
377
|
}
|
|
378
|
-
var byteCount = this.
|
|
378
|
+
var byteCount = this.z62_1.x61();
|
|
379
379
|
if (byteCount.z(new Long(0, 0)) > 0) {
|
|
380
|
-
this.
|
|
380
|
+
this.x62_1.m62(this.z62_1, byteCount);
|
|
381
381
|
}
|
|
382
382
|
};
|
|
383
383
|
protoOf(RealSink).k1z = function () {
|
|
384
|
-
if (this.
|
|
384
|
+
if (this.y62_1)
|
|
385
385
|
return Unit_instance;
|
|
386
386
|
var thrown = null;
|
|
387
387
|
try {
|
|
388
|
-
if (this.
|
|
389
|
-
this.
|
|
388
|
+
if (this.z62_1.m().z(new Long(0, 0)) > 0) {
|
|
389
|
+
this.x62_1.m62(this.z62_1, this.z62_1.m());
|
|
390
390
|
}
|
|
391
391
|
} catch ($p) {
|
|
392
392
|
if ($p instanceof Error) {
|
|
@@ -397,7 +397,7 @@
|
|
|
397
397
|
}
|
|
398
398
|
}
|
|
399
399
|
try {
|
|
400
|
-
this.
|
|
400
|
+
this.x62_1.k1z();
|
|
401
401
|
} catch ($p) {
|
|
402
402
|
if ($p instanceof Error) {
|
|
403
403
|
var e_0 = $p;
|
|
@@ -407,18 +407,18 @@
|
|
|
407
407
|
throw $p;
|
|
408
408
|
}
|
|
409
409
|
}
|
|
410
|
-
this.
|
|
410
|
+
this.y62_1 = true;
|
|
411
411
|
if (!(thrown == null))
|
|
412
412
|
throw thrown;
|
|
413
413
|
};
|
|
414
414
|
protoOf(RealSink).toString = function () {
|
|
415
|
-
return 'buffered(' + toString(this.
|
|
415
|
+
return 'buffered(' + toString(this.x62_1) + ')';
|
|
416
416
|
};
|
|
417
417
|
function Segment_init_$Init$($this) {
|
|
418
418
|
Segment.call($this);
|
|
419
|
-
$this.
|
|
420
|
-
$this.
|
|
421
|
-
$this.
|
|
419
|
+
$this.y61_1 = new Int8Array(8192);
|
|
420
|
+
$this.c62_1 = true;
|
|
421
|
+
$this.b62_1 = null;
|
|
422
422
|
return $this;
|
|
423
423
|
}
|
|
424
424
|
function Segment_init_$Create$() {
|
|
@@ -426,93 +426,93 @@
|
|
|
426
426
|
}
|
|
427
427
|
function Segment_init_$Init$_0(data, pos, limit, shareToken, owner, $this) {
|
|
428
428
|
Segment.call($this);
|
|
429
|
-
$this.
|
|
430
|
-
$this.
|
|
431
|
-
$this.
|
|
432
|
-
$this.
|
|
433
|
-
$this.
|
|
429
|
+
$this.y61_1 = data;
|
|
430
|
+
$this.z61_1 = pos;
|
|
431
|
+
$this.a62_1 = limit;
|
|
432
|
+
$this.b62_1 = shareToken;
|
|
433
|
+
$this.c62_1 = owner;
|
|
434
434
|
return $this;
|
|
435
435
|
}
|
|
436
436
|
function Segment_init_$Create$_0(data, pos, limit, shareToken, owner) {
|
|
437
437
|
return Segment_init_$Init$_0(data, pos, limit, shareToken, owner, objectCreate(protoOf(Segment)));
|
|
438
438
|
}
|
|
439
439
|
function Companion() {
|
|
440
|
-
this.
|
|
441
|
-
this.
|
|
440
|
+
this.a63_1 = 8192;
|
|
441
|
+
this.b63_1 = 1024;
|
|
442
442
|
}
|
|
443
|
-
protoOf(Companion).
|
|
443
|
+
protoOf(Companion).c63 = function () {
|
|
444
444
|
return Segment_init_$Create$();
|
|
445
445
|
};
|
|
446
446
|
var Companion_instance;
|
|
447
447
|
function Companion_getInstance() {
|
|
448
448
|
return Companion_instance;
|
|
449
449
|
}
|
|
450
|
-
protoOf(Segment).
|
|
451
|
-
var tmp1_safe_receiver = this.
|
|
452
|
-
var tmp0_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
450
|
+
protoOf(Segment).n62 = function () {
|
|
451
|
+
var tmp1_safe_receiver = this.b62_1;
|
|
452
|
+
var tmp0_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.d63();
|
|
453
453
|
return tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs;
|
|
454
454
|
};
|
|
455
|
-
protoOf(Segment).
|
|
456
|
-
var tmp0_elvis_lhs = this.
|
|
455
|
+
protoOf(Segment).e63 = function () {
|
|
456
|
+
var tmp0_elvis_lhs = this.b62_1;
|
|
457
457
|
var tmp;
|
|
458
458
|
if (tmp0_elvis_lhs == null) {
|
|
459
459
|
// Inline function 'kotlin.also' call
|
|
460
|
-
var this_0 = SegmentPool_instance.
|
|
460
|
+
var this_0 = SegmentPool_instance.f63();
|
|
461
461
|
// Inline function 'kotlin.contracts.contract' call
|
|
462
462
|
// Inline function 'kotlinx.io.Segment.sharedCopy.<anonymous>' call
|
|
463
|
-
this.
|
|
463
|
+
this.b62_1 = this_0;
|
|
464
464
|
tmp = this_0;
|
|
465
465
|
} else {
|
|
466
466
|
tmp = tmp0_elvis_lhs;
|
|
467
467
|
}
|
|
468
468
|
var t = tmp;
|
|
469
|
-
var tmp_0 = this.
|
|
470
|
-
var tmp_1 = this.
|
|
469
|
+
var tmp_0 = this.z61_1;
|
|
470
|
+
var tmp_1 = this.a62_1;
|
|
471
471
|
// Inline function 'kotlin.also' call
|
|
472
472
|
// Inline function 'kotlin.contracts.contract' call
|
|
473
473
|
// Inline function 'kotlinx.io.Segment.sharedCopy.<anonymous>' call
|
|
474
|
-
t.
|
|
475
|
-
return Segment_init_$Create$_0(this.
|
|
474
|
+
t.g63();
|
|
475
|
+
return Segment_init_$Create$_0(this.y61_1, tmp_0, tmp_1, t, false);
|
|
476
476
|
};
|
|
477
|
-
protoOf(Segment).
|
|
478
|
-
var result = this.
|
|
479
|
-
if (!(this.
|
|
480
|
-
ensureNotNull(this.
|
|
477
|
+
protoOf(Segment).r62 = function () {
|
|
478
|
+
var result = this.d62_1;
|
|
479
|
+
if (!(this.e62_1 == null)) {
|
|
480
|
+
ensureNotNull(this.e62_1).d62_1 = this.d62_1;
|
|
481
481
|
}
|
|
482
|
-
if (!(this.
|
|
483
|
-
ensureNotNull(this.
|
|
482
|
+
if (!(this.d62_1 == null)) {
|
|
483
|
+
ensureNotNull(this.d62_1).e62_1 = this.e62_1;
|
|
484
484
|
}
|
|
485
|
-
this.
|
|
486
|
-
this.
|
|
485
|
+
this.d62_1 = null;
|
|
486
|
+
this.e62_1 = null;
|
|
487
487
|
return result;
|
|
488
488
|
};
|
|
489
|
-
protoOf(Segment).
|
|
490
|
-
segment.
|
|
491
|
-
segment.
|
|
492
|
-
if (!(this.
|
|
493
|
-
ensureNotNull(this.
|
|
489
|
+
protoOf(Segment).l62 = function (segment) {
|
|
490
|
+
segment.e62_1 = this;
|
|
491
|
+
segment.d62_1 = this.d62_1;
|
|
492
|
+
if (!(this.d62_1 == null)) {
|
|
493
|
+
ensureNotNull(this.d62_1).e62_1 = segment;
|
|
494
494
|
}
|
|
495
|
-
this.
|
|
495
|
+
this.d62_1 = segment;
|
|
496
496
|
return segment;
|
|
497
497
|
};
|
|
498
|
-
protoOf(Segment).
|
|
498
|
+
protoOf(Segment).o62 = function (byteCount) {
|
|
499
499
|
// Inline function 'kotlin.require' call
|
|
500
500
|
// Inline function 'kotlin.contracts.contract' call
|
|
501
|
-
if (!(byteCount > 0 && byteCount <= (this.
|
|
501
|
+
if (!(byteCount > 0 && byteCount <= (this.a62_1 - this.z61_1 | 0))) {
|
|
502
502
|
// Inline function 'kotlinx.io.Segment.split.<anonymous>' call
|
|
503
503
|
var message = 'byteCount out of range';
|
|
504
504
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
505
505
|
}
|
|
506
506
|
var prefix;
|
|
507
507
|
if (byteCount >= 1024) {
|
|
508
|
-
prefix = this.
|
|
508
|
+
prefix = this.e63();
|
|
509
509
|
} else {
|
|
510
|
-
prefix = SegmentPool_instance.
|
|
510
|
+
prefix = SegmentPool_instance.k62();
|
|
511
511
|
// Inline function 'kotlin.collections.copyInto' call
|
|
512
|
-
var this_0 = this.
|
|
513
|
-
var destination = prefix.
|
|
514
|
-
var startIndex = this.
|
|
515
|
-
var endIndex = this.
|
|
512
|
+
var this_0 = this.y61_1;
|
|
513
|
+
var destination = prefix.y61_1;
|
|
514
|
+
var startIndex = this.z61_1;
|
|
515
|
+
var endIndex = this.z61_1 + byteCount | 0;
|
|
516
516
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
517
517
|
// Inline function 'kotlin.js.asDynamic' call
|
|
518
518
|
var tmp = this_0;
|
|
@@ -520,33 +520,33 @@
|
|
|
520
520
|
// Inline function 'kotlin.js.asDynamic' call
|
|
521
521
|
arrayCopy(tmp, destination, 0, startIndex, endIndex);
|
|
522
522
|
}
|
|
523
|
-
prefix.
|
|
524
|
-
this.
|
|
525
|
-
if (!(this.
|
|
526
|
-
ensureNotNull(this.
|
|
523
|
+
prefix.a62_1 = prefix.z61_1 + byteCount | 0;
|
|
524
|
+
this.z61_1 = this.z61_1 + byteCount | 0;
|
|
525
|
+
if (!(this.e62_1 == null)) {
|
|
526
|
+
ensureNotNull(this.e62_1).l62(prefix);
|
|
527
527
|
} else {
|
|
528
|
-
prefix.
|
|
529
|
-
this.
|
|
528
|
+
prefix.d62_1 = this;
|
|
529
|
+
this.e62_1 = prefix;
|
|
530
530
|
}
|
|
531
531
|
return prefix;
|
|
532
532
|
};
|
|
533
|
-
protoOf(Segment).
|
|
533
|
+
protoOf(Segment).s62 = function () {
|
|
534
534
|
// Inline function 'kotlin.check' call
|
|
535
535
|
// Inline function 'kotlin.contracts.contract' call
|
|
536
|
-
if (!!(this.
|
|
536
|
+
if (!!(this.e62_1 == null)) {
|
|
537
537
|
// Inline function 'kotlinx.io.Segment.compact.<anonymous>' call
|
|
538
538
|
var message = 'cannot compact';
|
|
539
539
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
540
540
|
}
|
|
541
|
-
if (!ensureNotNull(this.
|
|
541
|
+
if (!ensureNotNull(this.e62_1).c62_1)
|
|
542
542
|
return this;
|
|
543
|
-
var byteCount = this.
|
|
544
|
-
var availableByteCount = (8192 - ensureNotNull(this.
|
|
543
|
+
var byteCount = this.a62_1 - this.z61_1 | 0;
|
|
544
|
+
var availableByteCount = (8192 - ensureNotNull(this.e62_1).a62_1 | 0) + (ensureNotNull(this.e62_1).n62() ? 0 : ensureNotNull(this.e62_1).z61_1) | 0;
|
|
545
545
|
if (byteCount > availableByteCount)
|
|
546
546
|
return this;
|
|
547
|
-
var predecessor = this.
|
|
548
|
-
this.
|
|
549
|
-
var successor = this.
|
|
547
|
+
var predecessor = this.e62_1;
|
|
548
|
+
this.p62(ensureNotNull(predecessor), byteCount);
|
|
549
|
+
var successor = this.r62();
|
|
550
550
|
// Inline function 'kotlin.check' call
|
|
551
551
|
// Inline function 'kotlin.contracts.contract' call
|
|
552
552
|
// Inline function 'kotlin.check' call
|
|
@@ -556,113 +556,113 @@
|
|
|
556
556
|
var message_0 = 'Check failed.';
|
|
557
557
|
throw IllegalStateException_init_$Create$(toString(message_0));
|
|
558
558
|
}
|
|
559
|
-
SegmentPool_instance.
|
|
559
|
+
SegmentPool_instance.v62(this);
|
|
560
560
|
return predecessor;
|
|
561
561
|
};
|
|
562
|
-
protoOf(Segment).
|
|
563
|
-
var _unary__edvuaz = this.
|
|
564
|
-
this.
|
|
565
|
-
this.
|
|
562
|
+
protoOf(Segment).t62 = function (byte) {
|
|
563
|
+
var _unary__edvuaz = this.a62_1;
|
|
564
|
+
this.a62_1 = _unary__edvuaz + 1 | 0;
|
|
565
|
+
this.y61_1[_unary__edvuaz] = byte;
|
|
566
566
|
};
|
|
567
|
-
protoOf(Segment).
|
|
567
|
+
protoOf(Segment).p62 = function (sink, byteCount) {
|
|
568
568
|
// Inline function 'kotlin.check' call
|
|
569
569
|
// Inline function 'kotlin.contracts.contract' call
|
|
570
|
-
if (!sink.
|
|
570
|
+
if (!sink.c62_1) {
|
|
571
571
|
// Inline function 'kotlinx.io.Segment.writeTo.<anonymous>' call
|
|
572
572
|
var message = 'only owner can write';
|
|
573
573
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
574
574
|
}
|
|
575
|
-
if ((sink.
|
|
576
|
-
if (sink.
|
|
575
|
+
if ((sink.a62_1 + byteCount | 0) > 8192) {
|
|
576
|
+
if (sink.n62())
|
|
577
577
|
throw IllegalArgumentException_init_$Create$_0();
|
|
578
|
-
if (((sink.
|
|
578
|
+
if (((sink.a62_1 + byteCount | 0) - sink.z61_1 | 0) > 8192)
|
|
579
579
|
throw IllegalArgumentException_init_$Create$_0();
|
|
580
580
|
// Inline function 'kotlin.collections.copyInto' call
|
|
581
|
-
var this_0 = sink.
|
|
582
|
-
var destination = sink.
|
|
583
|
-
var startIndex = sink.
|
|
584
|
-
var endIndex = sink.
|
|
581
|
+
var this_0 = sink.y61_1;
|
|
582
|
+
var destination = sink.y61_1;
|
|
583
|
+
var startIndex = sink.z61_1;
|
|
584
|
+
var endIndex = sink.a62_1;
|
|
585
585
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
586
586
|
// Inline function 'kotlin.js.asDynamic' call
|
|
587
587
|
var tmp = this_0;
|
|
588
588
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
589
589
|
// Inline function 'kotlin.js.asDynamic' call
|
|
590
590
|
arrayCopy(tmp, destination, 0, startIndex, endIndex);
|
|
591
|
-
sink.
|
|
592
|
-
sink.
|
|
591
|
+
sink.a62_1 = sink.a62_1 - sink.z61_1 | 0;
|
|
592
|
+
sink.z61_1 = 0;
|
|
593
593
|
}
|
|
594
594
|
// Inline function 'kotlin.collections.copyInto' call
|
|
595
|
-
var this_1 = this.
|
|
596
|
-
var destination_0 = sink.
|
|
597
|
-
var destinationOffset = sink.
|
|
598
|
-
var startIndex_0 = this.
|
|
599
|
-
var endIndex_0 = this.
|
|
595
|
+
var this_1 = this.y61_1;
|
|
596
|
+
var destination_0 = sink.y61_1;
|
|
597
|
+
var destinationOffset = sink.a62_1;
|
|
598
|
+
var startIndex_0 = this.z61_1;
|
|
599
|
+
var endIndex_0 = this.z61_1 + byteCount | 0;
|
|
600
600
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
601
601
|
// Inline function 'kotlin.js.asDynamic' call
|
|
602
602
|
var tmp_0 = this_1;
|
|
603
603
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
604
604
|
// Inline function 'kotlin.js.asDynamic' call
|
|
605
605
|
arrayCopy(tmp_0, destination_0, destinationOffset, startIndex_0, endIndex_0);
|
|
606
|
-
sink.
|
|
607
|
-
this.
|
|
606
|
+
sink.a62_1 = sink.a62_1 + byteCount | 0;
|
|
607
|
+
this.z61_1 = this.z61_1 + byteCount | 0;
|
|
608
608
|
};
|
|
609
|
-
protoOf(Segment).
|
|
610
|
-
return this.
|
|
609
|
+
protoOf(Segment).q62 = function () {
|
|
610
|
+
return this.a62_1 - this.z61_1 | 0;
|
|
611
611
|
};
|
|
612
|
-
protoOf(Segment).
|
|
613
|
-
return this.
|
|
612
|
+
protoOf(Segment).h63 = function () {
|
|
613
|
+
return this.y61_1.length - this.a62_1 | 0;
|
|
614
614
|
};
|
|
615
|
-
protoOf(Segment).
|
|
616
|
-
return this.
|
|
615
|
+
protoOf(Segment).i63 = function (readOnly) {
|
|
616
|
+
return this.y61_1;
|
|
617
617
|
};
|
|
618
|
-
protoOf(Segment).
|
|
619
|
-
return this.
|
|
618
|
+
protoOf(Segment).j63 = function (index) {
|
|
619
|
+
return this.y61_1[this.z61_1 + index | 0];
|
|
620
620
|
};
|
|
621
|
-
protoOf(Segment).
|
|
622
|
-
this.
|
|
621
|
+
protoOf(Segment).k63 = function (index, value) {
|
|
622
|
+
this.y61_1[this.a62_1 + index | 0] = value;
|
|
623
623
|
};
|
|
624
|
-
protoOf(Segment).
|
|
625
|
-
var d = this.
|
|
626
|
-
var l = this.
|
|
624
|
+
protoOf(Segment).l63 = function (index, b0, b1) {
|
|
625
|
+
var d = this.y61_1;
|
|
626
|
+
var l = this.a62_1;
|
|
627
627
|
d[l + index | 0] = b0;
|
|
628
628
|
d[(l + index | 0) + 1 | 0] = b1;
|
|
629
629
|
};
|
|
630
|
-
protoOf(Segment).
|
|
631
|
-
var d = this.
|
|
632
|
-
var l = this.
|
|
630
|
+
protoOf(Segment).m63 = function (index, b0, b1, b2) {
|
|
631
|
+
var d = this.y61_1;
|
|
632
|
+
var l = this.a62_1;
|
|
633
633
|
d[l + index | 0] = b0;
|
|
634
634
|
d[(l + index | 0) + 1 | 0] = b1;
|
|
635
635
|
d[(l + index | 0) + 2 | 0] = b2;
|
|
636
636
|
};
|
|
637
|
-
protoOf(Segment).
|
|
638
|
-
var d = this.
|
|
639
|
-
var l = this.
|
|
637
|
+
protoOf(Segment).n63 = function (index, b0, b1, b2, b3) {
|
|
638
|
+
var d = this.y61_1;
|
|
639
|
+
var l = this.a62_1;
|
|
640
640
|
d[l + index | 0] = b0;
|
|
641
641
|
d[(l + index | 0) + 1 | 0] = b1;
|
|
642
642
|
d[(l + index | 0) + 2 | 0] = b2;
|
|
643
643
|
d[(l + index | 0) + 3 | 0] = b3;
|
|
644
644
|
};
|
|
645
645
|
function Segment() {
|
|
646
|
-
this.
|
|
647
|
-
this.
|
|
646
|
+
this.z61_1 = 0;
|
|
647
|
+
this.a62_1 = 0;
|
|
648
|
+
this.b62_1 = null;
|
|
649
|
+
this.c62_1 = false;
|
|
650
|
+
this.d62_1 = null;
|
|
648
651
|
this.e62_1 = null;
|
|
649
|
-
this.f62_1 = false;
|
|
650
|
-
this.g62_1 = null;
|
|
651
|
-
this.h62_1 = null;
|
|
652
652
|
}
|
|
653
653
|
function SegmentCopyTracker() {
|
|
654
654
|
}
|
|
655
655
|
function isEmpty(_this__u8e3s4) {
|
|
656
|
-
return _this__u8e3s4.
|
|
656
|
+
return _this__u8e3s4.q62() === 0;
|
|
657
657
|
}
|
|
658
658
|
function AlwaysSharedCopyTracker() {
|
|
659
659
|
AlwaysSharedCopyTracker_instance = this;
|
|
660
660
|
SegmentCopyTracker.call(this);
|
|
661
661
|
}
|
|
662
|
-
protoOf(AlwaysSharedCopyTracker).
|
|
662
|
+
protoOf(AlwaysSharedCopyTracker).d63 = function () {
|
|
663
663
|
return true;
|
|
664
664
|
};
|
|
665
|
-
protoOf(AlwaysSharedCopyTracker).
|
|
665
|
+
protoOf(AlwaysSharedCopyTracker).g63 = function () {
|
|
666
666
|
return Unit_instance;
|
|
667
667
|
};
|
|
668
668
|
var AlwaysSharedCopyTracker_instance;
|
|
@@ -680,7 +680,7 @@
|
|
|
680
680
|
// Inline function 'kotlinx.io.writeToInternalBuffer' call
|
|
681
681
|
// Inline function 'kotlinx.io.writeString.<anonymous>' call
|
|
682
682
|
// Inline function 'kotlinx.io.commonWriteUtf8' call
|
|
683
|
-
var this_0 = _this__u8e3s4.
|
|
683
|
+
var this_0 = _this__u8e3s4.u61();
|
|
684
684
|
var i = startIndex;
|
|
685
685
|
while (i < endIndex) {
|
|
686
686
|
// Inline function 'kotlin.code' call
|
|
@@ -690,16 +690,16 @@
|
|
|
690
690
|
if (c < 128) {
|
|
691
691
|
$l$block_0: {
|
|
692
692
|
// Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.writeToTail' call
|
|
693
|
-
var tail = this_0.
|
|
693
|
+
var tail = this_0.h62(1);
|
|
694
694
|
// Inline function 'kotlinx.io.commonWriteUtf8.<anonymous>' call
|
|
695
695
|
var ctx = get_SegmentWriteContextImpl();
|
|
696
696
|
var segmentOffset = -i | 0;
|
|
697
697
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
698
|
-
var b = i + tail.
|
|
698
|
+
var b = i + tail.h63() | 0;
|
|
699
699
|
var runLimit = Math.min(endIndex, b);
|
|
700
700
|
var _unary__edvuaz = i;
|
|
701
701
|
i = _unary__edvuaz + 1 | 0;
|
|
702
|
-
ctx.
|
|
702
|
+
ctx.r63(tail, segmentOffset + _unary__edvuaz | 0, toByte(c));
|
|
703
703
|
$l$loop: while (i < runLimit) {
|
|
704
704
|
// Inline function 'kotlin.code' call
|
|
705
705
|
var p0_0 = i;
|
|
@@ -709,97 +709,97 @@
|
|
|
709
709
|
break $l$loop;
|
|
710
710
|
var _unary__edvuaz_0 = i;
|
|
711
711
|
i = _unary__edvuaz_0 + 1 | 0;
|
|
712
|
-
ctx.
|
|
712
|
+
ctx.r63(tail, segmentOffset + _unary__edvuaz_0 | 0, toByte(c));
|
|
713
713
|
}
|
|
714
714
|
var bytesWritten = i + segmentOffset | 0;
|
|
715
715
|
if (bytesWritten === 1) {
|
|
716
|
-
tail.
|
|
716
|
+
tail.a62_1 = tail.a62_1 + bytesWritten | 0;
|
|
717
717
|
var tmp = this_0;
|
|
718
718
|
// Inline function 'kotlin.Long.plus' call
|
|
719
|
-
tmp.
|
|
719
|
+
tmp.t61_1 = this_0.t61_1.w2(toLong(bytesWritten));
|
|
720
720
|
break $l$block_0;
|
|
721
721
|
}
|
|
722
722
|
// Inline function 'kotlin.check' call
|
|
723
723
|
// Inline function 'kotlin.contracts.contract' call
|
|
724
|
-
if (!(0 <= bytesWritten ? bytesWritten <= tail.
|
|
724
|
+
if (!(0 <= bytesWritten ? bytesWritten <= tail.h63() : false)) {
|
|
725
725
|
// Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.writeToTail.<anonymous>' call
|
|
726
|
-
var message = 'Invalid number of bytes written: ' + bytesWritten + '. Should be in 0..' + tail.
|
|
726
|
+
var message = 'Invalid number of bytes written: ' + bytesWritten + '. Should be in 0..' + tail.h63();
|
|
727
727
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
728
728
|
}
|
|
729
729
|
if (!(bytesWritten === 0)) {
|
|
730
|
-
tail.
|
|
730
|
+
tail.a62_1 = tail.a62_1 + bytesWritten | 0;
|
|
731
731
|
var tmp_0 = this_0;
|
|
732
732
|
// Inline function 'kotlin.Long.plus' call
|
|
733
|
-
tmp_0.
|
|
733
|
+
tmp_0.t61_1 = this_0.t61_1.w2(toLong(bytesWritten));
|
|
734
734
|
break $l$block_0;
|
|
735
735
|
}
|
|
736
736
|
if (isEmpty(tail)) {
|
|
737
|
-
this_0.
|
|
737
|
+
this_0.w62();
|
|
738
738
|
}
|
|
739
739
|
}
|
|
740
740
|
} else if (c < 2048) {
|
|
741
741
|
$l$block_2: {
|
|
742
742
|
// Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.writeToTail' call
|
|
743
|
-
var tail_0 = this_0.
|
|
743
|
+
var tail_0 = this_0.h62(2);
|
|
744
744
|
// Inline function 'kotlinx.io.commonWriteUtf8.<anonymous>' call
|
|
745
|
-
get_SegmentWriteContextImpl().
|
|
745
|
+
get_SegmentWriteContextImpl().q63(tail_0, 0, toByte(c >> 6 | 192), toByte(c & 63 | 128));
|
|
746
746
|
var bytesWritten_0 = 2;
|
|
747
747
|
if (bytesWritten_0 === 2) {
|
|
748
|
-
tail_0.
|
|
748
|
+
tail_0.a62_1 = tail_0.a62_1 + bytesWritten_0 | 0;
|
|
749
749
|
var tmp_1 = this_0;
|
|
750
750
|
// Inline function 'kotlin.Long.plus' call
|
|
751
|
-
tmp_1.
|
|
751
|
+
tmp_1.t61_1 = this_0.t61_1.w2(toLong(bytesWritten_0));
|
|
752
752
|
break $l$block_2;
|
|
753
753
|
}
|
|
754
754
|
// Inline function 'kotlin.check' call
|
|
755
755
|
// Inline function 'kotlin.contracts.contract' call
|
|
756
|
-
if (!(0 <= bytesWritten_0 ? bytesWritten_0 <= tail_0.
|
|
756
|
+
if (!(0 <= bytesWritten_0 ? bytesWritten_0 <= tail_0.h63() : false)) {
|
|
757
757
|
// Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.writeToTail.<anonymous>' call
|
|
758
|
-
var message_0 = 'Invalid number of bytes written: ' + bytesWritten_0 + '. Should be in 0..' + tail_0.
|
|
758
|
+
var message_0 = 'Invalid number of bytes written: ' + bytesWritten_0 + '. Should be in 0..' + tail_0.h63();
|
|
759
759
|
throw IllegalStateException_init_$Create$(toString(message_0));
|
|
760
760
|
}
|
|
761
761
|
if (!(bytesWritten_0 === 0)) {
|
|
762
|
-
tail_0.
|
|
762
|
+
tail_0.a62_1 = tail_0.a62_1 + bytesWritten_0 | 0;
|
|
763
763
|
var tmp_2 = this_0;
|
|
764
764
|
// Inline function 'kotlin.Long.plus' call
|
|
765
|
-
tmp_2.
|
|
765
|
+
tmp_2.t61_1 = this_0.t61_1.w2(toLong(bytesWritten_0));
|
|
766
766
|
break $l$block_2;
|
|
767
767
|
}
|
|
768
768
|
if (isEmpty(tail_0)) {
|
|
769
|
-
this_0.
|
|
769
|
+
this_0.w62();
|
|
770
770
|
}
|
|
771
771
|
}
|
|
772
772
|
i = i + 1 | 0;
|
|
773
773
|
} else if (c < 55296 || c > 57343) {
|
|
774
774
|
$l$block_4: {
|
|
775
775
|
// Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.writeToTail' call
|
|
776
|
-
var tail_1 = this_0.
|
|
776
|
+
var tail_1 = this_0.h62(3);
|
|
777
777
|
// Inline function 'kotlinx.io.commonWriteUtf8.<anonymous>' call
|
|
778
|
-
get_SegmentWriteContextImpl().
|
|
778
|
+
get_SegmentWriteContextImpl().p63(tail_1, 0, toByte(c >> 12 | 224), toByte(c >> 6 & 63 | 128), toByte(c & 63 | 128));
|
|
779
779
|
var bytesWritten_1 = 3;
|
|
780
780
|
if (bytesWritten_1 === 3) {
|
|
781
|
-
tail_1.
|
|
781
|
+
tail_1.a62_1 = tail_1.a62_1 + bytesWritten_1 | 0;
|
|
782
782
|
var tmp_3 = this_0;
|
|
783
783
|
// Inline function 'kotlin.Long.plus' call
|
|
784
|
-
tmp_3.
|
|
784
|
+
tmp_3.t61_1 = this_0.t61_1.w2(toLong(bytesWritten_1));
|
|
785
785
|
break $l$block_4;
|
|
786
786
|
}
|
|
787
787
|
// Inline function 'kotlin.check' call
|
|
788
788
|
// Inline function 'kotlin.contracts.contract' call
|
|
789
|
-
if (!(0 <= bytesWritten_1 ? bytesWritten_1 <= tail_1.
|
|
789
|
+
if (!(0 <= bytesWritten_1 ? bytesWritten_1 <= tail_1.h63() : false)) {
|
|
790
790
|
// Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.writeToTail.<anonymous>' call
|
|
791
|
-
var message_1 = 'Invalid number of bytes written: ' + bytesWritten_1 + '. Should be in 0..' + tail_1.
|
|
791
|
+
var message_1 = 'Invalid number of bytes written: ' + bytesWritten_1 + '. Should be in 0..' + tail_1.h63();
|
|
792
792
|
throw IllegalStateException_init_$Create$(toString(message_1));
|
|
793
793
|
}
|
|
794
794
|
if (!(bytesWritten_1 === 0)) {
|
|
795
|
-
tail_1.
|
|
795
|
+
tail_1.a62_1 = tail_1.a62_1 + bytesWritten_1 | 0;
|
|
796
796
|
var tmp_4 = this_0;
|
|
797
797
|
// Inline function 'kotlin.Long.plus' call
|
|
798
|
-
tmp_4.
|
|
798
|
+
tmp_4.t61_1 = this_0.t61_1.w2(toLong(bytesWritten_1));
|
|
799
799
|
break $l$block_4;
|
|
800
800
|
}
|
|
801
801
|
if (isEmpty(tail_1)) {
|
|
802
|
-
this_0.
|
|
802
|
+
this_0.w62();
|
|
803
803
|
}
|
|
804
804
|
}
|
|
805
805
|
i = i + 1 | 0;
|
|
@@ -821,40 +821,40 @@
|
|
|
821
821
|
var codePoint = 65536 + ((c & 1023) << 10 | low & 1023) | 0;
|
|
822
822
|
$l$block_6: {
|
|
823
823
|
// Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.writeToTail' call
|
|
824
|
-
var tail_2 = this_0.
|
|
824
|
+
var tail_2 = this_0.h62(4);
|
|
825
825
|
// Inline function 'kotlinx.io.commonWriteUtf8.<anonymous>' call
|
|
826
|
-
get_SegmentWriteContextImpl().
|
|
826
|
+
get_SegmentWriteContextImpl().o63(tail_2, 0, toByte(codePoint >> 18 | 240), toByte(codePoint >> 12 & 63 | 128), toByte(codePoint >> 6 & 63 | 128), toByte(codePoint & 63 | 128));
|
|
827
827
|
var bytesWritten_2 = 4;
|
|
828
828
|
if (bytesWritten_2 === 4) {
|
|
829
|
-
tail_2.
|
|
829
|
+
tail_2.a62_1 = tail_2.a62_1 + bytesWritten_2 | 0;
|
|
830
830
|
var tmp_6 = this_0;
|
|
831
831
|
// Inline function 'kotlin.Long.plus' call
|
|
832
|
-
tmp_6.
|
|
832
|
+
tmp_6.t61_1 = this_0.t61_1.w2(toLong(bytesWritten_2));
|
|
833
833
|
break $l$block_6;
|
|
834
834
|
}
|
|
835
835
|
// Inline function 'kotlin.check' call
|
|
836
836
|
// Inline function 'kotlin.contracts.contract' call
|
|
837
|
-
if (!(0 <= bytesWritten_2 ? bytesWritten_2 <= tail_2.
|
|
837
|
+
if (!(0 <= bytesWritten_2 ? bytesWritten_2 <= tail_2.h63() : false)) {
|
|
838
838
|
// Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.writeToTail.<anonymous>' call
|
|
839
|
-
var message_2 = 'Invalid number of bytes written: ' + bytesWritten_2 + '. Should be in 0..' + tail_2.
|
|
839
|
+
var message_2 = 'Invalid number of bytes written: ' + bytesWritten_2 + '. Should be in 0..' + tail_2.h63();
|
|
840
840
|
throw IllegalStateException_init_$Create$(toString(message_2));
|
|
841
841
|
}
|
|
842
842
|
if (!(bytesWritten_2 === 0)) {
|
|
843
|
-
tail_2.
|
|
843
|
+
tail_2.a62_1 = tail_2.a62_1 + bytesWritten_2 | 0;
|
|
844
844
|
var tmp_7 = this_0;
|
|
845
845
|
// Inline function 'kotlin.Long.plus' call
|
|
846
|
-
tmp_7.
|
|
846
|
+
tmp_7.t61_1 = this_0.t61_1.w2(toLong(bytesWritten_2));
|
|
847
847
|
break $l$block_6;
|
|
848
848
|
}
|
|
849
849
|
if (isEmpty(tail_2)) {
|
|
850
|
-
this_0.
|
|
850
|
+
this_0.w62();
|
|
851
851
|
}
|
|
852
852
|
}
|
|
853
853
|
i = i + 2 | 0;
|
|
854
854
|
}
|
|
855
855
|
}
|
|
856
856
|
}
|
|
857
|
-
_this__u8e3s4.
|
|
857
|
+
_this__u8e3s4.w61();
|
|
858
858
|
}
|
|
859
859
|
function FileSystem() {
|
|
860
860
|
}
|
|
@@ -864,9 +864,9 @@
|
|
|
864
864
|
isRegularFile = isRegularFile === VOID ? false : isRegularFile;
|
|
865
865
|
isDirectory = isDirectory === VOID ? false : isDirectory;
|
|
866
866
|
size = size === VOID ? new Long(0, 0) : size;
|
|
867
|
-
this.
|
|
868
|
-
this.
|
|
869
|
-
this.
|
|
867
|
+
this.y63_1 = isRegularFile;
|
|
868
|
+
this.z63_1 = isDirectory;
|
|
869
|
+
this.a64_1 = size;
|
|
870
870
|
}
|
|
871
871
|
function removeTrailingSeparators(path, isWindows_) {
|
|
872
872
|
isWindows_ = isWindows_ === VOID ? get_isWindows() : isWindows_;
|
|
@@ -980,27 +980,27 @@
|
|
|
980
980
|
}
|
|
981
981
|
function SegmentReadContextImpl$1() {
|
|
982
982
|
}
|
|
983
|
-
protoOf(SegmentReadContextImpl$1).
|
|
984
|
-
return segment.
|
|
983
|
+
protoOf(SegmentReadContextImpl$1).u62 = function (segment, offset) {
|
|
984
|
+
return segment.j63(offset);
|
|
985
985
|
};
|
|
986
986
|
function SegmentWriteContextImpl$1() {
|
|
987
987
|
}
|
|
988
|
-
protoOf(SegmentWriteContextImpl$1).
|
|
989
|
-
segment.
|
|
988
|
+
protoOf(SegmentWriteContextImpl$1).r63 = function (segment, offset, value) {
|
|
989
|
+
segment.k63(offset, value);
|
|
990
990
|
};
|
|
991
|
-
protoOf(SegmentWriteContextImpl$1).
|
|
992
|
-
segment.
|
|
991
|
+
protoOf(SegmentWriteContextImpl$1).q63 = function (segment, offset, b0, b1) {
|
|
992
|
+
segment.l63(offset, b0, b1);
|
|
993
993
|
};
|
|
994
|
-
protoOf(SegmentWriteContextImpl$1).
|
|
995
|
-
segment.
|
|
994
|
+
protoOf(SegmentWriteContextImpl$1).p63 = function (segment, offset, b0, b1, b2) {
|
|
995
|
+
segment.m63(offset, b0, b1, b2);
|
|
996
996
|
};
|
|
997
|
-
protoOf(SegmentWriteContextImpl$1).
|
|
998
|
-
segment.
|
|
997
|
+
protoOf(SegmentWriteContextImpl$1).o63 = function (segment, offset, b0, b1, b2, b3) {
|
|
998
|
+
segment.n63(offset, b0, b1, b2, b3);
|
|
999
999
|
};
|
|
1000
1000
|
function BufferIterationContextImpl$1() {
|
|
1001
1001
|
}
|
|
1002
|
-
protoOf(BufferIterationContextImpl$1).
|
|
1003
|
-
return get_SegmentReadContextImpl().
|
|
1002
|
+
protoOf(BufferIterationContextImpl$1).u62 = function (segment, offset) {
|
|
1003
|
+
return get_SegmentReadContextImpl().u62(segment, offset);
|
|
1004
1004
|
};
|
|
1005
1005
|
var properties_initialized_UnsafeBufferOperations_kt_2xfgoc;
|
|
1006
1006
|
function _init_properties_UnsafeBufferOperations_kt__xw75gy() {
|
|
@@ -1081,15 +1081,15 @@
|
|
|
1081
1081
|
captureStack(this, EOFException);
|
|
1082
1082
|
}
|
|
1083
1083
|
function SegmentPool() {
|
|
1084
|
-
this.
|
|
1085
|
-
this.
|
|
1084
|
+
this.i62_1 = 0;
|
|
1085
|
+
this.j62_1 = 0;
|
|
1086
1086
|
}
|
|
1087
|
-
protoOf(SegmentPool).
|
|
1088
|
-
return Companion_instance.
|
|
1087
|
+
protoOf(SegmentPool).k62 = function () {
|
|
1088
|
+
return Companion_instance.c63();
|
|
1089
1089
|
};
|
|
1090
|
-
protoOf(SegmentPool).
|
|
1090
|
+
protoOf(SegmentPool).v62 = function (segment) {
|
|
1091
1091
|
};
|
|
1092
|
-
protoOf(SegmentPool).
|
|
1092
|
+
protoOf(SegmentPool).f63 = function () {
|
|
1093
1093
|
return AlwaysSharedCopyTracker_getInstance();
|
|
1094
1094
|
};
|
|
1095
1095
|
var SegmentPool_instance;
|
|
@@ -1243,7 +1243,7 @@
|
|
|
1243
1243
|
}
|
|
1244
1244
|
function SystemFileSystem$o$delete$lambda($path) {
|
|
1245
1245
|
return function () {
|
|
1246
|
-
var tmp0_elvis_lhs = get_fs().statSync($path.
|
|
1246
|
+
var tmp0_elvis_lhs = get_fs().statSync($path.b64_1);
|
|
1247
1247
|
var tmp;
|
|
1248
1248
|
if (tmp0_elvis_lhs == null) {
|
|
1249
1249
|
throw new FileNotFoundException('File does not exist: ' + $path.toString());
|
|
@@ -1253,10 +1253,10 @@
|
|
|
1253
1253
|
var stats = tmp;
|
|
1254
1254
|
var tmp_0;
|
|
1255
1255
|
if (stats.isDirectory()) {
|
|
1256
|
-
get_fs().rmdirSync($path.
|
|
1256
|
+
get_fs().rmdirSync($path.b64_1);
|
|
1257
1257
|
tmp_0 = Unit_instance;
|
|
1258
1258
|
} else {
|
|
1259
|
-
get_fs().rmSync($path.
|
|
1259
|
+
get_fs().rmSync($path.b64_1);
|
|
1260
1260
|
tmp_0 = Unit_instance;
|
|
1261
1261
|
}
|
|
1262
1262
|
return Unit_instance;
|
|
@@ -1264,7 +1264,7 @@
|
|
|
1264
1264
|
}
|
|
1265
1265
|
function SystemFileSystem$o$metadataOrNull$lambda($path, $metadata) {
|
|
1266
1266
|
return function () {
|
|
1267
|
-
var tmp0_elvis_lhs = get_fs().statSync($path.
|
|
1267
|
+
var tmp0_elvis_lhs = get_fs().statSync($path.b64_1);
|
|
1268
1268
|
var tmp;
|
|
1269
1269
|
if (tmp0_elvis_lhs == null) {
|
|
1270
1270
|
return Unit_instance;
|
|
@@ -1281,11 +1281,11 @@
|
|
|
1281
1281
|
function SystemFileSystem$1() {
|
|
1282
1282
|
SystemFileSystemImpl.call(this);
|
|
1283
1283
|
}
|
|
1284
|
-
protoOf(SystemFileSystem$1).
|
|
1285
|
-
return get_fs().existsSync(path.
|
|
1284
|
+
protoOf(SystemFileSystem$1).s63 = function (path) {
|
|
1285
|
+
return get_fs().existsSync(path.b64_1);
|
|
1286
1286
|
};
|
|
1287
|
-
protoOf(SystemFileSystem$1).
|
|
1288
|
-
if (!this.
|
|
1287
|
+
protoOf(SystemFileSystem$1).t63 = function (path, mustExist) {
|
|
1288
|
+
if (!this.s63(path)) {
|
|
1289
1289
|
if (mustExist) {
|
|
1290
1290
|
throw new FileNotFoundException('File does not exist: ' + path.toString());
|
|
1291
1291
|
}
|
|
@@ -1301,13 +1301,13 @@
|
|
|
1301
1301
|
throw IOException_init_$Create$_1('Delete failed for ' + path.toString(), tmp0_safe_receiver);
|
|
1302
1302
|
}
|
|
1303
1303
|
};
|
|
1304
|
-
protoOf(SystemFileSystem$1).
|
|
1305
|
-
var metadata = this.
|
|
1304
|
+
protoOf(SystemFileSystem$1).v63 = function (path, mustCreate) {
|
|
1305
|
+
var metadata = this.c64(path);
|
|
1306
1306
|
if (!(metadata == null)) {
|
|
1307
1307
|
if (mustCreate) {
|
|
1308
1308
|
throw IOException_init_$Create$_0('Path already exists: ' + path.toString());
|
|
1309
1309
|
}
|
|
1310
|
-
if (metadata.
|
|
1310
|
+
if (metadata.y63_1) {
|
|
1311
1311
|
throw IOException_init_$Create$_0("Path already exists and it's a file: " + path.toString());
|
|
1312
1312
|
}
|
|
1313
1313
|
return Unit_instance;
|
|
@@ -1315,7 +1315,7 @@
|
|
|
1315
1315
|
// Inline function 'kotlin.collections.arrayListOf' call
|
|
1316
1316
|
var parts = ArrayList_init_$Create$();
|
|
1317
1317
|
var p = path;
|
|
1318
|
-
while (!(p == null) && !this.
|
|
1318
|
+
while (!(p == null) && !this.s63(p)) {
|
|
1319
1319
|
parts.e(p.toString());
|
|
1320
1320
|
p = p.ep();
|
|
1321
1321
|
}
|
|
@@ -1327,8 +1327,8 @@
|
|
|
1327
1327
|
get_fs().mkdirSync(element);
|
|
1328
1328
|
}
|
|
1329
1329
|
};
|
|
1330
|
-
protoOf(SystemFileSystem$1).
|
|
1331
|
-
if (!this.
|
|
1330
|
+
protoOf(SystemFileSystem$1).c64 = function (path) {
|
|
1331
|
+
if (!this.s63(path))
|
|
1332
1332
|
return null;
|
|
1333
1333
|
var metadata = {_v: null};
|
|
1334
1334
|
var tmp2_safe_receiver = withCaughtException(SystemFileSystem$o$metadataOrNull$lambda(path, metadata));
|
|
@@ -1342,7 +1342,7 @@
|
|
|
1342
1342
|
}
|
|
1343
1343
|
return metadata._v;
|
|
1344
1344
|
};
|
|
1345
|
-
protoOf(SystemFileSystem$1).
|
|
1345
|
+
protoOf(SystemFileSystem$1).x63 = function (path, append) {
|
|
1346
1346
|
return new FileSink(path, append);
|
|
1347
1347
|
};
|
|
1348
1348
|
var properties_initialized_FileSystemNodeJs_kt_vmmd20;
|
|
@@ -1362,27 +1362,27 @@
|
|
|
1362
1362
|
}
|
|
1363
1363
|
var SystemPathSeparator$delegate;
|
|
1364
1364
|
function Path_0(rawPath, any) {
|
|
1365
|
-
this.
|
|
1365
|
+
this.b64_1 = removeTrailingSeparators(rawPath);
|
|
1366
1366
|
}
|
|
1367
1367
|
protoOf(Path_0).ep = function () {
|
|
1368
1368
|
// Inline function 'kotlin.text.isEmpty' call
|
|
1369
|
-
var this_0 = this.
|
|
1369
|
+
var this_0 = this.b64_1;
|
|
1370
1370
|
if (charSequenceLength(this_0) === 0)
|
|
1371
1371
|
return null;
|
|
1372
1372
|
if (get_isWindows()) {
|
|
1373
|
-
if (!contains(this.
|
|
1373
|
+
if (!contains(this.b64_1, _Char___init__impl__6a9atx(47)) && !contains(this.b64_1, _Char___init__impl__6a9atx(92))) {
|
|
1374
1374
|
return null;
|
|
1375
1375
|
}
|
|
1376
|
-
} else if (!contains(this.
|
|
1376
|
+
} else if (!contains(this.b64_1, get_SystemPathSeparator())) {
|
|
1377
1377
|
return null;
|
|
1378
1378
|
}
|
|
1379
|
-
var p = get_path().dirname(this.
|
|
1379
|
+
var p = get_path().dirname(this.b64_1);
|
|
1380
1380
|
var tmp;
|
|
1381
1381
|
// Inline function 'kotlin.text.isEmpty' call
|
|
1382
1382
|
if (charSequenceLength(p) === 0) {
|
|
1383
1383
|
tmp = null;
|
|
1384
1384
|
} else {
|
|
1385
|
-
if (p === this.
|
|
1385
|
+
if (p === this.b64_1) {
|
|
1386
1386
|
tmp = null;
|
|
1387
1387
|
} else {
|
|
1388
1388
|
tmp = Path_1(p);
|
|
@@ -1391,17 +1391,17 @@
|
|
|
1391
1391
|
return tmp;
|
|
1392
1392
|
};
|
|
1393
1393
|
protoOf(Path_0).toString = function () {
|
|
1394
|
-
return this.
|
|
1394
|
+
return this.b64_1;
|
|
1395
1395
|
};
|
|
1396
1396
|
protoOf(Path_0).equals = function (other) {
|
|
1397
1397
|
if (this === other)
|
|
1398
1398
|
return true;
|
|
1399
1399
|
if (!(other instanceof Path_0))
|
|
1400
1400
|
return false;
|
|
1401
|
-
return this.
|
|
1401
|
+
return this.b64_1 === other.b64_1;
|
|
1402
1402
|
};
|
|
1403
1403
|
protoOf(Path_0).hashCode = function () {
|
|
1404
|
-
return getStringHashCode(this.
|
|
1404
|
+
return getStringHashCode(this.b64_1);
|
|
1405
1405
|
};
|
|
1406
1406
|
function open($this, path, append) {
|
|
1407
1407
|
var flags = append ? 'a' : 'w';
|
|
@@ -1413,32 +1413,32 @@
|
|
|
1413
1413
|
// Inline function 'kotlin.also' call
|
|
1414
1414
|
// Inline function 'kotlin.contracts.contract' call
|
|
1415
1415
|
// Inline function 'kotlinx.io.files.FileSink.open.<anonymous>' call
|
|
1416
|
-
throw IOException_init_$Create$_1('Failed to open a file ' + path.
|
|
1416
|
+
throw IOException_init_$Create$_1('Failed to open a file ' + path.b64_1 + '.', tmp5_safe_receiver);
|
|
1417
1417
|
}
|
|
1418
1418
|
if (fd._v < 0)
|
|
1419
|
-
throw IOException_init_$Create$_0('Failed to open a file ' + path.
|
|
1419
|
+
throw IOException_init_$Create$_0('Failed to open a file ' + path.b64_1 + '.');
|
|
1420
1420
|
return fd._v;
|
|
1421
1421
|
}
|
|
1422
1422
|
function FileSink$open$lambda($fd, $path, $flags) {
|
|
1423
1423
|
return function () {
|
|
1424
|
-
$fd._v = get_fs().openSync($path.
|
|
1424
|
+
$fd._v = get_fs().openSync($path.b64_1, $flags);
|
|
1425
1425
|
return Unit_instance;
|
|
1426
1426
|
};
|
|
1427
1427
|
}
|
|
1428
1428
|
function FileSink$write$lambda(this$0, $buf) {
|
|
1429
1429
|
return function () {
|
|
1430
|
-
get_fs().writeFileSync(this$0.
|
|
1430
|
+
get_fs().writeFileSync(this$0.e64_1, $buf);
|
|
1431
1431
|
return Unit_instance;
|
|
1432
1432
|
};
|
|
1433
1433
|
}
|
|
1434
1434
|
function FileSink(path, append) {
|
|
1435
|
-
this.
|
|
1436
|
-
this.
|
|
1435
|
+
this.d64_1 = false;
|
|
1436
|
+
this.e64_1 = open(this, path, append);
|
|
1437
1437
|
}
|
|
1438
|
-
protoOf(FileSink).
|
|
1438
|
+
protoOf(FileSink).m62 = function (source, byteCount) {
|
|
1439
1439
|
// Inline function 'kotlin.check' call
|
|
1440
1440
|
// Inline function 'kotlin.contracts.contract' call
|
|
1441
|
-
if (!!this.
|
|
1441
|
+
if (!!this.d64_1) {
|
|
1442
1442
|
// Inline function 'kotlinx.io.files.FileSink.write.<anonymous>' call
|
|
1443
1443
|
var message = 'Sink is closed.';
|
|
1444
1444
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
@@ -1454,16 +1454,16 @@
|
|
|
1454
1454
|
// Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.readFromHead' call
|
|
1455
1455
|
// Inline function 'kotlin.require' call
|
|
1456
1456
|
// Inline function 'kotlin.contracts.contract' call
|
|
1457
|
-
if (!!source.
|
|
1457
|
+
if (!!source.v61()) {
|
|
1458
1458
|
// Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.readFromHead.<anonymous>' call
|
|
1459
1459
|
var message_0 = 'Buffer is empty';
|
|
1460
1460
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
1461
1461
|
}
|
|
1462
|
-
var head = ensureNotNull(source.
|
|
1462
|
+
var head = ensureNotNull(source.r61_1);
|
|
1463
1463
|
// Inline function 'kotlinx.io.files.FileSink.write.<anonymous>' call
|
|
1464
|
-
var headData = head.
|
|
1465
|
-
var headPos = head.
|
|
1466
|
-
segmentBytes = head.
|
|
1464
|
+
var headData = head.i63(true);
|
|
1465
|
+
var headPos = head.z61_1;
|
|
1466
|
+
segmentBytes = head.a62_1 - headPos | 0;
|
|
1467
1467
|
var buf = get_buffer().Buffer.allocUnsafe(segmentBytes);
|
|
1468
1468
|
var inductionVariable = 0;
|
|
1469
1469
|
var last = segmentBytes;
|
|
@@ -1487,9 +1487,9 @@
|
|
|
1487
1487
|
if (!(bytesRead === 0)) {
|
|
1488
1488
|
if (bytesRead < 0)
|
|
1489
1489
|
throw IllegalStateException_init_$Create$('Returned negative read bytes count');
|
|
1490
|
-
if (bytesRead > head.
|
|
1490
|
+
if (bytesRead > head.q62())
|
|
1491
1491
|
throw IllegalStateException_init_$Create$('Returned too many bytes');
|
|
1492
|
-
source.
|
|
1492
|
+
source.f62(toLong(bytesRead));
|
|
1493
1493
|
}
|
|
1494
1494
|
// Inline function 'kotlin.Long.minus' call
|
|
1495
1495
|
var this_0 = remainingBytes;
|
|
@@ -1498,9 +1498,9 @@
|
|
|
1498
1498
|
}
|
|
1499
1499
|
};
|
|
1500
1500
|
protoOf(FileSink).k1z = function () {
|
|
1501
|
-
if (!this.
|
|
1502
|
-
this.
|
|
1503
|
-
get_fs().closeSync(this.
|
|
1501
|
+
if (!this.d64_1) {
|
|
1502
|
+
this.d64_1 = true;
|
|
1503
|
+
get_fs().closeSync(this.e64_1);
|
|
1504
1504
|
}
|
|
1505
1505
|
};
|
|
1506
1506
|
function Path_1(path) {
|
|
@@ -1534,8 +1534,8 @@
|
|
|
1534
1534
|
}
|
|
1535
1535
|
}
|
|
1536
1536
|
//region block: post-declaration
|
|
1537
|
-
protoOf(SystemFileSystemImpl).
|
|
1538
|
-
protoOf(SystemFileSystemImpl).
|
|
1537
|
+
protoOf(SystemFileSystemImpl).u63 = delete$default;
|
|
1538
|
+
protoOf(SystemFileSystemImpl).w63 = createDirectories$default;
|
|
1539
1539
|
//endregion
|
|
1540
1540
|
//region block: init
|
|
1541
1541
|
Companion_instance = new Companion();
|