@solibo/solibo-sdk 1.1.53 → 1.1.54
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/KmLogging-logging.mjs +108 -108
- package/KotlinBigInteger-bignum.mjs +1127 -1127
- package/MultiplatformSettings-multiplatform-settings.mjs +17 -17
- package/Stately-stately-concurrency.mjs +5 -5
- package/cryptography-kotlin-cryptography-bigint.mjs +27 -27
- package/cryptography-kotlin-cryptography-core.mjs +47 -47
- package/cryptography-kotlin-cryptography-provider-base.mjs +4 -4
- package/cryptography-kotlin-cryptography-provider-webcrypto.mjs +135 -135
- package/cryptography-kotlin-cryptography-random.mjs +15 -15
- package/cryptography-kotlin-cryptography-serialization-asn1-modules.mjs +112 -112
- package/cryptography-kotlin-cryptography-serialization-asn1.mjs +240 -240
- package/cryptography-kotlin-cryptography-serialization-pem.mjs +15 -15
- package/kotlin-kotlin-stdlib.mjs +11 -11
- package/kotlinx-coroutines-core.mjs +2695 -1707
- package/kotlinx-coroutines-core.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-bytestring.mjs +30 -30
- package/kotlinx-io-kotlinx-io-core.mjs +451 -451
- package/ktor-ktor-client-auth.mjs +258 -258
- package/ktor-ktor-client-content-negotiation.mjs +127 -127
- package/ktor-ktor-client-core.mjs +2688 -2688
- package/ktor-ktor-client-logging.mjs +618 -618
- package/ktor-ktor-client-mock.mjs +51 -51
- package/ktor-ktor-events.mjs +8 -7
- package/ktor-ktor-events.mjs.map +1 -1
- package/ktor-ktor-http-cio.mjs +313 -313
- package/ktor-ktor-http.mjs +893 -893
- package/ktor-ktor-io.mjs +630 -630
- package/ktor-ktor-serialization-kotlinx-json.mjs +1 -1
- package/ktor-ktor-serialization-kotlinx.mjs +122 -122
- package/ktor-ktor-serialization.mjs +56 -56
- package/ktor-ktor-utils.mjs +656 -656
- package/ktor-ktor-websockets.mjs +384 -383
- package/ktor-ktor-websockets.mjs.map +1 -1
- package/package.json +1 -1
- package/solibo-sdk-sdk-home-api.mjs +21212 -21210
- package/solibo-sdk-sdk.mjs +3247 -3002
- package/solibo-sdk-sdk.mjs.map +1 -1
|
@@ -47,10 +47,10 @@ function write$default(source, startIndex, endIndex, $super) {
|
|
|
47
47
|
endIndex = endIndex === VOID ? source.length : endIndex;
|
|
48
48
|
var tmp;
|
|
49
49
|
if ($super === VOID) {
|
|
50
|
-
this.
|
|
50
|
+
this.n34(source, startIndex, endIndex);
|
|
51
51
|
tmp = Unit_instance;
|
|
52
52
|
} else {
|
|
53
|
-
tmp = $super.
|
|
53
|
+
tmp = $super.n34.call(this, source, startIndex, endIndex);
|
|
54
54
|
}
|
|
55
55
|
return tmp;
|
|
56
56
|
}
|
|
@@ -102,20 +102,20 @@ function throwEof($this, byteCount) {
|
|
|
102
102
|
throw EOFException_init_$Create$_0("Buffer doesn't contain required number of bytes (size: " + $this.g1().toString() + ', required: ' + byteCount.toString() + ')');
|
|
103
103
|
}
|
|
104
104
|
function Buffer() {
|
|
105
|
-
this.
|
|
106
|
-
this.
|
|
107
|
-
this.
|
|
105
|
+
this.a33_1 = null;
|
|
106
|
+
this.b33_1 = null;
|
|
107
|
+
this.c33_1 = 0n;
|
|
108
108
|
}
|
|
109
109
|
protoOf(Buffer).g1 = function () {
|
|
110
|
-
return this.
|
|
110
|
+
return this.c33_1;
|
|
111
111
|
};
|
|
112
|
-
protoOf(Buffer).
|
|
112
|
+
protoOf(Buffer).d33 = function () {
|
|
113
113
|
return this;
|
|
114
114
|
};
|
|
115
|
-
protoOf(Buffer).
|
|
115
|
+
protoOf(Buffer).e33 = function () {
|
|
116
116
|
return this.g1() === 0n;
|
|
117
117
|
};
|
|
118
|
-
protoOf(Buffer).
|
|
118
|
+
protoOf(Buffer).f33 = function (byteCount) {
|
|
119
119
|
// Inline function 'kotlin.require' call
|
|
120
120
|
if (!(byteCount >= 0n)) {
|
|
121
121
|
var message = 'byteCount: ' + byteCount.toString();
|
|
@@ -125,7 +125,7 @@ protoOf(Buffer).n2x = function (byteCount) {
|
|
|
125
125
|
throw EOFException_init_$Create$_0("Buffer doesn't contain required number of bytes (size: " + this.g1().toString() + ', required: ' + byteCount.toString() + ')');
|
|
126
126
|
}
|
|
127
127
|
};
|
|
128
|
-
protoOf(Buffer).
|
|
128
|
+
protoOf(Buffer).g33 = function (byteCount) {
|
|
129
129
|
// Inline function 'kotlin.require' call
|
|
130
130
|
if (!(byteCount >= 0n)) {
|
|
131
131
|
var message = 'byteCount: ' + byteCount.toString() + ' < 0';
|
|
@@ -133,8 +133,8 @@ protoOf(Buffer).o2x = function (byteCount) {
|
|
|
133
133
|
}
|
|
134
134
|
return this.g1() >= byteCount;
|
|
135
135
|
};
|
|
136
|
-
protoOf(Buffer).
|
|
137
|
-
var tmp0_elvis_lhs = this.
|
|
136
|
+
protoOf(Buffer).h33 = function () {
|
|
137
|
+
var tmp0_elvis_lhs = this.a33_1;
|
|
138
138
|
var tmp;
|
|
139
139
|
if (tmp0_elvis_lhs == null) {
|
|
140
140
|
throwEof(this, 1n);
|
|
@@ -144,18 +144,18 @@ protoOf(Buffer).p2x = function () {
|
|
|
144
144
|
var segment = tmp;
|
|
145
145
|
var segmentSize = segment.g1();
|
|
146
146
|
if (segmentSize === 0) {
|
|
147
|
-
this.
|
|
148
|
-
return this.
|
|
147
|
+
this.p33();
|
|
148
|
+
return this.h33();
|
|
149
149
|
}
|
|
150
|
-
var v = segment.
|
|
151
|
-
this.
|
|
150
|
+
var v = segment.q33();
|
|
151
|
+
this.c33_1 = subtract(this.c33_1, 1n);
|
|
152
152
|
if (segmentSize === 1) {
|
|
153
|
-
this.
|
|
153
|
+
this.p33();
|
|
154
154
|
}
|
|
155
155
|
return v;
|
|
156
156
|
};
|
|
157
|
-
protoOf(Buffer).
|
|
158
|
-
var tmp0_elvis_lhs = this.
|
|
157
|
+
protoOf(Buffer).r33 = function () {
|
|
158
|
+
var tmp0_elvis_lhs = this.a33_1;
|
|
159
159
|
var tmp;
|
|
160
160
|
if (tmp0_elvis_lhs == null) {
|
|
161
161
|
throwEof(this, 2n);
|
|
@@ -165,119 +165,119 @@ protoOf(Buffer).z2x = function () {
|
|
|
165
165
|
var segment = tmp;
|
|
166
166
|
var segmentSize = segment.g1();
|
|
167
167
|
if (segmentSize < 2) {
|
|
168
|
-
this.
|
|
168
|
+
this.f33(2n);
|
|
169
169
|
if (segmentSize === 0) {
|
|
170
|
-
this.
|
|
171
|
-
return this.
|
|
170
|
+
this.p33();
|
|
171
|
+
return this.r33();
|
|
172
172
|
}
|
|
173
173
|
// Inline function 'kotlinx.io.and' call
|
|
174
|
-
var tmp_0 = (this.
|
|
174
|
+
var tmp_0 = (this.h33() & 255) << 8;
|
|
175
175
|
// Inline function 'kotlinx.io.and' call
|
|
176
|
-
var tmp$ret$1 = this.
|
|
176
|
+
var tmp$ret$1 = this.h33() & 255;
|
|
177
177
|
return toShort(tmp_0 | tmp$ret$1);
|
|
178
178
|
}
|
|
179
|
-
var v = segment.
|
|
180
|
-
this.
|
|
179
|
+
var v = segment.s33();
|
|
180
|
+
this.c33_1 = subtract(this.c33_1, 2n);
|
|
181
181
|
if (segmentSize === 2) {
|
|
182
|
-
this.
|
|
182
|
+
this.p33();
|
|
183
183
|
}
|
|
184
184
|
return v;
|
|
185
185
|
};
|
|
186
|
-
protoOf(Buffer).
|
|
186
|
+
protoOf(Buffer).t33 = function () {
|
|
187
187
|
return Unit_instance;
|
|
188
188
|
};
|
|
189
|
-
protoOf(Buffer).
|
|
189
|
+
protoOf(Buffer).u33 = function (out, startIndex, endIndex) {
|
|
190
190
|
checkBounds(this.g1(), startIndex, endIndex);
|
|
191
191
|
if (startIndex === endIndex)
|
|
192
192
|
return Unit_instance;
|
|
193
193
|
var currentOffset = startIndex;
|
|
194
194
|
var remainingByteCount = subtract(endIndex, startIndex);
|
|
195
|
-
out.
|
|
196
|
-
var s = this.
|
|
197
|
-
while (currentOffset >= fromInt(ensureNotNull(s).
|
|
198
|
-
currentOffset = subtract(currentOffset, fromInt(s.
|
|
199
|
-
s = s.
|
|
195
|
+
out.c33_1 = add(out.c33_1, remainingByteCount);
|
|
196
|
+
var s = this.a33_1;
|
|
197
|
+
while (currentOffset >= fromInt(ensureNotNull(s).k33_1 - s.j33_1 | 0)) {
|
|
198
|
+
currentOffset = subtract(currentOffset, fromInt(s.k33_1 - s.j33_1 | 0));
|
|
199
|
+
s = s.n33_1;
|
|
200
200
|
}
|
|
201
201
|
while (remainingByteCount > 0n) {
|
|
202
|
-
var copy = ensureNotNull(s).
|
|
203
|
-
copy.
|
|
202
|
+
var copy = ensureNotNull(s).v33();
|
|
203
|
+
copy.j33_1 = copy.j33_1 + convertToInt(currentOffset) | 0;
|
|
204
204
|
var tmp = copy;
|
|
205
|
-
var tmp0 = copy.
|
|
205
|
+
var tmp0 = copy.j33_1 + convertToInt(remainingByteCount) | 0;
|
|
206
206
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
207
|
-
var b = copy.
|
|
208
|
-
tmp.
|
|
207
|
+
var b = copy.k33_1;
|
|
208
|
+
tmp.k33_1 = Math.min(tmp0, b);
|
|
209
209
|
// Inline function 'kotlinx.io.Buffer.pushSegment' call
|
|
210
|
-
if (out.
|
|
211
|
-
out.
|
|
212
|
-
out.
|
|
210
|
+
if (out.a33_1 == null) {
|
|
211
|
+
out.a33_1 = copy;
|
|
212
|
+
out.b33_1 = copy;
|
|
213
213
|
} else if (false) {
|
|
214
|
-
out.
|
|
215
|
-
if (ensureNotNull(out.
|
|
216
|
-
out.
|
|
214
|
+
out.b33_1 = ensureNotNull(out.b33_1).w33(copy).x33();
|
|
215
|
+
if (ensureNotNull(out.b33_1).o33_1 == null) {
|
|
216
|
+
out.a33_1 = out.b33_1;
|
|
217
217
|
}
|
|
218
218
|
} else {
|
|
219
|
-
out.
|
|
219
|
+
out.b33_1 = ensureNotNull(out.b33_1).w33(copy);
|
|
220
220
|
}
|
|
221
|
-
remainingByteCount = subtract(remainingByteCount, fromInt(copy.
|
|
221
|
+
remainingByteCount = subtract(remainingByteCount, fromInt(copy.k33_1 - copy.j33_1 | 0));
|
|
222
222
|
currentOffset = 0n;
|
|
223
|
-
s = s.
|
|
223
|
+
s = s.n33_1;
|
|
224
224
|
}
|
|
225
225
|
};
|
|
226
|
-
protoOf(Buffer).
|
|
226
|
+
protoOf(Buffer).y33 = function () {
|
|
227
227
|
var result = this.g1();
|
|
228
228
|
if (result === 0n)
|
|
229
229
|
return 0n;
|
|
230
|
-
var tail = ensureNotNull(this.
|
|
231
|
-
if (tail.
|
|
232
|
-
result = subtract(result, fromInt(tail.
|
|
230
|
+
var tail = ensureNotNull(this.b33_1);
|
|
231
|
+
if (tail.k33_1 < 8192 && tail.m33_1) {
|
|
232
|
+
result = subtract(result, fromInt(tail.k33_1 - tail.j33_1 | 0));
|
|
233
233
|
}
|
|
234
234
|
return result;
|
|
235
235
|
};
|
|
236
|
-
protoOf(Buffer).
|
|
236
|
+
protoOf(Buffer).z33 = function (position) {
|
|
237
237
|
if (position < 0n || position >= this.g1()) {
|
|
238
238
|
throw IndexOutOfBoundsException_init_$Create$('position (' + position.toString() + ') is not within the range [0..size(' + this.g1().toString() + '))');
|
|
239
239
|
}
|
|
240
240
|
if (position === 0n) {
|
|
241
|
-
return ensureNotNull(this.
|
|
241
|
+
return ensureNotNull(this.a33_1).a34(0);
|
|
242
242
|
}
|
|
243
243
|
// Inline function 'kotlinx.io.seek' call
|
|
244
|
-
if (this.
|
|
245
|
-
return ensureNotNull(null).
|
|
244
|
+
if (this.a33_1 == null) {
|
|
245
|
+
return ensureNotNull(null).a34(convertToInt(subtract(position, -1n)));
|
|
246
246
|
}
|
|
247
247
|
if (subtract(this.g1(), position) < position) {
|
|
248
|
-
var s = this.
|
|
248
|
+
var s = this.b33_1;
|
|
249
249
|
var offset = this.g1();
|
|
250
250
|
$l$loop: while (!(s == null) && offset > position) {
|
|
251
|
-
offset = subtract(offset, fromInt(s.
|
|
251
|
+
offset = subtract(offset, fromInt(s.k33_1 - s.j33_1 | 0));
|
|
252
252
|
if (offset <= position)
|
|
253
253
|
break $l$loop;
|
|
254
|
-
s = s.
|
|
254
|
+
s = s.o33_1;
|
|
255
255
|
}
|
|
256
256
|
var tmp0 = s;
|
|
257
257
|
var offset_0 = offset;
|
|
258
|
-
return ensureNotNull(tmp0).
|
|
258
|
+
return ensureNotNull(tmp0).a34(convertToInt(subtract(position, offset_0)));
|
|
259
259
|
} else {
|
|
260
|
-
var s_0 = this.
|
|
260
|
+
var s_0 = this.a33_1;
|
|
261
261
|
var offset_1 = 0n;
|
|
262
262
|
$l$loop_0: while (!(s_0 == null)) {
|
|
263
263
|
var tmp0_0 = offset_1;
|
|
264
264
|
// Inline function 'kotlin.Long.plus' call
|
|
265
|
-
var other = s_0.
|
|
265
|
+
var other = s_0.k33_1 - s_0.j33_1 | 0;
|
|
266
266
|
var nextOffset = add(tmp0_0, fromInt(other));
|
|
267
267
|
if (nextOffset > position)
|
|
268
268
|
break $l$loop_0;
|
|
269
|
-
s_0 = s_0.
|
|
269
|
+
s_0 = s_0.n33_1;
|
|
270
270
|
offset_1 = nextOffset;
|
|
271
271
|
}
|
|
272
272
|
var tmp0_1 = s_0;
|
|
273
273
|
var offset_2 = offset_1;
|
|
274
|
-
return ensureNotNull(tmp0_1).
|
|
274
|
+
return ensureNotNull(tmp0_1).a34(convertToInt(subtract(position, offset_2)));
|
|
275
275
|
}
|
|
276
276
|
};
|
|
277
277
|
protoOf(Buffer).f3 = function () {
|
|
278
|
-
return this.
|
|
278
|
+
return this.b34(this.g1());
|
|
279
279
|
};
|
|
280
|
-
protoOf(Buffer).
|
|
280
|
+
protoOf(Buffer).b34 = function (byteCount) {
|
|
281
281
|
// Inline function 'kotlinx.io.checkByteCount' call
|
|
282
282
|
// Inline function 'kotlin.require' call
|
|
283
283
|
if (!(byteCount >= 0n)) {
|
|
@@ -286,7 +286,7 @@ protoOf(Buffer).j2y = function (byteCount) {
|
|
|
286
286
|
}
|
|
287
287
|
var remainingByteCount = byteCount;
|
|
288
288
|
while (remainingByteCount > 0n) {
|
|
289
|
-
var tmp0_elvis_lhs = this.
|
|
289
|
+
var tmp0_elvis_lhs = this.a33_1;
|
|
290
290
|
var tmp;
|
|
291
291
|
if (tmp0_elvis_lhs == null) {
|
|
292
292
|
throw EOFException_init_$Create$_0('Buffer exhausted before skipping ' + byteCount.toString() + ' bytes.');
|
|
@@ -296,24 +296,24 @@ protoOf(Buffer).j2y = function (byteCount) {
|
|
|
296
296
|
var head = tmp;
|
|
297
297
|
var tmp0 = remainingByteCount;
|
|
298
298
|
// Inline function 'kotlinx.io.minOf' call
|
|
299
|
-
var b = head.
|
|
299
|
+
var b = head.k33_1 - head.j33_1 | 0;
|
|
300
300
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
301
301
|
var b_0 = fromInt(b);
|
|
302
302
|
var tmp$ret$4 = tmp0 <= b_0 ? tmp0 : b_0;
|
|
303
303
|
var toSkip = convertToInt(tmp$ret$4);
|
|
304
|
-
this.
|
|
304
|
+
this.c33_1 = subtract(this.c33_1, fromInt(toSkip));
|
|
305
305
|
remainingByteCount = subtract(remainingByteCount, fromInt(toSkip));
|
|
306
|
-
head.
|
|
307
|
-
if (head.
|
|
308
|
-
this.
|
|
306
|
+
head.j33_1 = head.j33_1 + toSkip | 0;
|
|
307
|
+
if (head.j33_1 === head.k33_1) {
|
|
308
|
+
this.p33();
|
|
309
309
|
}
|
|
310
310
|
}
|
|
311
311
|
};
|
|
312
|
-
protoOf(Buffer).
|
|
312
|
+
protoOf(Buffer).c34 = function (sink, startIndex, endIndex) {
|
|
313
313
|
// Inline function 'kotlinx.io.checkBounds' call
|
|
314
314
|
var size = sink.length;
|
|
315
315
|
checkBounds(fromInt(size), fromInt(startIndex), fromInt(endIndex));
|
|
316
|
-
var tmp0_elvis_lhs = this.
|
|
316
|
+
var tmp0_elvis_lhs = this.a33_1;
|
|
317
317
|
var tmp;
|
|
318
318
|
if (tmp0_elvis_lhs == null) {
|
|
319
319
|
return -1;
|
|
@@ -325,14 +325,14 @@ protoOf(Buffer).k2y = function (sink, startIndex, endIndex) {
|
|
|
325
325
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
326
326
|
var b = s.g1();
|
|
327
327
|
var toCopy = Math.min(tmp0, b);
|
|
328
|
-
s.
|
|
329
|
-
this.
|
|
328
|
+
s.d34(sink, startIndex, startIndex + toCopy | 0);
|
|
329
|
+
this.c33_1 = subtract(this.c33_1, fromInt(toCopy));
|
|
330
330
|
if (isEmpty(s)) {
|
|
331
|
-
this.
|
|
331
|
+
this.p33();
|
|
332
332
|
}
|
|
333
333
|
return toCopy;
|
|
334
334
|
};
|
|
335
|
-
protoOf(Buffer).
|
|
335
|
+
protoOf(Buffer).e34 = function (sink, byteCount) {
|
|
336
336
|
// Inline function 'kotlinx.io.checkByteCount' call
|
|
337
337
|
// Inline function 'kotlin.require' call
|
|
338
338
|
if (!(byteCount >= 0n)) {
|
|
@@ -342,10 +342,10 @@ protoOf(Buffer).m2y = function (sink, byteCount) {
|
|
|
342
342
|
if (this.g1() === 0n)
|
|
343
343
|
return -1n;
|
|
344
344
|
var bytesWritten = byteCount > this.g1() ? this.g1() : byteCount;
|
|
345
|
-
sink.
|
|
345
|
+
sink.f34(this, bytesWritten);
|
|
346
346
|
return bytesWritten;
|
|
347
347
|
};
|
|
348
|
-
protoOf(Buffer).
|
|
348
|
+
protoOf(Buffer).g34 = function (sink, byteCount) {
|
|
349
349
|
// Inline function 'kotlinx.io.checkByteCount' call
|
|
350
350
|
// Inline function 'kotlin.require' call
|
|
351
351
|
if (!(byteCount >= 0n)) {
|
|
@@ -353,62 +353,62 @@ protoOf(Buffer).o2y = function (sink, byteCount) {
|
|
|
353
353
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
354
354
|
}
|
|
355
355
|
if (this.g1() < byteCount) {
|
|
356
|
-
sink.
|
|
356
|
+
sink.f34(this, this.g1());
|
|
357
357
|
throw EOFException_init_$Create$_0('Buffer exhausted before writing ' + byteCount.toString() + ' bytes. Only ' + this.g1().toString() + ' bytes were written.');
|
|
358
358
|
}
|
|
359
|
-
sink.
|
|
359
|
+
sink.f34(this, byteCount);
|
|
360
360
|
};
|
|
361
|
-
protoOf(Buffer).
|
|
361
|
+
protoOf(Buffer).h34 = function (sink) {
|
|
362
362
|
var byteCount = this.g1();
|
|
363
363
|
if (byteCount > 0n) {
|
|
364
|
-
sink.
|
|
364
|
+
sink.f34(this, byteCount);
|
|
365
365
|
}
|
|
366
366
|
return byteCount;
|
|
367
367
|
};
|
|
368
|
-
protoOf(Buffer).
|
|
368
|
+
protoOf(Buffer).i34 = function () {
|
|
369
369
|
return buffered(new PeekSource(this));
|
|
370
370
|
};
|
|
371
|
-
protoOf(Buffer).
|
|
371
|
+
protoOf(Buffer).j34 = function (minimumCapacity) {
|
|
372
372
|
// Inline function 'kotlin.require' call
|
|
373
373
|
if (!(minimumCapacity >= 1 && minimumCapacity <= 8192)) {
|
|
374
374
|
var message = 'unexpected capacity (' + minimumCapacity + '), should be in range [1, 8192]';
|
|
375
375
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
376
376
|
}
|
|
377
|
-
if (this.
|
|
378
|
-
var result = SegmentPool_instance.
|
|
379
|
-
this.
|
|
380
|
-
this.
|
|
377
|
+
if (this.b33_1 == null) {
|
|
378
|
+
var result = SegmentPool_instance.m34();
|
|
379
|
+
this.a33_1 = result;
|
|
380
|
+
this.b33_1 = result;
|
|
381
381
|
return result;
|
|
382
382
|
}
|
|
383
|
-
var t = ensureNotNull(this.
|
|
384
|
-
if ((t.
|
|
385
|
-
var newTail = t.
|
|
386
|
-
this.
|
|
383
|
+
var t = ensureNotNull(this.b33_1);
|
|
384
|
+
if ((t.k33_1 + minimumCapacity | 0) > 8192 || !t.m33_1) {
|
|
385
|
+
var newTail = t.w33(SegmentPool_instance.m34());
|
|
386
|
+
this.b33_1 = newTail;
|
|
387
387
|
return newTail;
|
|
388
388
|
}
|
|
389
389
|
return t;
|
|
390
390
|
};
|
|
391
|
-
protoOf(Buffer).
|
|
391
|
+
protoOf(Buffer).n34 = function (source, startIndex, endIndex) {
|
|
392
392
|
// Inline function 'kotlinx.io.checkBounds' call
|
|
393
393
|
var size = source.length;
|
|
394
394
|
checkBounds(fromInt(size), fromInt(startIndex), fromInt(endIndex));
|
|
395
395
|
var currentOffset = startIndex;
|
|
396
396
|
while (currentOffset < endIndex) {
|
|
397
|
-
var tail = this.
|
|
397
|
+
var tail = this.j34(1);
|
|
398
398
|
var tmp0 = endIndex - currentOffset | 0;
|
|
399
399
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
400
|
-
var b = tail.
|
|
400
|
+
var b = tail.o34();
|
|
401
401
|
var toCopy = Math.min(tmp0, b);
|
|
402
|
-
tail.
|
|
402
|
+
tail.p34(source, currentOffset, currentOffset + toCopy | 0);
|
|
403
403
|
currentOffset = currentOffset + toCopy | 0;
|
|
404
404
|
}
|
|
405
405
|
var tmp = this;
|
|
406
|
-
var tmp0_0 = this.
|
|
406
|
+
var tmp0_0 = this.c33_1;
|
|
407
407
|
// Inline function 'kotlin.Long.plus' call
|
|
408
408
|
var other = endIndex - startIndex | 0;
|
|
409
|
-
tmp.
|
|
409
|
+
tmp.c33_1 = add(tmp0_0, fromInt(other));
|
|
410
410
|
};
|
|
411
|
-
protoOf(Buffer).
|
|
411
|
+
protoOf(Buffer).r34 = function (source, byteCount) {
|
|
412
412
|
// Inline function 'kotlinx.io.checkByteCount' call
|
|
413
413
|
// Inline function 'kotlin.require' call
|
|
414
414
|
if (!(byteCount >= 0n)) {
|
|
@@ -417,85 +417,85 @@ protoOf(Buffer).z2y = function (source, byteCount) {
|
|
|
417
417
|
}
|
|
418
418
|
var remainingByteCount = byteCount;
|
|
419
419
|
while (remainingByteCount > 0n) {
|
|
420
|
-
var read = source.
|
|
420
|
+
var read = source.e34(this, remainingByteCount);
|
|
421
421
|
if (read === -1n) {
|
|
422
422
|
throw EOFException_init_$Create$_0('Source exhausted before reading ' + byteCount.toString() + ' bytes. ' + ('Only ' + subtract(byteCount, remainingByteCount).toString() + ' were read.'));
|
|
423
423
|
}
|
|
424
424
|
remainingByteCount = subtract(remainingByteCount, read);
|
|
425
425
|
}
|
|
426
426
|
};
|
|
427
|
-
protoOf(Buffer).
|
|
427
|
+
protoOf(Buffer).f34 = function (source, byteCount) {
|
|
428
428
|
// Inline function 'kotlin.require' call
|
|
429
429
|
if (!!(source === this)) {
|
|
430
430
|
var message = 'source == this';
|
|
431
431
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
432
432
|
}
|
|
433
|
-
checkOffsetAndCount(source.
|
|
433
|
+
checkOffsetAndCount(source.c33_1, 0n, byteCount);
|
|
434
434
|
var remainingByteCount = byteCount;
|
|
435
435
|
while (remainingByteCount > 0n) {
|
|
436
|
-
if (remainingByteCount < fromInt(ensureNotNull(source.
|
|
437
|
-
var tail = this.
|
|
436
|
+
if (remainingByteCount < fromInt(ensureNotNull(source.a33_1).g1())) {
|
|
437
|
+
var tail = this.b33_1;
|
|
438
438
|
var tmp;
|
|
439
|
-
if (!(tail == null) && tail.
|
|
439
|
+
if (!(tail == null) && tail.m33_1) {
|
|
440
440
|
var tmp0 = remainingByteCount;
|
|
441
441
|
// Inline function 'kotlin.Long.plus' call
|
|
442
|
-
var other = tail.
|
|
442
|
+
var other = tail.k33_1;
|
|
443
443
|
var tmp0_0 = add(tmp0, fromInt(other));
|
|
444
444
|
// Inline function 'kotlin.Long.minus' call
|
|
445
|
-
var other_0 = tail.
|
|
445
|
+
var other_0 = tail.s34() ? 0 : tail.j33_1;
|
|
446
446
|
tmp = subtract(tmp0_0, fromInt(other_0)) <= 8192n;
|
|
447
447
|
} else {
|
|
448
448
|
tmp = false;
|
|
449
449
|
}
|
|
450
450
|
if (tmp) {
|
|
451
|
-
ensureNotNull(source.
|
|
452
|
-
source.
|
|
453
|
-
this.
|
|
451
|
+
ensureNotNull(source.a33_1).u34(tail, convertToInt(remainingByteCount));
|
|
452
|
+
source.c33_1 = subtract(source.c33_1, remainingByteCount);
|
|
453
|
+
this.c33_1 = add(this.c33_1, remainingByteCount);
|
|
454
454
|
return Unit_instance;
|
|
455
455
|
} else {
|
|
456
|
-
source.
|
|
456
|
+
source.a33_1 = ensureNotNull(source.a33_1).t34(convertToInt(remainingByteCount));
|
|
457
457
|
}
|
|
458
458
|
}
|
|
459
|
-
var segmentToMove = ensureNotNull(source.
|
|
459
|
+
var segmentToMove = ensureNotNull(source.a33_1);
|
|
460
460
|
var movedByteCount = fromInt(segmentToMove.g1());
|
|
461
|
-
source.
|
|
462
|
-
if (source.
|
|
463
|
-
source.
|
|
461
|
+
source.a33_1 = segmentToMove.v34();
|
|
462
|
+
if (source.a33_1 == null) {
|
|
463
|
+
source.b33_1 = null;
|
|
464
464
|
}
|
|
465
465
|
// Inline function 'kotlinx.io.Buffer.pushSegment' call
|
|
466
|
-
if (this.
|
|
467
|
-
this.
|
|
468
|
-
this.
|
|
466
|
+
if (this.a33_1 == null) {
|
|
467
|
+
this.a33_1 = segmentToMove;
|
|
468
|
+
this.b33_1 = segmentToMove;
|
|
469
469
|
} else if (true) {
|
|
470
|
-
this.
|
|
471
|
-
if (ensureNotNull(this.
|
|
472
|
-
this.
|
|
470
|
+
this.b33_1 = ensureNotNull(this.b33_1).w33(segmentToMove).x33();
|
|
471
|
+
if (ensureNotNull(this.b33_1).o33_1 == null) {
|
|
472
|
+
this.a33_1 = this.b33_1;
|
|
473
473
|
}
|
|
474
474
|
} else {
|
|
475
|
-
this.
|
|
475
|
+
this.b33_1 = ensureNotNull(this.b33_1).w33(segmentToMove);
|
|
476
476
|
}
|
|
477
|
-
source.
|
|
478
|
-
this.
|
|
477
|
+
source.c33_1 = subtract(source.c33_1, movedByteCount);
|
|
478
|
+
this.c33_1 = add(this.c33_1, movedByteCount);
|
|
479
479
|
remainingByteCount = subtract(remainingByteCount, movedByteCount);
|
|
480
480
|
}
|
|
481
481
|
};
|
|
482
|
-
protoOf(Buffer).
|
|
482
|
+
protoOf(Buffer).w34 = function (source) {
|
|
483
483
|
var totalBytesRead = 0n;
|
|
484
484
|
$l$loop: while (true) {
|
|
485
|
-
var readCount = source.
|
|
485
|
+
var readCount = source.e34(this, 8192n);
|
|
486
486
|
if (readCount === -1n)
|
|
487
487
|
break $l$loop;
|
|
488
488
|
totalBytesRead = add(totalBytesRead, readCount);
|
|
489
489
|
}
|
|
490
490
|
return totalBytesRead;
|
|
491
491
|
};
|
|
492
|
-
protoOf(Buffer).
|
|
493
|
-
this.
|
|
494
|
-
this.
|
|
492
|
+
protoOf(Buffer).x34 = function (byte) {
|
|
493
|
+
this.j34(1).y34(byte);
|
|
494
|
+
this.c33_1 = add(this.c33_1, 1n);
|
|
495
495
|
};
|
|
496
|
-
protoOf(Buffer).
|
|
497
|
-
this.
|
|
498
|
-
this.
|
|
496
|
+
protoOf(Buffer).z34 = function (short) {
|
|
497
|
+
this.j34(2).a35(short);
|
|
498
|
+
this.c33_1 = add(this.c33_1, 2n);
|
|
499
499
|
};
|
|
500
500
|
protoOf(Buffer).c5 = function () {
|
|
501
501
|
return Unit_instance;
|
|
@@ -513,7 +513,7 @@ protoOf(Buffer).toString = function () {
|
|
|
513
513
|
var builder = StringBuilder_init_$Create$(imul(len, 2) + (this.g1() > fromInt(maxPrintableBytes) ? 1 : 0) | 0);
|
|
514
514
|
var bytesWritten = 0;
|
|
515
515
|
// Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.forEachSegment' call
|
|
516
|
-
var curr = this.
|
|
516
|
+
var curr = this.a33_1;
|
|
517
517
|
while (!(curr == null)) {
|
|
518
518
|
var tmp0 = get_SegmentReadContextImpl();
|
|
519
519
|
var segment = curr;
|
|
@@ -521,7 +521,7 @@ protoOf(Buffer).toString = function () {
|
|
|
521
521
|
while (bytesWritten < len && idx < segment.g1()) {
|
|
522
522
|
var _unary__edvuaz = idx;
|
|
523
523
|
idx = _unary__edvuaz + 1 | 0;
|
|
524
|
-
var b_0 = tmp0.
|
|
524
|
+
var b_0 = tmp0.b35(segment, _unary__edvuaz);
|
|
525
525
|
bytesWritten = bytesWritten + 1 | 0;
|
|
526
526
|
var tmp = get_HEX_DIGIT_CHARS();
|
|
527
527
|
// Inline function 'kotlinx.io.shr' call
|
|
@@ -532,36 +532,36 @@ protoOf(Buffer).toString = function () {
|
|
|
532
532
|
var tmp$ret$3 = b_0 & 15;
|
|
533
533
|
tmp_0.s(tmp_1[tmp$ret$3]);
|
|
534
534
|
}
|
|
535
|
-
curr = curr.
|
|
535
|
+
curr = curr.n33_1;
|
|
536
536
|
}
|
|
537
537
|
if (this.g1() > fromInt(maxPrintableBytes)) {
|
|
538
538
|
builder.s(_Char___init__impl__6a9atx(8230));
|
|
539
539
|
}
|
|
540
540
|
return 'Buffer(size=' + this.g1().toString() + ' hex=' + builder.toString() + ')';
|
|
541
541
|
};
|
|
542
|
-
protoOf(Buffer).
|
|
543
|
-
var oldHead = ensureNotNull(this.
|
|
544
|
-
var nextHead = oldHead.
|
|
545
|
-
this.
|
|
542
|
+
protoOf(Buffer).p33 = function () {
|
|
543
|
+
var oldHead = ensureNotNull(this.a33_1);
|
|
544
|
+
var nextHead = oldHead.n33_1;
|
|
545
|
+
this.a33_1 = nextHead;
|
|
546
546
|
if (nextHead == null) {
|
|
547
|
-
this.
|
|
547
|
+
this.b33_1 = null;
|
|
548
548
|
} else {
|
|
549
|
-
nextHead.
|
|
549
|
+
nextHead.o33_1 = null;
|
|
550
550
|
}
|
|
551
|
-
oldHead.
|
|
552
|
-
SegmentPool_instance.
|
|
551
|
+
oldHead.n33_1 = null;
|
|
552
|
+
SegmentPool_instance.c35(oldHead);
|
|
553
553
|
};
|
|
554
|
-
protoOf(Buffer).
|
|
555
|
-
var oldTail = ensureNotNull(this.
|
|
556
|
-
var newTail = oldTail.
|
|
557
|
-
this.
|
|
554
|
+
protoOf(Buffer).d35 = function () {
|
|
555
|
+
var oldTail = ensureNotNull(this.b33_1);
|
|
556
|
+
var newTail = oldTail.o33_1;
|
|
557
|
+
this.b33_1 = newTail;
|
|
558
558
|
if (newTail == null) {
|
|
559
|
-
this.
|
|
559
|
+
this.a33_1 = null;
|
|
560
560
|
} else {
|
|
561
|
-
newTail.
|
|
561
|
+
newTail.n33_1 = null;
|
|
562
562
|
}
|
|
563
|
-
oldTail.
|
|
564
|
-
SegmentPool_instance.
|
|
563
|
+
oldTail.o33_1 = null;
|
|
564
|
+
SegmentPool_instance.c35(oldTail);
|
|
565
565
|
};
|
|
566
566
|
function indexOf(_this__u8e3s4, byte, startIndex, endIndex) {
|
|
567
567
|
startIndex = startIndex === VOID ? 0n : startIndex;
|
|
@@ -573,7 +573,7 @@ function indexOf(_this__u8e3s4, byte, startIndex, endIndex) {
|
|
|
573
573
|
if (startIndex === endOffset)
|
|
574
574
|
return -1n;
|
|
575
575
|
// Inline function 'kotlinx.io.seek' call
|
|
576
|
-
if (_this__u8e3s4.
|
|
576
|
+
if (_this__u8e3s4.a33_1 == null) {
|
|
577
577
|
if (-1n === -1n) {
|
|
578
578
|
return -1n;
|
|
579
579
|
}
|
|
@@ -601,19 +601,19 @@ function indexOf(_this__u8e3s4, byte, startIndex, endIndex) {
|
|
|
601
601
|
// Inline function 'kotlin.Long.plus' call
|
|
602
602
|
var other = segment.g1();
|
|
603
603
|
offset = add(tmp0_0, fromInt(other));
|
|
604
|
-
segment = segment.
|
|
604
|
+
segment = segment.n33_1;
|
|
605
605
|
}
|
|
606
606
|
while (!(segment == null) && offset < endOffset);
|
|
607
607
|
return -1n;
|
|
608
608
|
}
|
|
609
609
|
if (subtract(_this__u8e3s4.g1(), startIndex) < startIndex) {
|
|
610
|
-
var s = _this__u8e3s4.
|
|
610
|
+
var s = _this__u8e3s4.b33_1;
|
|
611
611
|
var offset_0 = _this__u8e3s4.g1();
|
|
612
612
|
$l$loop: while (!(s == null) && offset_0 > startIndex) {
|
|
613
|
-
offset_0 = subtract(offset_0, fromInt(s.
|
|
613
|
+
offset_0 = subtract(offset_0, fromInt(s.k33_1 - s.j33_1 | 0));
|
|
614
614
|
if (offset_0 <= startIndex)
|
|
615
615
|
break $l$loop;
|
|
616
|
-
s = s.
|
|
616
|
+
s = s.o33_1;
|
|
617
617
|
}
|
|
618
618
|
var tmp0_1 = s;
|
|
619
619
|
var o = offset_0;
|
|
@@ -644,21 +644,21 @@ function indexOf(_this__u8e3s4, byte, startIndex, endIndex) {
|
|
|
644
644
|
// Inline function 'kotlin.Long.plus' call
|
|
645
645
|
var other_0 = segment_0.g1();
|
|
646
646
|
offset_1 = add(tmp0_3, fromInt(other_0));
|
|
647
|
-
segment_0 = segment_0.
|
|
647
|
+
segment_0 = segment_0.n33_1;
|
|
648
648
|
}
|
|
649
649
|
while (!(segment_0 == null) && offset_1 < endOffset);
|
|
650
650
|
return -1n;
|
|
651
651
|
} else {
|
|
652
|
-
var s_0 = _this__u8e3s4.
|
|
652
|
+
var s_0 = _this__u8e3s4.a33_1;
|
|
653
653
|
var offset_2 = 0n;
|
|
654
654
|
$l$loop_0: while (!(s_0 == null)) {
|
|
655
655
|
var tmp0_4 = offset_2;
|
|
656
656
|
// Inline function 'kotlin.Long.plus' call
|
|
657
|
-
var other_1 = s_0.
|
|
657
|
+
var other_1 = s_0.k33_1 - s_0.j33_1 | 0;
|
|
658
658
|
var nextOffset = add(tmp0_4, fromInt(other_1));
|
|
659
659
|
if (nextOffset > startIndex)
|
|
660
660
|
break $l$loop_0;
|
|
661
|
-
s_0 = s_0.
|
|
661
|
+
s_0 = s_0.n33_1;
|
|
662
662
|
offset_2 = nextOffset;
|
|
663
663
|
}
|
|
664
664
|
var tmp0_5 = s_0;
|
|
@@ -690,32 +690,32 @@ function indexOf(_this__u8e3s4, byte, startIndex, endIndex) {
|
|
|
690
690
|
// Inline function 'kotlin.Long.plus' call
|
|
691
691
|
var other_2 = segment_1.g1();
|
|
692
692
|
offset_3 = add(tmp0_7, fromInt(other_2));
|
|
693
|
-
segment_1 = segment_1.
|
|
693
|
+
segment_1 = segment_1.n33_1;
|
|
694
694
|
}
|
|
695
695
|
while (!(segment_1 == null) && offset_3 < endOffset);
|
|
696
696
|
return -1n;
|
|
697
697
|
}
|
|
698
698
|
}
|
|
699
699
|
function readByteString(_this__u8e3s4, byteCount) {
|
|
700
|
-
return UnsafeByteStringOperations_instance.
|
|
700
|
+
return UnsafeByteStringOperations_instance.z32(readByteArray_0(_this__u8e3s4, byteCount));
|
|
701
701
|
}
|
|
702
702
|
function buffered(_this__u8e3s4) {
|
|
703
703
|
return new RealSource(_this__u8e3s4);
|
|
704
704
|
}
|
|
705
705
|
function PeekSource(upstream) {
|
|
706
|
-
this.
|
|
707
|
-
this.
|
|
708
|
-
this.
|
|
706
|
+
this.e35_1 = upstream;
|
|
707
|
+
this.f35_1 = this.e35_1.d33();
|
|
708
|
+
this.g35_1 = this.f35_1.a33_1;
|
|
709
709
|
var tmp = this;
|
|
710
|
-
var tmp0_safe_receiver = this.
|
|
711
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
712
|
-
tmp.
|
|
713
|
-
this.
|
|
714
|
-
this.
|
|
710
|
+
var tmp0_safe_receiver = this.f35_1.a33_1;
|
|
711
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.j33_1;
|
|
712
|
+
tmp.h35_1 = tmp1_elvis_lhs == null ? -1 : tmp1_elvis_lhs;
|
|
713
|
+
this.i35_1 = false;
|
|
714
|
+
this.j35_1 = 0n;
|
|
715
715
|
}
|
|
716
|
-
protoOf(PeekSource).
|
|
716
|
+
protoOf(PeekSource).e34 = function (sink, byteCount) {
|
|
717
717
|
// Inline function 'kotlin.check' call
|
|
718
|
-
if (!!this.
|
|
718
|
+
if (!!this.i35_1) {
|
|
719
719
|
var message = 'Source is closed.';
|
|
720
720
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
721
721
|
}
|
|
@@ -726,43 +726,43 @@ protoOf(PeekSource).m2y = function (sink, byteCount) {
|
|
|
726
726
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
727
727
|
}
|
|
728
728
|
// Inline function 'kotlin.check' call
|
|
729
|
-
if (!(this.
|
|
729
|
+
if (!(this.g35_1 == null || (this.g35_1 === this.f35_1.a33_1 && this.h35_1 === ensureNotNull(this.f35_1.a33_1).j33_1))) {
|
|
730
730
|
var message_1 = 'Peek source is invalid because upstream source was used';
|
|
731
731
|
throw IllegalStateException_init_$Create$(toString(message_1));
|
|
732
732
|
}
|
|
733
733
|
if (byteCount === 0n)
|
|
734
734
|
return 0n;
|
|
735
735
|
// Inline function 'kotlin.Long.plus' call
|
|
736
|
-
var this_0 = this.
|
|
736
|
+
var this_0 = this.j35_1;
|
|
737
737
|
var tmp$ret$7 = add(this_0, fromInt(1));
|
|
738
|
-
if (!this.
|
|
738
|
+
if (!this.e35_1.g33(tmp$ret$7))
|
|
739
739
|
return -1n;
|
|
740
|
-
if (this.
|
|
741
|
-
this.
|
|
742
|
-
this.
|
|
740
|
+
if (this.g35_1 == null && !(this.f35_1.a33_1 == null)) {
|
|
741
|
+
this.g35_1 = this.f35_1.a33_1;
|
|
742
|
+
this.h35_1 = ensureNotNull(this.f35_1.a33_1).j33_1;
|
|
743
743
|
}
|
|
744
744
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
745
|
-
var b = subtract(this.
|
|
745
|
+
var b = subtract(this.f35_1.g1(), this.j35_1);
|
|
746
746
|
var toCopy = byteCount <= b ? byteCount : b;
|
|
747
|
-
this.
|
|
748
|
-
this.
|
|
747
|
+
this.f35_1.u33(sink, this.j35_1, add(this.j35_1, toCopy));
|
|
748
|
+
this.j35_1 = add(this.j35_1, toCopy);
|
|
749
749
|
return toCopy;
|
|
750
750
|
};
|
|
751
751
|
protoOf(PeekSource).c5 = function () {
|
|
752
|
-
this.
|
|
752
|
+
this.i35_1 = true;
|
|
753
753
|
};
|
|
754
754
|
function RealSource(source) {
|
|
755
|
-
this.
|
|
756
|
-
this.
|
|
757
|
-
this.
|
|
755
|
+
this.k35_1 = source;
|
|
756
|
+
this.l35_1 = false;
|
|
757
|
+
this.m35_1 = new Buffer();
|
|
758
758
|
}
|
|
759
|
-
protoOf(RealSource).
|
|
760
|
-
return this.
|
|
759
|
+
protoOf(RealSource).d33 = function () {
|
|
760
|
+
return this.m35_1;
|
|
761
761
|
};
|
|
762
|
-
protoOf(RealSource).
|
|
762
|
+
protoOf(RealSource).e34 = function (sink, byteCount) {
|
|
763
763
|
// Inline function 'kotlinx.io.RealSource.checkNotClosed' call
|
|
764
764
|
// Inline function 'kotlin.check' call
|
|
765
|
-
if (!!this.
|
|
765
|
+
if (!!this.l35_1) {
|
|
766
766
|
var message = 'Source is closed.';
|
|
767
767
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
768
768
|
}
|
|
@@ -771,33 +771,33 @@ protoOf(RealSource).m2y = function (sink, byteCount) {
|
|
|
771
771
|
var message_0 = 'byteCount: ' + byteCount.toString();
|
|
772
772
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
773
773
|
}
|
|
774
|
-
if (this.
|
|
775
|
-
var read = this.
|
|
774
|
+
if (this.m35_1.g1() === 0n) {
|
|
775
|
+
var read = this.k35_1.e34(this.m35_1, 8192n);
|
|
776
776
|
if (read === -1n)
|
|
777
777
|
return -1n;
|
|
778
778
|
}
|
|
779
779
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
780
|
-
var b = this.
|
|
780
|
+
var b = this.m35_1.g1();
|
|
781
781
|
var toRead = byteCount <= b ? byteCount : b;
|
|
782
|
-
return this.
|
|
782
|
+
return this.m35_1.e34(sink, toRead);
|
|
783
783
|
};
|
|
784
|
-
protoOf(RealSource).
|
|
784
|
+
protoOf(RealSource).e33 = function () {
|
|
785
785
|
// Inline function 'kotlinx.io.RealSource.checkNotClosed' call
|
|
786
786
|
// Inline function 'kotlin.check' call
|
|
787
|
-
if (!!this.
|
|
787
|
+
if (!!this.l35_1) {
|
|
788
788
|
var message = 'Source is closed.';
|
|
789
789
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
790
790
|
}
|
|
791
|
-
return this.
|
|
791
|
+
return this.m35_1.e33() && this.k35_1.e34(this.m35_1, 8192n) === -1n;
|
|
792
792
|
};
|
|
793
|
-
protoOf(RealSource).
|
|
794
|
-
if (!this.
|
|
793
|
+
protoOf(RealSource).f33 = function (byteCount) {
|
|
794
|
+
if (!this.g33(byteCount))
|
|
795
795
|
throw EOFException_init_$Create$_0("Source doesn't contain required number of bytes (" + byteCount.toString() + ').');
|
|
796
796
|
};
|
|
797
|
-
protoOf(RealSource).
|
|
797
|
+
protoOf(RealSource).g33 = function (byteCount) {
|
|
798
798
|
// Inline function 'kotlinx.io.RealSource.checkNotClosed' call
|
|
799
799
|
// Inline function 'kotlin.check' call
|
|
800
|
-
if (!!this.
|
|
800
|
+
if (!!this.l35_1) {
|
|
801
801
|
var message = 'Source is closed.';
|
|
802
802
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
803
803
|
}
|
|
@@ -806,91 +806,91 @@ protoOf(RealSource).o2x = function (byteCount) {
|
|
|
806
806
|
var message_0 = 'byteCount: ' + byteCount.toString();
|
|
807
807
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
808
808
|
}
|
|
809
|
-
while (this.
|
|
810
|
-
if (this.
|
|
809
|
+
while (this.m35_1.g1() < byteCount) {
|
|
810
|
+
if (this.k35_1.e34(this.m35_1, 8192n) === -1n)
|
|
811
811
|
return false;
|
|
812
812
|
}
|
|
813
813
|
return true;
|
|
814
814
|
};
|
|
815
|
-
protoOf(RealSource).
|
|
816
|
-
this.
|
|
817
|
-
return this.
|
|
815
|
+
protoOf(RealSource).h33 = function () {
|
|
816
|
+
this.f33(1n);
|
|
817
|
+
return this.m35_1.h33();
|
|
818
818
|
};
|
|
819
|
-
protoOf(RealSource).
|
|
819
|
+
protoOf(RealSource).c34 = function (sink, startIndex, endIndex) {
|
|
820
820
|
// Inline function 'kotlinx.io.checkBounds' call
|
|
821
821
|
var size = sink.length;
|
|
822
822
|
checkBounds(fromInt(size), fromInt(startIndex), fromInt(endIndex));
|
|
823
|
-
if (this.
|
|
824
|
-
var read = this.
|
|
823
|
+
if (this.m35_1.g1() === 0n) {
|
|
824
|
+
var read = this.k35_1.e34(this.m35_1, 8192n);
|
|
825
825
|
if (read === -1n)
|
|
826
826
|
return -1;
|
|
827
827
|
}
|
|
828
828
|
var tmp0 = endIndex - startIndex | 0;
|
|
829
829
|
// Inline function 'kotlinx.io.minOf' call
|
|
830
|
-
var b = this.
|
|
830
|
+
var b = this.m35_1.g1();
|
|
831
831
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
832
832
|
var a = fromInt(tmp0);
|
|
833
833
|
var tmp$ret$2 = a <= b ? a : b;
|
|
834
834
|
var toRead = convertToInt(tmp$ret$2);
|
|
835
|
-
return this.
|
|
835
|
+
return this.m35_1.c34(sink, startIndex, startIndex + toRead | 0);
|
|
836
836
|
};
|
|
837
|
-
protoOf(RealSource).
|
|
837
|
+
protoOf(RealSource).g34 = function (sink, byteCount) {
|
|
838
838
|
try {
|
|
839
|
-
this.
|
|
839
|
+
this.f33(byteCount);
|
|
840
840
|
} catch ($p) {
|
|
841
841
|
if ($p instanceof EOFException) {
|
|
842
842
|
var e = $p;
|
|
843
|
-
sink.
|
|
843
|
+
sink.f34(this.m35_1, this.m35_1.g1());
|
|
844
844
|
throw e;
|
|
845
845
|
} else {
|
|
846
846
|
throw $p;
|
|
847
847
|
}
|
|
848
848
|
}
|
|
849
|
-
this.
|
|
849
|
+
this.m35_1.g34(sink, byteCount);
|
|
850
850
|
};
|
|
851
|
-
protoOf(RealSource).
|
|
851
|
+
protoOf(RealSource).h34 = function (sink) {
|
|
852
852
|
var totalBytesWritten = 0n;
|
|
853
|
-
while (!(this.
|
|
854
|
-
var emitByteCount = this.
|
|
853
|
+
while (!(this.k35_1.e34(this.m35_1, 8192n) === -1n)) {
|
|
854
|
+
var emitByteCount = this.m35_1.y33();
|
|
855
855
|
if (emitByteCount > 0n) {
|
|
856
856
|
totalBytesWritten = add(totalBytesWritten, emitByteCount);
|
|
857
|
-
sink.
|
|
857
|
+
sink.f34(this.m35_1, emitByteCount);
|
|
858
858
|
}
|
|
859
859
|
}
|
|
860
|
-
if (this.
|
|
861
|
-
totalBytesWritten = add(totalBytesWritten, this.
|
|
862
|
-
sink.
|
|
860
|
+
if (this.m35_1.g1() > 0n) {
|
|
861
|
+
totalBytesWritten = add(totalBytesWritten, this.m35_1.g1());
|
|
862
|
+
sink.f34(this.m35_1, this.m35_1.g1());
|
|
863
863
|
}
|
|
864
864
|
return totalBytesWritten;
|
|
865
865
|
};
|
|
866
|
-
protoOf(RealSource).
|
|
867
|
-
this.
|
|
868
|
-
return this.
|
|
866
|
+
protoOf(RealSource).r33 = function () {
|
|
867
|
+
this.f33(2n);
|
|
868
|
+
return this.m35_1.r33();
|
|
869
869
|
};
|
|
870
|
-
protoOf(RealSource).
|
|
870
|
+
protoOf(RealSource).i34 = function () {
|
|
871
871
|
// Inline function 'kotlinx.io.RealSource.checkNotClosed' call
|
|
872
872
|
// Inline function 'kotlin.check' call
|
|
873
|
-
if (!!this.
|
|
873
|
+
if (!!this.l35_1) {
|
|
874
874
|
var message = 'Source is closed.';
|
|
875
875
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
876
876
|
}
|
|
877
877
|
return buffered(new PeekSource(this));
|
|
878
878
|
};
|
|
879
879
|
protoOf(RealSource).c5 = function () {
|
|
880
|
-
if (this.
|
|
880
|
+
if (this.l35_1)
|
|
881
881
|
return Unit_instance;
|
|
882
|
-
this.
|
|
883
|
-
this.
|
|
884
|
-
this.
|
|
882
|
+
this.l35_1 = true;
|
|
883
|
+
this.k35_1.c5();
|
|
884
|
+
this.m35_1.f3();
|
|
885
885
|
};
|
|
886
886
|
protoOf(RealSource).toString = function () {
|
|
887
|
-
return 'buffered(' + toString(this.
|
|
887
|
+
return 'buffered(' + toString(this.k35_1) + ')';
|
|
888
888
|
};
|
|
889
889
|
function Segment_init_$Init$($this) {
|
|
890
890
|
Segment.call($this);
|
|
891
|
-
$this.
|
|
892
|
-
$this.
|
|
893
|
-
$this.
|
|
891
|
+
$this.i33_1 = new Int8Array(8192);
|
|
892
|
+
$this.m33_1 = true;
|
|
893
|
+
$this.l33_1 = null;
|
|
894
894
|
return $this;
|
|
895
895
|
}
|
|
896
896
|
function Segment_init_$Create$() {
|
|
@@ -898,87 +898,87 @@ function Segment_init_$Create$() {
|
|
|
898
898
|
}
|
|
899
899
|
function Segment_init_$Init$_0(data, pos, limit, shareToken, owner, $this) {
|
|
900
900
|
Segment.call($this);
|
|
901
|
-
$this.
|
|
902
|
-
$this.
|
|
903
|
-
$this.
|
|
904
|
-
$this.
|
|
905
|
-
$this.
|
|
901
|
+
$this.i33_1 = data;
|
|
902
|
+
$this.j33_1 = pos;
|
|
903
|
+
$this.k33_1 = limit;
|
|
904
|
+
$this.l33_1 = shareToken;
|
|
905
|
+
$this.m33_1 = owner;
|
|
906
906
|
return $this;
|
|
907
907
|
}
|
|
908
908
|
function Segment_init_$Create$_0(data, pos, limit, shareToken, owner) {
|
|
909
909
|
return Segment_init_$Init$_0(data, pos, limit, shareToken, owner, objectCreate(protoOf(Segment)));
|
|
910
910
|
}
|
|
911
911
|
function Companion() {
|
|
912
|
-
this.
|
|
913
|
-
this.
|
|
912
|
+
this.n35_1 = 8192;
|
|
913
|
+
this.o35_1 = 1024;
|
|
914
914
|
}
|
|
915
|
-
protoOf(Companion).
|
|
915
|
+
protoOf(Companion).p35 = function () {
|
|
916
916
|
return Segment_init_$Create$();
|
|
917
917
|
};
|
|
918
918
|
var Companion_instance;
|
|
919
919
|
function Companion_getInstance() {
|
|
920
920
|
return Companion_instance;
|
|
921
921
|
}
|
|
922
|
-
protoOf(Segment).
|
|
923
|
-
var tmp0_safe_receiver = this.
|
|
924
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
922
|
+
protoOf(Segment).s34 = function () {
|
|
923
|
+
var tmp0_safe_receiver = this.l33_1;
|
|
924
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.q35();
|
|
925
925
|
return tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs;
|
|
926
926
|
};
|
|
927
|
-
protoOf(Segment).
|
|
928
|
-
var tmp0_elvis_lhs = this.
|
|
927
|
+
protoOf(Segment).v33 = function () {
|
|
928
|
+
var tmp0_elvis_lhs = this.l33_1;
|
|
929
929
|
var tmp;
|
|
930
930
|
if (tmp0_elvis_lhs == null) {
|
|
931
931
|
// Inline function 'kotlin.also' call
|
|
932
|
-
var this_0 = SegmentPool_instance.
|
|
933
|
-
this.
|
|
932
|
+
var this_0 = SegmentPool_instance.r35();
|
|
933
|
+
this.l33_1 = this_0;
|
|
934
934
|
tmp = this_0;
|
|
935
935
|
} else {
|
|
936
936
|
tmp = tmp0_elvis_lhs;
|
|
937
937
|
}
|
|
938
938
|
var t = tmp;
|
|
939
|
-
var tmp_0 = this.
|
|
940
|
-
var tmp_1 = this.
|
|
939
|
+
var tmp_0 = this.j33_1;
|
|
940
|
+
var tmp_1 = this.k33_1;
|
|
941
941
|
// Inline function 'kotlin.also' call
|
|
942
|
-
t.
|
|
943
|
-
return Segment_init_$Create$_0(this.
|
|
942
|
+
t.s35();
|
|
943
|
+
return Segment_init_$Create$_0(this.i33_1, tmp_0, tmp_1, t, false);
|
|
944
944
|
};
|
|
945
|
-
protoOf(Segment).
|
|
946
|
-
var result = this.
|
|
947
|
-
if (!(this.
|
|
948
|
-
ensureNotNull(this.
|
|
945
|
+
protoOf(Segment).v34 = function () {
|
|
946
|
+
var result = this.n33_1;
|
|
947
|
+
if (!(this.o33_1 == null)) {
|
|
948
|
+
ensureNotNull(this.o33_1).n33_1 = this.n33_1;
|
|
949
949
|
}
|
|
950
|
-
if (!(this.
|
|
951
|
-
ensureNotNull(this.
|
|
950
|
+
if (!(this.n33_1 == null)) {
|
|
951
|
+
ensureNotNull(this.n33_1).o33_1 = this.o33_1;
|
|
952
952
|
}
|
|
953
|
-
this.
|
|
954
|
-
this.
|
|
953
|
+
this.n33_1 = null;
|
|
954
|
+
this.o33_1 = null;
|
|
955
955
|
return result;
|
|
956
956
|
};
|
|
957
|
-
protoOf(Segment).
|
|
958
|
-
segment.
|
|
959
|
-
segment.
|
|
960
|
-
if (!(this.
|
|
961
|
-
ensureNotNull(this.
|
|
957
|
+
protoOf(Segment).w33 = function (segment) {
|
|
958
|
+
segment.o33_1 = this;
|
|
959
|
+
segment.n33_1 = this.n33_1;
|
|
960
|
+
if (!(this.n33_1 == null)) {
|
|
961
|
+
ensureNotNull(this.n33_1).o33_1 = segment;
|
|
962
962
|
}
|
|
963
|
-
this.
|
|
963
|
+
this.n33_1 = segment;
|
|
964
964
|
return segment;
|
|
965
965
|
};
|
|
966
|
-
protoOf(Segment).
|
|
966
|
+
protoOf(Segment).t34 = function (byteCount) {
|
|
967
967
|
// Inline function 'kotlin.require' call
|
|
968
|
-
if (!(byteCount > 0 && byteCount <= (this.
|
|
968
|
+
if (!(byteCount > 0 && byteCount <= (this.k33_1 - this.j33_1 | 0))) {
|
|
969
969
|
var message = 'byteCount out of range';
|
|
970
970
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
971
971
|
}
|
|
972
972
|
var prefix;
|
|
973
973
|
if (byteCount >= 1024) {
|
|
974
|
-
prefix = this.
|
|
974
|
+
prefix = this.v33();
|
|
975
975
|
} else {
|
|
976
|
-
prefix = SegmentPool_instance.
|
|
977
|
-
var tmp0 = this.
|
|
978
|
-
var tmp2 = prefix.
|
|
979
|
-
var tmp5 = this.
|
|
976
|
+
prefix = SegmentPool_instance.m34();
|
|
977
|
+
var tmp0 = this.i33_1;
|
|
978
|
+
var tmp2 = prefix.i33_1;
|
|
979
|
+
var tmp5 = this.j33_1;
|
|
980
980
|
// Inline function 'kotlin.collections.copyInto' call
|
|
981
|
-
var endIndex = this.
|
|
981
|
+
var endIndex = this.j33_1 + byteCount | 0;
|
|
982
982
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
983
983
|
// Inline function 'kotlin.js.asDynamic' call
|
|
984
984
|
var tmp = tmp0;
|
|
@@ -986,62 +986,62 @@ protoOf(Segment).b2z = function (byteCount) {
|
|
|
986
986
|
// Inline function 'kotlin.js.asDynamic' call
|
|
987
987
|
arrayCopy(tmp, tmp2, 0, tmp5, endIndex);
|
|
988
988
|
}
|
|
989
|
-
prefix.
|
|
990
|
-
this.
|
|
991
|
-
if (!(this.
|
|
992
|
-
ensureNotNull(this.
|
|
989
|
+
prefix.k33_1 = prefix.j33_1 + byteCount | 0;
|
|
990
|
+
this.j33_1 = this.j33_1 + byteCount | 0;
|
|
991
|
+
if (!(this.o33_1 == null)) {
|
|
992
|
+
ensureNotNull(this.o33_1).w33(prefix);
|
|
993
993
|
} else {
|
|
994
|
-
prefix.
|
|
995
|
-
this.
|
|
994
|
+
prefix.n33_1 = this;
|
|
995
|
+
this.o33_1 = prefix;
|
|
996
996
|
}
|
|
997
997
|
return prefix;
|
|
998
998
|
};
|
|
999
|
-
protoOf(Segment).
|
|
999
|
+
protoOf(Segment).x33 = function () {
|
|
1000
1000
|
// Inline function 'kotlin.check' call
|
|
1001
|
-
if (!!(this.
|
|
1001
|
+
if (!!(this.o33_1 == null)) {
|
|
1002
1002
|
var message = 'cannot compact';
|
|
1003
1003
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
1004
1004
|
}
|
|
1005
|
-
if (!ensureNotNull(this.
|
|
1005
|
+
if (!ensureNotNull(this.o33_1).m33_1)
|
|
1006
1006
|
return this;
|
|
1007
|
-
var byteCount = this.
|
|
1008
|
-
var availableByteCount = (8192 - ensureNotNull(this.
|
|
1007
|
+
var byteCount = this.k33_1 - this.j33_1 | 0;
|
|
1008
|
+
var availableByteCount = (8192 - ensureNotNull(this.o33_1).k33_1 | 0) + (ensureNotNull(this.o33_1).s34() ? 0 : ensureNotNull(this.o33_1).j33_1) | 0;
|
|
1009
1009
|
if (byteCount > availableByteCount)
|
|
1010
1010
|
return this;
|
|
1011
|
-
var predecessor = this.
|
|
1012
|
-
this.
|
|
1013
|
-
var successor = this.
|
|
1011
|
+
var predecessor = this.o33_1;
|
|
1012
|
+
this.u34(ensureNotNull(predecessor), byteCount);
|
|
1013
|
+
var successor = this.v34();
|
|
1014
1014
|
// Inline function 'kotlin.check' call
|
|
1015
1015
|
if (!(successor == null)) {
|
|
1016
1016
|
throw IllegalStateException_init_$Create$('Check failed.');
|
|
1017
1017
|
}
|
|
1018
|
-
SegmentPool_instance.
|
|
1018
|
+
SegmentPool_instance.c35(this);
|
|
1019
1019
|
return predecessor;
|
|
1020
1020
|
};
|
|
1021
|
-
protoOf(Segment).
|
|
1022
|
-
var _unary__edvuaz = this.
|
|
1023
|
-
this.
|
|
1024
|
-
this.
|
|
1021
|
+
protoOf(Segment).y34 = function (byte) {
|
|
1022
|
+
var _unary__edvuaz = this.k33_1;
|
|
1023
|
+
this.k33_1 = _unary__edvuaz + 1 | 0;
|
|
1024
|
+
this.i33_1[_unary__edvuaz] = byte;
|
|
1025
1025
|
};
|
|
1026
|
-
protoOf(Segment).
|
|
1027
|
-
var data = this.
|
|
1028
|
-
var limit = this.
|
|
1026
|
+
protoOf(Segment).a35 = function (short) {
|
|
1027
|
+
var data = this.i33_1;
|
|
1028
|
+
var limit = this.k33_1;
|
|
1029
1029
|
var _unary__edvuaz = limit;
|
|
1030
1030
|
limit = _unary__edvuaz + 1 | 0;
|
|
1031
1031
|
data[_unary__edvuaz] = toByte((short >>> 8 | 0) & 255);
|
|
1032
1032
|
var _unary__edvuaz_0 = limit;
|
|
1033
1033
|
limit = _unary__edvuaz_0 + 1 | 0;
|
|
1034
1034
|
data[_unary__edvuaz_0] = toByte(short & 255);
|
|
1035
|
-
this.
|
|
1035
|
+
this.k33_1 = limit;
|
|
1036
1036
|
};
|
|
1037
|
-
protoOf(Segment).
|
|
1038
|
-
var _unary__edvuaz = this.
|
|
1039
|
-
this.
|
|
1040
|
-
return this.
|
|
1037
|
+
protoOf(Segment).q33 = function () {
|
|
1038
|
+
var _unary__edvuaz = this.j33_1;
|
|
1039
|
+
this.j33_1 = _unary__edvuaz + 1 | 0;
|
|
1040
|
+
return this.i33_1[_unary__edvuaz];
|
|
1041
1041
|
};
|
|
1042
|
-
protoOf(Segment).
|
|
1043
|
-
var data = this.
|
|
1044
|
-
var pos = this.
|
|
1042
|
+
protoOf(Segment).s33 = function () {
|
|
1043
|
+
var data = this.i33_1;
|
|
1044
|
+
var pos = this.j33_1;
|
|
1045
1045
|
var _unary__edvuaz = pos;
|
|
1046
1046
|
pos = _unary__edvuaz + 1 | 0;
|
|
1047
1047
|
// Inline function 'kotlinx.io.and' call
|
|
@@ -1051,118 +1051,118 @@ protoOf(Segment).a2y = function () {
|
|
|
1051
1051
|
// Inline function 'kotlinx.io.and' call
|
|
1052
1052
|
var tmp$ret$1 = data[_unary__edvuaz_0] & 255;
|
|
1053
1053
|
var s = toShort(tmp | tmp$ret$1);
|
|
1054
|
-
this.
|
|
1054
|
+
this.j33_1 = pos;
|
|
1055
1055
|
return s;
|
|
1056
1056
|
};
|
|
1057
|
-
protoOf(Segment).
|
|
1057
|
+
protoOf(Segment).u34 = function (sink, byteCount) {
|
|
1058
1058
|
// Inline function 'kotlin.check' call
|
|
1059
|
-
if (!sink.
|
|
1059
|
+
if (!sink.m33_1) {
|
|
1060
1060
|
var message = 'only owner can write';
|
|
1061
1061
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
1062
1062
|
}
|
|
1063
|
-
if ((sink.
|
|
1064
|
-
if (sink.
|
|
1063
|
+
if ((sink.k33_1 + byteCount | 0) > 8192) {
|
|
1064
|
+
if (sink.s34())
|
|
1065
1065
|
throw IllegalArgumentException_init_$Create$_0();
|
|
1066
|
-
if (((sink.
|
|
1066
|
+
if (((sink.k33_1 + byteCount | 0) - sink.j33_1 | 0) > 8192)
|
|
1067
1067
|
throw IllegalArgumentException_init_$Create$_0();
|
|
1068
|
-
var tmp0 = sink.
|
|
1069
|
-
var tmp2 = sink.
|
|
1070
|
-
var tmp5 = sink.
|
|
1068
|
+
var tmp0 = sink.i33_1;
|
|
1069
|
+
var tmp2 = sink.i33_1;
|
|
1070
|
+
var tmp5 = sink.j33_1;
|
|
1071
1071
|
// Inline function 'kotlin.collections.copyInto' call
|
|
1072
|
-
var endIndex = sink.
|
|
1072
|
+
var endIndex = sink.k33_1;
|
|
1073
1073
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1074
1074
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1075
1075
|
var tmp = tmp0;
|
|
1076
1076
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1077
1077
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1078
1078
|
arrayCopy(tmp, tmp2, 0, tmp5, endIndex);
|
|
1079
|
-
sink.
|
|
1080
|
-
sink.
|
|
1079
|
+
sink.k33_1 = sink.k33_1 - sink.j33_1 | 0;
|
|
1080
|
+
sink.j33_1 = 0;
|
|
1081
1081
|
}
|
|
1082
|
-
var tmp0_0 = this.
|
|
1083
|
-
var tmp2_0 = sink.
|
|
1084
|
-
var tmp4 = sink.
|
|
1085
|
-
var tmp6 = this.
|
|
1082
|
+
var tmp0_0 = this.i33_1;
|
|
1083
|
+
var tmp2_0 = sink.i33_1;
|
|
1084
|
+
var tmp4 = sink.k33_1;
|
|
1085
|
+
var tmp6 = this.j33_1;
|
|
1086
1086
|
// Inline function 'kotlin.collections.copyInto' call
|
|
1087
|
-
var endIndex_0 = this.
|
|
1087
|
+
var endIndex_0 = this.j33_1 + byteCount | 0;
|
|
1088
1088
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1089
1089
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1090
1090
|
var tmp_0 = tmp0_0;
|
|
1091
1091
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1092
1092
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1093
1093
|
arrayCopy(tmp_0, tmp2_0, tmp4, tmp6, endIndex_0);
|
|
1094
|
-
sink.
|
|
1095
|
-
this.
|
|
1094
|
+
sink.k33_1 = sink.k33_1 + byteCount | 0;
|
|
1095
|
+
this.j33_1 = this.j33_1 + byteCount | 0;
|
|
1096
1096
|
};
|
|
1097
|
-
protoOf(Segment).
|
|
1097
|
+
protoOf(Segment).d34 = function (dst, dstStartOffset, dstEndOffset) {
|
|
1098
1098
|
var len = dstEndOffset - dstStartOffset | 0;
|
|
1099
|
-
var tmp0 = this.
|
|
1100
|
-
var tmp6 = this.
|
|
1099
|
+
var tmp0 = this.i33_1;
|
|
1100
|
+
var tmp6 = this.j33_1;
|
|
1101
1101
|
// Inline function 'kotlin.collections.copyInto' call
|
|
1102
|
-
var endIndex = this.
|
|
1102
|
+
var endIndex = this.j33_1 + len | 0;
|
|
1103
1103
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1104
1104
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1105
1105
|
var tmp = tmp0;
|
|
1106
1106
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1107
1107
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1108
1108
|
arrayCopy(tmp, dst, dstStartOffset, tmp6, endIndex);
|
|
1109
|
-
this.
|
|
1109
|
+
this.j33_1 = this.j33_1 + len | 0;
|
|
1110
1110
|
};
|
|
1111
|
-
protoOf(Segment).
|
|
1112
|
-
var tmp2 = this.
|
|
1111
|
+
protoOf(Segment).p34 = function (src, srcStartOffset, srcEndOffset) {
|
|
1112
|
+
var tmp2 = this.i33_1;
|
|
1113
1113
|
// Inline function 'kotlin.collections.copyInto' call
|
|
1114
|
-
var destinationOffset = this.
|
|
1114
|
+
var destinationOffset = this.k33_1;
|
|
1115
1115
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1116
1116
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1117
1117
|
var tmp = src;
|
|
1118
1118
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1119
1119
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1120
1120
|
arrayCopy(tmp, tmp2, destinationOffset, srcStartOffset, srcEndOffset);
|
|
1121
|
-
this.
|
|
1121
|
+
this.k33_1 = this.k33_1 + (srcEndOffset - srcStartOffset | 0) | 0;
|
|
1122
1122
|
};
|
|
1123
1123
|
protoOf(Segment).g1 = function () {
|
|
1124
|
-
return this.
|
|
1124
|
+
return this.k33_1 - this.j33_1 | 0;
|
|
1125
1125
|
};
|
|
1126
|
-
protoOf(Segment).
|
|
1127
|
-
return this.
|
|
1126
|
+
protoOf(Segment).o34 = function () {
|
|
1127
|
+
return this.i33_1.length - this.k33_1 | 0;
|
|
1128
1128
|
};
|
|
1129
|
-
protoOf(Segment).
|
|
1130
|
-
return this.
|
|
1129
|
+
protoOf(Segment).t35 = function (readOnly) {
|
|
1130
|
+
return this.i33_1;
|
|
1131
1131
|
};
|
|
1132
|
-
protoOf(Segment).
|
|
1133
|
-
return this.
|
|
1132
|
+
protoOf(Segment).a34 = function (index) {
|
|
1133
|
+
return this.i33_1[this.j33_1 + index | 0];
|
|
1134
1134
|
};
|
|
1135
|
-
protoOf(Segment).
|
|
1136
|
-
this.
|
|
1135
|
+
protoOf(Segment).u35 = function (index, value) {
|
|
1136
|
+
this.i33_1[this.k33_1 + index | 0] = value;
|
|
1137
1137
|
};
|
|
1138
|
-
protoOf(Segment).
|
|
1139
|
-
var d = this.
|
|
1140
|
-
var l = this.
|
|
1138
|
+
protoOf(Segment).v35 = function (index, b0, b1) {
|
|
1139
|
+
var d = this.i33_1;
|
|
1140
|
+
var l = this.k33_1;
|
|
1141
1141
|
d[l + index | 0] = b0;
|
|
1142
1142
|
d[(l + index | 0) + 1 | 0] = b1;
|
|
1143
1143
|
};
|
|
1144
|
-
protoOf(Segment).
|
|
1145
|
-
var d = this.
|
|
1146
|
-
var l = this.
|
|
1144
|
+
protoOf(Segment).w35 = function (index, b0, b1, b2) {
|
|
1145
|
+
var d = this.i33_1;
|
|
1146
|
+
var l = this.k33_1;
|
|
1147
1147
|
d[l + index | 0] = b0;
|
|
1148
1148
|
d[(l + index | 0) + 1 | 0] = b1;
|
|
1149
1149
|
d[(l + index | 0) + 2 | 0] = b2;
|
|
1150
1150
|
};
|
|
1151
|
-
protoOf(Segment).
|
|
1152
|
-
var d = this.
|
|
1153
|
-
var l = this.
|
|
1151
|
+
protoOf(Segment).x35 = function (index, b0, b1, b2, b3) {
|
|
1152
|
+
var d = this.i33_1;
|
|
1153
|
+
var l = this.k33_1;
|
|
1154
1154
|
d[l + index | 0] = b0;
|
|
1155
1155
|
d[(l + index | 0) + 1 | 0] = b1;
|
|
1156
1156
|
d[(l + index | 0) + 2 | 0] = b2;
|
|
1157
1157
|
d[(l + index | 0) + 3 | 0] = b3;
|
|
1158
1158
|
};
|
|
1159
1159
|
function Segment() {
|
|
1160
|
-
this.
|
|
1161
|
-
this.
|
|
1162
|
-
this.
|
|
1163
|
-
this.
|
|
1164
|
-
this.
|
|
1165
|
-
this.
|
|
1160
|
+
this.j33_1 = 0;
|
|
1161
|
+
this.k33_1 = 0;
|
|
1162
|
+
this.l33_1 = null;
|
|
1163
|
+
this.m33_1 = false;
|
|
1164
|
+
this.n33_1 = null;
|
|
1165
|
+
this.o33_1 = null;
|
|
1166
1166
|
}
|
|
1167
1167
|
function isEmpty(_this__u8e3s4) {
|
|
1168
1168
|
return _this__u8e3s4.g1() === 0;
|
|
@@ -1173,10 +1173,10 @@ function AlwaysSharedCopyTracker() {
|
|
|
1173
1173
|
AlwaysSharedCopyTracker_instance = this;
|
|
1174
1174
|
SegmentCopyTracker.call(this);
|
|
1175
1175
|
}
|
|
1176
|
-
protoOf(AlwaysSharedCopyTracker).
|
|
1176
|
+
protoOf(AlwaysSharedCopyTracker).q35 = function () {
|
|
1177
1177
|
return true;
|
|
1178
1178
|
};
|
|
1179
|
-
protoOf(AlwaysSharedCopyTracker).
|
|
1179
|
+
protoOf(AlwaysSharedCopyTracker).s35 = function () {
|
|
1180
1180
|
return Unit_instance;
|
|
1181
1181
|
};
|
|
1182
1182
|
var AlwaysSharedCopyTracker_instance;
|
|
@@ -1196,8 +1196,8 @@ function indexOf_0(_this__u8e3s4, byte, startOffset, endOffset) {
|
|
|
1196
1196
|
var message_0 = '' + endOffset;
|
|
1197
1197
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
1198
1198
|
}
|
|
1199
|
-
var p = _this__u8e3s4.
|
|
1200
|
-
var data = _this__u8e3s4.
|
|
1199
|
+
var p = _this__u8e3s4.j33_1;
|
|
1200
|
+
var data = _this__u8e3s4.t35(true);
|
|
1201
1201
|
var inductionVariable = startOffset;
|
|
1202
1202
|
if (inductionVariable < endOffset)
|
|
1203
1203
|
do {
|
|
@@ -1250,23 +1250,23 @@ function indexOf_1(_this__u8e3s4, byte, startIndex, endIndex) {
|
|
|
1250
1250
|
// Inline function 'kotlin.Long.plus' call
|
|
1251
1251
|
var this_0 = offset;
|
|
1252
1252
|
var tmp$ret$2 = add(this_0, fromInt(1));
|
|
1253
|
-
tmp_0 = _this__u8e3s4.
|
|
1253
|
+
tmp_0 = _this__u8e3s4.g33(tmp$ret$2);
|
|
1254
1254
|
} else {
|
|
1255
1255
|
tmp_0 = false;
|
|
1256
1256
|
}
|
|
1257
1257
|
if (!tmp_0) {
|
|
1258
1258
|
break $l$loop;
|
|
1259
1259
|
}
|
|
1260
|
-
var tmp_1 = _this__u8e3s4.
|
|
1260
|
+
var tmp_1 = _this__u8e3s4.d33();
|
|
1261
1261
|
var tmp_2 = offset;
|
|
1262
1262
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
1263
|
-
var b = _this__u8e3s4.
|
|
1263
|
+
var b = _this__u8e3s4.d33().g1();
|
|
1264
1264
|
var tmp$ret$3 = endIndex <= b ? endIndex : b;
|
|
1265
1265
|
var idx = indexOf(tmp_1, byte, tmp_2, tmp$ret$3);
|
|
1266
1266
|
if (!(idx === -1n)) {
|
|
1267
1267
|
return idx;
|
|
1268
1268
|
}
|
|
1269
|
-
offset = _this__u8e3s4.
|
|
1269
|
+
offset = _this__u8e3s4.d33().g1();
|
|
1270
1270
|
}
|
|
1271
1271
|
return -1n;
|
|
1272
1272
|
}
|
|
@@ -1274,22 +1274,22 @@ function readByteArrayImpl(_this__u8e3s4, size) {
|
|
|
1274
1274
|
var arraySize = size;
|
|
1275
1275
|
if (size === -1) {
|
|
1276
1276
|
var fetchSize = 2147483647n;
|
|
1277
|
-
while (_this__u8e3s4.
|
|
1277
|
+
while (_this__u8e3s4.d33().g1() < 2147483647n && _this__u8e3s4.g33(fetchSize)) {
|
|
1278
1278
|
// Inline function 'kotlin.Long.times' call
|
|
1279
1279
|
var this_0 = fetchSize;
|
|
1280
1280
|
fetchSize = multiply(this_0, fromInt(2));
|
|
1281
1281
|
}
|
|
1282
1282
|
// Inline function 'kotlin.check' call
|
|
1283
|
-
if (!(_this__u8e3s4.
|
|
1284
|
-
var message = "Can't create an array of size " + _this__u8e3s4.
|
|
1283
|
+
if (!(_this__u8e3s4.d33().g1() < 2147483647n)) {
|
|
1284
|
+
var message = "Can't create an array of size " + _this__u8e3s4.d33().g1().toString();
|
|
1285
1285
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
1286
1286
|
}
|
|
1287
|
-
arraySize = convertToInt(_this__u8e3s4.
|
|
1287
|
+
arraySize = convertToInt(_this__u8e3s4.d33().g1());
|
|
1288
1288
|
} else {
|
|
1289
|
-
_this__u8e3s4.
|
|
1289
|
+
_this__u8e3s4.f33(fromInt(size));
|
|
1290
1290
|
}
|
|
1291
1291
|
var array = new Int8Array(arraySize);
|
|
1292
|
-
readTo(_this__u8e3s4.
|
|
1292
|
+
readTo(_this__u8e3s4.d33(), array);
|
|
1293
1293
|
return array;
|
|
1294
1294
|
}
|
|
1295
1295
|
function readTo(_this__u8e3s4, sink, startIndex, endIndex) {
|
|
@@ -1300,7 +1300,7 @@ function readTo(_this__u8e3s4, sink, startIndex, endIndex) {
|
|
|
1300
1300
|
checkBounds(fromInt(size), fromInt(startIndex), fromInt(endIndex));
|
|
1301
1301
|
var offset = startIndex;
|
|
1302
1302
|
while (offset < endIndex) {
|
|
1303
|
-
var bytesRead = _this__u8e3s4.
|
|
1303
|
+
var bytesRead = _this__u8e3s4.c34(sink, offset, endIndex);
|
|
1304
1304
|
if (bytesRead === -1) {
|
|
1305
1305
|
throw EOFException_init_$Create$_0('Source exhausted before reading ' + (endIndex - startIndex | 0) + ' bytes. ' + ('Only ' + bytesRead + ' bytes were read.'));
|
|
1306
1306
|
}
|
|
@@ -1308,12 +1308,12 @@ function readTo(_this__u8e3s4, sink, startIndex, endIndex) {
|
|
|
1308
1308
|
}
|
|
1309
1309
|
}
|
|
1310
1310
|
function readString(_this__u8e3s4, byteCount) {
|
|
1311
|
-
_this__u8e3s4.
|
|
1312
|
-
return commonReadUtf8(_this__u8e3s4.
|
|
1311
|
+
_this__u8e3s4.f33(byteCount);
|
|
1312
|
+
return commonReadUtf8(_this__u8e3s4.d33(), byteCount);
|
|
1313
1313
|
}
|
|
1314
1314
|
function readString_0(_this__u8e3s4) {
|
|
1315
|
-
_this__u8e3s4.
|
|
1316
|
-
return commonReadUtf8(_this__u8e3s4.
|
|
1315
|
+
_this__u8e3s4.g33(9223372036854775807n);
|
|
1316
|
+
return commonReadUtf8(_this__u8e3s4.d33(), _this__u8e3s4.d33().g1());
|
|
1317
1317
|
}
|
|
1318
1318
|
function writeString(_this__u8e3s4, string, startIndex, endIndex) {
|
|
1319
1319
|
startIndex = startIndex === VOID ? 0 : startIndex;
|
|
@@ -1323,7 +1323,7 @@ function writeString(_this__u8e3s4, string, startIndex, endIndex) {
|
|
|
1323
1323
|
checkBounds(fromInt(size), fromInt(startIndex), fromInt(endIndex));
|
|
1324
1324
|
// Inline function 'kotlinx.io.writeToInternalBuffer' call
|
|
1325
1325
|
// Inline function 'kotlinx.io.commonWriteUtf8' call
|
|
1326
|
-
var this_0 = _this__u8e3s4.
|
|
1326
|
+
var this_0 = _this__u8e3s4.d33();
|
|
1327
1327
|
var i = startIndex;
|
|
1328
1328
|
while (i < endIndex) {
|
|
1329
1329
|
var p0 = i;
|
|
@@ -1333,15 +1333,15 @@ function writeString(_this__u8e3s4, string, startIndex, endIndex) {
|
|
|
1333
1333
|
if (c < 128) {
|
|
1334
1334
|
$l$block_0: {
|
|
1335
1335
|
// Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.writeToTail' call
|
|
1336
|
-
var tail = this_0.
|
|
1336
|
+
var tail = this_0.j34(1);
|
|
1337
1337
|
var ctx = get_SegmentWriteContextImpl();
|
|
1338
1338
|
var segmentOffset = -i | 0;
|
|
1339
1339
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
1340
|
-
var b = i + tail.
|
|
1340
|
+
var b = i + tail.o34() | 0;
|
|
1341
1341
|
var runLimit = Math.min(endIndex, b);
|
|
1342
1342
|
var _unary__edvuaz = i;
|
|
1343
1343
|
i = _unary__edvuaz + 1 | 0;
|
|
1344
|
-
ctx.
|
|
1344
|
+
ctx.b36(tail, segmentOffset + _unary__edvuaz | 0, toByte(c));
|
|
1345
1345
|
$l$loop: while (i < runLimit) {
|
|
1346
1346
|
var p0_0 = i;
|
|
1347
1347
|
// Inline function 'kotlin.code' call
|
|
@@ -1351,95 +1351,95 @@ function writeString(_this__u8e3s4, string, startIndex, endIndex) {
|
|
|
1351
1351
|
break $l$loop;
|
|
1352
1352
|
var _unary__edvuaz_0 = i;
|
|
1353
1353
|
i = _unary__edvuaz_0 + 1 | 0;
|
|
1354
|
-
ctx.
|
|
1354
|
+
ctx.b36(tail, segmentOffset + _unary__edvuaz_0 | 0, toByte(c));
|
|
1355
1355
|
}
|
|
1356
1356
|
var bytesWritten = i + segmentOffset | 0;
|
|
1357
1357
|
if (bytesWritten === 1) {
|
|
1358
|
-
tail.
|
|
1358
|
+
tail.k33_1 = tail.k33_1 + bytesWritten | 0;
|
|
1359
1359
|
var tmp = this_0;
|
|
1360
1360
|
// Inline function 'kotlin.Long.plus' call
|
|
1361
|
-
var this_3 = this_0.
|
|
1362
|
-
tmp.
|
|
1361
|
+
var this_3 = this_0.c33_1;
|
|
1362
|
+
tmp.c33_1 = add(this_3, fromInt(bytesWritten));
|
|
1363
1363
|
break $l$block_0;
|
|
1364
1364
|
}
|
|
1365
1365
|
// Inline function 'kotlin.check' call
|
|
1366
|
-
if (!(0 <= bytesWritten ? bytesWritten <= tail.
|
|
1367
|
-
var message = 'Invalid number of bytes written: ' + bytesWritten + '. Should be in 0..' + tail.
|
|
1366
|
+
if (!(0 <= bytesWritten ? bytesWritten <= tail.o34() : false)) {
|
|
1367
|
+
var message = 'Invalid number of bytes written: ' + bytesWritten + '. Should be in 0..' + tail.o34();
|
|
1368
1368
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
1369
1369
|
}
|
|
1370
1370
|
if (!(bytesWritten === 0)) {
|
|
1371
|
-
tail.
|
|
1371
|
+
tail.k33_1 = tail.k33_1 + bytesWritten | 0;
|
|
1372
1372
|
var tmp_0 = this_0;
|
|
1373
1373
|
// Inline function 'kotlin.Long.plus' call
|
|
1374
|
-
var this_4 = this_0.
|
|
1375
|
-
tmp_0.
|
|
1374
|
+
var this_4 = this_0.c33_1;
|
|
1375
|
+
tmp_0.c33_1 = add(this_4, fromInt(bytesWritten));
|
|
1376
1376
|
break $l$block_0;
|
|
1377
1377
|
}
|
|
1378
1378
|
if (isEmpty(tail)) {
|
|
1379
|
-
this_0.
|
|
1379
|
+
this_0.d35();
|
|
1380
1380
|
}
|
|
1381
1381
|
}
|
|
1382
1382
|
} else if (c < 2048) {
|
|
1383
1383
|
$l$block_2: {
|
|
1384
1384
|
// Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.writeToTail' call
|
|
1385
|
-
var tail_0 = this_0.
|
|
1386
|
-
get_SegmentWriteContextImpl().
|
|
1385
|
+
var tail_0 = this_0.j34(2);
|
|
1386
|
+
get_SegmentWriteContextImpl().a36(tail_0, 0, toByte(c >> 6 | 192), toByte(c & 63 | 128));
|
|
1387
1387
|
var bytesWritten_0 = 2;
|
|
1388
1388
|
if (bytesWritten_0 === 2) {
|
|
1389
|
-
tail_0.
|
|
1389
|
+
tail_0.k33_1 = tail_0.k33_1 + bytesWritten_0 | 0;
|
|
1390
1390
|
var tmp_1 = this_0;
|
|
1391
1391
|
// Inline function 'kotlin.Long.plus' call
|
|
1392
|
-
var this_5 = this_0.
|
|
1393
|
-
tmp_1.
|
|
1392
|
+
var this_5 = this_0.c33_1;
|
|
1393
|
+
tmp_1.c33_1 = add(this_5, fromInt(bytesWritten_0));
|
|
1394
1394
|
break $l$block_2;
|
|
1395
1395
|
}
|
|
1396
1396
|
// Inline function 'kotlin.check' call
|
|
1397
|
-
if (!(0 <= bytesWritten_0 ? bytesWritten_0 <= tail_0.
|
|
1398
|
-
var message_0 = 'Invalid number of bytes written: ' + bytesWritten_0 + '. Should be in 0..' + tail_0.
|
|
1397
|
+
if (!(0 <= bytesWritten_0 ? bytesWritten_0 <= tail_0.o34() : false)) {
|
|
1398
|
+
var message_0 = 'Invalid number of bytes written: ' + bytesWritten_0 + '. Should be in 0..' + tail_0.o34();
|
|
1399
1399
|
throw IllegalStateException_init_$Create$(toString(message_0));
|
|
1400
1400
|
}
|
|
1401
1401
|
if (!(bytesWritten_0 === 0)) {
|
|
1402
|
-
tail_0.
|
|
1402
|
+
tail_0.k33_1 = tail_0.k33_1 + bytesWritten_0 | 0;
|
|
1403
1403
|
var tmp_2 = this_0;
|
|
1404
1404
|
// Inline function 'kotlin.Long.plus' call
|
|
1405
|
-
var this_6 = this_0.
|
|
1406
|
-
tmp_2.
|
|
1405
|
+
var this_6 = this_0.c33_1;
|
|
1406
|
+
tmp_2.c33_1 = add(this_6, fromInt(bytesWritten_0));
|
|
1407
1407
|
break $l$block_2;
|
|
1408
1408
|
}
|
|
1409
1409
|
if (isEmpty(tail_0)) {
|
|
1410
|
-
this_0.
|
|
1410
|
+
this_0.d35();
|
|
1411
1411
|
}
|
|
1412
1412
|
}
|
|
1413
1413
|
i = i + 1 | 0;
|
|
1414
1414
|
} else if (c < 55296 || c > 57343) {
|
|
1415
1415
|
$l$block_4: {
|
|
1416
1416
|
// Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.writeToTail' call
|
|
1417
|
-
var tail_1 = this_0.
|
|
1418
|
-
get_SegmentWriteContextImpl().
|
|
1417
|
+
var tail_1 = this_0.j34(3);
|
|
1418
|
+
get_SegmentWriteContextImpl().z35(tail_1, 0, toByte(c >> 12 | 224), toByte(c >> 6 & 63 | 128), toByte(c & 63 | 128));
|
|
1419
1419
|
var bytesWritten_1 = 3;
|
|
1420
1420
|
if (bytesWritten_1 === 3) {
|
|
1421
|
-
tail_1.
|
|
1421
|
+
tail_1.k33_1 = tail_1.k33_1 + bytesWritten_1 | 0;
|
|
1422
1422
|
var tmp_3 = this_0;
|
|
1423
1423
|
// Inline function 'kotlin.Long.plus' call
|
|
1424
|
-
var this_7 = this_0.
|
|
1425
|
-
tmp_3.
|
|
1424
|
+
var this_7 = this_0.c33_1;
|
|
1425
|
+
tmp_3.c33_1 = add(this_7, fromInt(bytesWritten_1));
|
|
1426
1426
|
break $l$block_4;
|
|
1427
1427
|
}
|
|
1428
1428
|
// Inline function 'kotlin.check' call
|
|
1429
|
-
if (!(0 <= bytesWritten_1 ? bytesWritten_1 <= tail_1.
|
|
1430
|
-
var message_1 = 'Invalid number of bytes written: ' + bytesWritten_1 + '. Should be in 0..' + tail_1.
|
|
1429
|
+
if (!(0 <= bytesWritten_1 ? bytesWritten_1 <= tail_1.o34() : false)) {
|
|
1430
|
+
var message_1 = 'Invalid number of bytes written: ' + bytesWritten_1 + '. Should be in 0..' + tail_1.o34();
|
|
1431
1431
|
throw IllegalStateException_init_$Create$(toString(message_1));
|
|
1432
1432
|
}
|
|
1433
1433
|
if (!(bytesWritten_1 === 0)) {
|
|
1434
|
-
tail_1.
|
|
1434
|
+
tail_1.k33_1 = tail_1.k33_1 + bytesWritten_1 | 0;
|
|
1435
1435
|
var tmp_4 = this_0;
|
|
1436
1436
|
// Inline function 'kotlin.Long.plus' call
|
|
1437
|
-
var this_8 = this_0.
|
|
1438
|
-
tmp_4.
|
|
1437
|
+
var this_8 = this_0.c33_1;
|
|
1438
|
+
tmp_4.c33_1 = add(this_8, fromInt(bytesWritten_1));
|
|
1439
1439
|
break $l$block_4;
|
|
1440
1440
|
}
|
|
1441
1441
|
if (isEmpty(tail_1)) {
|
|
1442
|
-
this_0.
|
|
1442
|
+
this_0.d35();
|
|
1443
1443
|
}
|
|
1444
1444
|
}
|
|
1445
1445
|
i = i + 1 | 0;
|
|
@@ -1458,64 +1458,64 @@ function writeString(_this__u8e3s4, string, startIndex, endIndex) {
|
|
|
1458
1458
|
// Inline function 'kotlin.code' call
|
|
1459
1459
|
var this_10 = _Char___init__impl__6a9atx(63);
|
|
1460
1460
|
var tmp$ret$26 = Char__toInt_impl_vasixd(this_10);
|
|
1461
|
-
this_0.
|
|
1461
|
+
this_0.x34(toByte(tmp$ret$26));
|
|
1462
1462
|
i = i + 1 | 0;
|
|
1463
1463
|
} else {
|
|
1464
1464
|
var codePoint = 65536 + ((c & 1023) << 10 | low & 1023) | 0;
|
|
1465
1465
|
$l$block_6: {
|
|
1466
1466
|
// Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.writeToTail' call
|
|
1467
|
-
var tail_2 = this_0.
|
|
1468
|
-
get_SegmentWriteContextImpl().
|
|
1467
|
+
var tail_2 = this_0.j34(4);
|
|
1468
|
+
get_SegmentWriteContextImpl().y35(tail_2, 0, toByte(codePoint >> 18 | 240), toByte(codePoint >> 12 & 63 | 128), toByte(codePoint >> 6 & 63 | 128), toByte(codePoint & 63 | 128));
|
|
1469
1469
|
var bytesWritten_2 = 4;
|
|
1470
1470
|
if (bytesWritten_2 === 4) {
|
|
1471
|
-
tail_2.
|
|
1471
|
+
tail_2.k33_1 = tail_2.k33_1 + bytesWritten_2 | 0;
|
|
1472
1472
|
var tmp_6 = this_0;
|
|
1473
1473
|
// Inline function 'kotlin.Long.plus' call
|
|
1474
|
-
var this_11 = this_0.
|
|
1475
|
-
tmp_6.
|
|
1474
|
+
var this_11 = this_0.c33_1;
|
|
1475
|
+
tmp_6.c33_1 = add(this_11, fromInt(bytesWritten_2));
|
|
1476
1476
|
break $l$block_6;
|
|
1477
1477
|
}
|
|
1478
1478
|
// Inline function 'kotlin.check' call
|
|
1479
|
-
if (!(0 <= bytesWritten_2 ? bytesWritten_2 <= tail_2.
|
|
1480
|
-
var message_2 = 'Invalid number of bytes written: ' + bytesWritten_2 + '. Should be in 0..' + tail_2.
|
|
1479
|
+
if (!(0 <= bytesWritten_2 ? bytesWritten_2 <= tail_2.o34() : false)) {
|
|
1480
|
+
var message_2 = 'Invalid number of bytes written: ' + bytesWritten_2 + '. Should be in 0..' + tail_2.o34();
|
|
1481
1481
|
throw IllegalStateException_init_$Create$(toString(message_2));
|
|
1482
1482
|
}
|
|
1483
1483
|
if (!(bytesWritten_2 === 0)) {
|
|
1484
|
-
tail_2.
|
|
1484
|
+
tail_2.k33_1 = tail_2.k33_1 + bytesWritten_2 | 0;
|
|
1485
1485
|
var tmp_7 = this_0;
|
|
1486
1486
|
// Inline function 'kotlin.Long.plus' call
|
|
1487
|
-
var this_12 = this_0.
|
|
1488
|
-
tmp_7.
|
|
1487
|
+
var this_12 = this_0.c33_1;
|
|
1488
|
+
tmp_7.c33_1 = add(this_12, fromInt(bytesWritten_2));
|
|
1489
1489
|
break $l$block_6;
|
|
1490
1490
|
}
|
|
1491
1491
|
if (isEmpty(tail_2)) {
|
|
1492
|
-
this_0.
|
|
1492
|
+
this_0.d35();
|
|
1493
1493
|
}
|
|
1494
1494
|
}
|
|
1495
1495
|
i = i + 2 | 0;
|
|
1496
1496
|
}
|
|
1497
1497
|
}
|
|
1498
1498
|
}
|
|
1499
|
-
_this__u8e3s4.
|
|
1499
|
+
_this__u8e3s4.t33();
|
|
1500
1500
|
}
|
|
1501
1501
|
function commonReadUtf8(_this__u8e3s4, byteCount) {
|
|
1502
1502
|
if (byteCount === 0n)
|
|
1503
1503
|
return '';
|
|
1504
1504
|
// Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.forEachSegment' call
|
|
1505
|
-
var curr = _this__u8e3s4.
|
|
1505
|
+
var curr = _this__u8e3s4.a33_1;
|
|
1506
1506
|
while (!(curr == null)) {
|
|
1507
1507
|
get_SegmentReadContextImpl();
|
|
1508
1508
|
if (fromInt(curr.g1()) >= byteCount) {
|
|
1509
1509
|
var result = '';
|
|
1510
1510
|
// Inline function 'kotlinx.io.unsafe.withData' call
|
|
1511
|
-
var tmp0 = curr.
|
|
1512
|
-
var tmp2 = curr.
|
|
1513
|
-
var tmp0_0 = curr.
|
|
1511
|
+
var tmp0 = curr.t35(true);
|
|
1512
|
+
var tmp2 = curr.j33_1;
|
|
1513
|
+
var tmp0_0 = curr.k33_1;
|
|
1514
1514
|
// Inline function 'kotlin.math.min' call
|
|
1515
1515
|
var b = tmp2 + convertToInt(byteCount) | 0;
|
|
1516
1516
|
var tmp$ret$0 = Math.min(tmp0_0, b);
|
|
1517
1517
|
result = commonToUtf8String(tmp0, tmp2, tmp$ret$0);
|
|
1518
|
-
_this__u8e3s4.
|
|
1518
|
+
_this__u8e3s4.b34(byteCount);
|
|
1519
1519
|
return result;
|
|
1520
1520
|
}
|
|
1521
1521
|
return commonToUtf8String(readByteArray_0(_this__u8e3s4, convertToInt(byteCount)));
|
|
@@ -1886,27 +1886,27 @@ function UnsafeBufferOperations_getInstance() {
|
|
|
1886
1886
|
}
|
|
1887
1887
|
function SegmentReadContextImpl$1() {
|
|
1888
1888
|
}
|
|
1889
|
-
protoOf(SegmentReadContextImpl$1).
|
|
1890
|
-
return segment.
|
|
1889
|
+
protoOf(SegmentReadContextImpl$1).b35 = function (segment, offset) {
|
|
1890
|
+
return segment.a34(offset);
|
|
1891
1891
|
};
|
|
1892
1892
|
function SegmentWriteContextImpl$1() {
|
|
1893
1893
|
}
|
|
1894
|
-
protoOf(SegmentWriteContextImpl$1).
|
|
1895
|
-
segment.
|
|
1894
|
+
protoOf(SegmentWriteContextImpl$1).b36 = function (segment, offset, value) {
|
|
1895
|
+
segment.u35(offset, value);
|
|
1896
1896
|
};
|
|
1897
|
-
protoOf(SegmentWriteContextImpl$1).
|
|
1898
|
-
segment.
|
|
1897
|
+
protoOf(SegmentWriteContextImpl$1).a36 = function (segment, offset, b0, b1) {
|
|
1898
|
+
segment.v35(offset, b0, b1);
|
|
1899
1899
|
};
|
|
1900
|
-
protoOf(SegmentWriteContextImpl$1).
|
|
1901
|
-
segment.
|
|
1900
|
+
protoOf(SegmentWriteContextImpl$1).z35 = function (segment, offset, b0, b1, b2) {
|
|
1901
|
+
segment.w35(offset, b0, b1, b2);
|
|
1902
1902
|
};
|
|
1903
|
-
protoOf(SegmentWriteContextImpl$1).
|
|
1904
|
-
segment.
|
|
1903
|
+
protoOf(SegmentWriteContextImpl$1).y35 = function (segment, offset, b0, b1, b2, b3) {
|
|
1904
|
+
segment.x35(offset, b0, b1, b2, b3);
|
|
1905
1905
|
};
|
|
1906
1906
|
function BufferIterationContextImpl$1() {
|
|
1907
1907
|
}
|
|
1908
|
-
protoOf(BufferIterationContextImpl$1).
|
|
1909
|
-
return get_SegmentReadContextImpl().
|
|
1908
|
+
protoOf(BufferIterationContextImpl$1).b35 = function (segment, offset) {
|
|
1909
|
+
return get_SegmentReadContextImpl().b35(segment, offset);
|
|
1910
1910
|
};
|
|
1911
1911
|
var properties_initialized_UnsafeBufferOperations_kt_2xfgoc;
|
|
1912
1912
|
function _init_properties_UnsafeBufferOperations_kt__xw75gy() {
|
|
@@ -1974,15 +1974,15 @@ function EOFException() {
|
|
|
1974
1974
|
captureStack(this, EOFException);
|
|
1975
1975
|
}
|
|
1976
1976
|
function SegmentPool() {
|
|
1977
|
-
this.
|
|
1978
|
-
this.
|
|
1977
|
+
this.k34_1 = 0;
|
|
1978
|
+
this.l34_1 = 0;
|
|
1979
1979
|
}
|
|
1980
|
-
protoOf(SegmentPool).
|
|
1981
|
-
return Companion_instance.
|
|
1980
|
+
protoOf(SegmentPool).m34 = function () {
|
|
1981
|
+
return Companion_instance.p35();
|
|
1982
1982
|
};
|
|
1983
|
-
protoOf(SegmentPool).
|
|
1983
|
+
protoOf(SegmentPool).c35 = function (segment) {
|
|
1984
1984
|
};
|
|
1985
|
-
protoOf(SegmentPool).
|
|
1985
|
+
protoOf(SegmentPool).r35 = function () {
|
|
1986
1986
|
return AlwaysSharedCopyTracker_getInstance();
|
|
1987
1987
|
};
|
|
1988
1988
|
var SegmentPool_instance;
|
|
@@ -1990,7 +1990,7 @@ function SegmentPool_getInstance() {
|
|
|
1990
1990
|
return SegmentPool_instance;
|
|
1991
1991
|
}
|
|
1992
1992
|
//region block: post-declaration
|
|
1993
|
-
protoOf(Buffer).
|
|
1993
|
+
protoOf(Buffer).q34 = write$default;
|
|
1994
1994
|
//endregion
|
|
1995
1995
|
//region block: init
|
|
1996
1996
|
Companion_instance = new Companion();
|