@icure/cardinal-sdk 2.0.0-PREVIEW-10 → 2.0.0-PREVIEW-13
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/Kermit-kermit-core.mjs +42 -42
- package/Kermit-kermit.mjs +8 -8
- package/Kotlin-DateTime-library-kotlinx-datetime.mjs +3919 -3777
- package/KotlinBigInteger-bignum.mjs +1434 -1470
- package/api/AnonymousHealthcarePartyApi.d.mts +2 -2
- package/cardinal-sdk-ts.d.mts +338 -100
- package/cardinal-sdk-ts.mjs +56590 -56248
- package/cardinal-sdk.mjs +126945 -106218
- package/kerberus.mjs +381 -381
- package/kotlin-kotlin-stdlib.mjs +3412 -2764
- package/kotlinx-atomicfu.mjs +14 -14
- package/kotlinx-coroutines-core.mjs +2690 -2687
- package/kotlinx-io-kotlinx-io-bytestring.mjs +47 -47
- package/kotlinx-io-kotlinx-io-core.mjs +539 -539
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +2149 -2111
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +2047 -2029
- package/kryptom-lib.mjs +2065 -2081
- package/ktor-ktor-client-content-negotiation.mjs +217 -217
- package/ktor-ktor-client-core.mjs +2997 -2993
- package/ktor-ktor-events.mjs +8 -8
- package/ktor-ktor-http-cio.mjs +538 -537
- package/ktor-ktor-http.mjs +799 -927
- package/ktor-ktor-io.mjs +1079 -1079
- package/ktor-ktor-serialization-kotlinx-json.mjs +10 -10
- package/ktor-ktor-serialization-kotlinx.mjs +270 -270
- package/ktor-ktor-serialization.mjs +129 -129
- package/ktor-ktor-utils.mjs +614 -600
- package/ktor-ktor-websockets.mjs +751 -750
- package/model.d.mts +0 -1
- package/model.mjs +0 -1
- package/package.json +2 -3
- package/ktor-ktor-client-ktor-client-core.mjs +0 -8986
- package/ktor-ktor-client-ktor-client-plugins-ktor-client-content-negotiation.mjs +0 -756
- package/ktor-ktor-client-ktor-client-plugins-ktor-client-websockets.mjs +0 -2
- package/ktor-ktor-http-ktor-http-cio.mjs +0 -1996
- package/ktor-ktor-shared-ktor-events.mjs +0 -79
- package/ktor-ktor-shared-ktor-serialization-ktor-serialization-kotlinx-ktor-serialization-kotlinx-json.mjs +0 -44
- package/ktor-ktor-shared-ktor-serialization-ktor-serialization-kotlinx.mjs +0 -857
- package/ktor-ktor-shared-ktor-serialization.mjs +0 -371
- package/ktor-ktor-shared-ktor-sse.mjs +0 -2
- package/ktor-ktor-shared-ktor-websocket-serialization.mjs +0 -2
- package/ktor-ktor-shared-ktor-websockets.mjs +0 -2334
- package/model/UserAndHealthcareParty.d.mts +0 -7
- package/model/UserAndHealthcareParty.mjs +0 -6
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
import {
|
|
2
|
-
IndexOutOfBoundsException_init_$Create$
|
|
2
|
+
IndexOutOfBoundsException_init_$Create$2w5dv25cjssuw as IndexOutOfBoundsException_init_$Create$,
|
|
3
3
|
Long2qws0ah9gnpki as Long,
|
|
4
|
-
IllegalArgumentException_init_$Create$
|
|
5
|
-
|
|
4
|
+
IllegalArgumentException_init_$Create$3ewkh27kzt8z8 as IllegalArgumentException_init_$Create$,
|
|
5
|
+
_Char___init__impl__6a9atx2js6krycynjoo as _Char___init__impl__6a9atx,
|
|
6
6
|
charArrayOf27f4r3dozbrk1 as charArrayOf,
|
|
7
7
|
protoOf180f3jzyo7rfj as protoOf,
|
|
8
8
|
toString1pkumu07cwy4m as toString,
|
|
9
|
-
|
|
9
|
+
Unit_instance1fbcbse1fwigr as Unit_instance,
|
|
10
10
|
toShort36kaw0zjdq3ex as toShort,
|
|
11
11
|
ensureNotNull1e947j3ixpazm as ensureNotNull,
|
|
12
12
|
toLongw1zpgk99d84b as toLong,
|
|
13
|
-
StringBuilder_init_$Create$
|
|
13
|
+
StringBuilder_init_$Create$2ujvu6cqvzuyn as StringBuilder_init_$Create$,
|
|
14
14
|
initMetadataForClassbxx6q50dy2s7 as initMetadataForClass,
|
|
15
|
-
|
|
16
|
-
IllegalStateException_init_$Create$
|
|
15
|
+
VOID3gxj6tk5isa35 as VOID,
|
|
16
|
+
IllegalStateException_init_$Create$2w9444nebyjns as IllegalStateException_init_$Create$,
|
|
17
17
|
AutoCloseable1l5p57f9lp7kv as AutoCloseable,
|
|
18
18
|
objectCreate1ve4bgxiu4x98 as objectCreate,
|
|
19
19
|
initMetadataForCompanion1wyw17z38v6ac as initMetadataForCompanion,
|
|
20
20
|
arrayCopytctsywo3h7gj as arrayCopy,
|
|
21
21
|
toByte4i43936u611k as toByte,
|
|
22
|
-
IllegalArgumentException_init_$Create$
|
|
22
|
+
IllegalArgumentException_init_$Create$3vjwoodhlckbo as IllegalArgumentException_init_$Create$_0,
|
|
23
23
|
initMetadataForObject1cxne3s9w65el as initMetadataForObject,
|
|
24
24
|
initMetadataForInterface1egvbzx539z91 as initMetadataForInterface,
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
charCodeAt1yspne1d8erbm as charCodeAt,
|
|
26
|
+
Char__toInt_impl_vasixd1agw9q2fuvclj as Char__toInt_impl_vasixd,
|
|
27
27
|
charArray2ujmm1qusno00 as charArray,
|
|
28
28
|
numberToChar93r9buh19yek as numberToChar,
|
|
29
29
|
concatToString3cxf0c1gqonpo as concatToString,
|
|
30
|
-
Exception_init_$Init$
|
|
30
|
+
Exception_init_$Init$7nmtst2tre47 as Exception_init_$Init$,
|
|
31
31
|
captureStack1fzi4aczwc4hg as captureStack,
|
|
32
|
-
Exception_init_$Init$
|
|
33
|
-
Exception_init_$Init$
|
|
32
|
+
Exception_init_$Init$33ewqhqmjrfx6 as Exception_init_$Init$_0,
|
|
33
|
+
Exception_init_$Init$393utbttlf2x4 as Exception_init_$Init$_1,
|
|
34
34
|
Exceptiondt2hlxn7j7vw as Exception,
|
|
35
35
|
} from './kotlin-kotlin-stdlib.mjs';
|
|
36
|
-
import {
|
|
36
|
+
import { UnsafeByteStringOperations_instance24iw7lp31iicx as UnsafeByteStringOperations_instance } from './kotlinx-io-kotlinx-io-bytestring.mjs';
|
|
37
37
|
//region block: imports
|
|
38
38
|
var imul = Math.imul;
|
|
39
39
|
//endregion
|
|
@@ -41,7 +41,7 @@ var imul = Math.imul;
|
|
|
41
41
|
function readAtMostTo$default(sink, startIndex, endIndex, $super) {
|
|
42
42
|
startIndex = startIndex === VOID ? 0 : startIndex;
|
|
43
43
|
endIndex = endIndex === VOID ? sink.length : endIndex;
|
|
44
|
-
return $super === VOID ? this.
|
|
44
|
+
return $super === VOID ? this.k1n(sink, startIndex, endIndex) : $super.k1n.call(this, sink, startIndex, endIndex);
|
|
45
45
|
}
|
|
46
46
|
initMetadataForInterface(Source, 'Source', VOID, VOID, [AutoCloseable]);
|
|
47
47
|
function write$default(source, startIndex, endIndex, $super) {
|
|
@@ -49,10 +49,10 @@ function write$default(source, startIndex, endIndex, $super) {
|
|
|
49
49
|
endIndex = endIndex === VOID ? source.length : endIndex;
|
|
50
50
|
var tmp;
|
|
51
51
|
if ($super === VOID) {
|
|
52
|
-
this.
|
|
52
|
+
this.w1n(source, startIndex, endIndex);
|
|
53
53
|
tmp = Unit_instance;
|
|
54
54
|
} else {
|
|
55
|
-
tmp = $super.
|
|
55
|
+
tmp = $super.w1n.call(this, source, startIndex, endIndex);
|
|
56
56
|
}
|
|
57
57
|
return tmp;
|
|
58
58
|
}
|
|
@@ -104,20 +104,20 @@ function throwEof($this, byteCount) {
|
|
|
104
104
|
throw EOFException_init_$Create$_0("Buffer doesn't contain required number of bytes (size: " + $this.t().toString() + ', required: ' + byteCount.toString() + ')');
|
|
105
105
|
}
|
|
106
106
|
function Buffer() {
|
|
107
|
-
this.
|
|
108
|
-
this.
|
|
109
|
-
this.
|
|
107
|
+
this.i1m_1 = null;
|
|
108
|
+
this.j1m_1 = null;
|
|
109
|
+
this.k1m_1 = new Long(0, 0);
|
|
110
110
|
}
|
|
111
111
|
protoOf(Buffer).t = function () {
|
|
112
|
-
return this.
|
|
112
|
+
return this.k1m_1;
|
|
113
113
|
};
|
|
114
|
-
protoOf(Buffer).
|
|
114
|
+
protoOf(Buffer).l1m = function () {
|
|
115
115
|
return this;
|
|
116
116
|
};
|
|
117
|
-
protoOf(Buffer).
|
|
117
|
+
protoOf(Buffer).m1m = function () {
|
|
118
118
|
return this.t().equals(new Long(0, 0));
|
|
119
119
|
};
|
|
120
|
-
protoOf(Buffer).
|
|
120
|
+
protoOf(Buffer).n1m = function (byteCount) {
|
|
121
121
|
// Inline function 'kotlin.require' call
|
|
122
122
|
if (!(byteCount.h1(new Long(0, 0)) >= 0)) {
|
|
123
123
|
var message = 'byteCount: ' + byteCount.toString();
|
|
@@ -127,7 +127,7 @@ protoOf(Buffer).n1l = function (byteCount) {
|
|
|
127
127
|
throw EOFException_init_$Create$_0("Buffer doesn't contain required number of bytes (size: " + this.t().toString() + ', required: ' + byteCount.toString() + ')');
|
|
128
128
|
}
|
|
129
129
|
};
|
|
130
|
-
protoOf(Buffer).
|
|
130
|
+
protoOf(Buffer).o1m = function (byteCount) {
|
|
131
131
|
// Inline function 'kotlin.require' call
|
|
132
132
|
if (!(byteCount.h1(new Long(0, 0)) >= 0)) {
|
|
133
133
|
var message = 'byteCount: ' + byteCount.toString() + ' < 0';
|
|
@@ -135,8 +135,8 @@ protoOf(Buffer).o1l = function (byteCount) {
|
|
|
135
135
|
}
|
|
136
136
|
return this.t().h1(byteCount) >= 0;
|
|
137
137
|
};
|
|
138
|
-
protoOf(Buffer).
|
|
139
|
-
var tmp0_elvis_lhs = this.
|
|
138
|
+
protoOf(Buffer).p1m = function () {
|
|
139
|
+
var tmp0_elvis_lhs = this.i1m_1;
|
|
140
140
|
var tmp;
|
|
141
141
|
if (tmp0_elvis_lhs == null) {
|
|
142
142
|
throwEof(this, new Long(1, 0));
|
|
@@ -146,18 +146,18 @@ protoOf(Buffer).p1l = function () {
|
|
|
146
146
|
var segment = tmp;
|
|
147
147
|
var segmentSize = segment.t();
|
|
148
148
|
if (segmentSize === 0) {
|
|
149
|
-
this.
|
|
150
|
-
return this.
|
|
149
|
+
this.x1m();
|
|
150
|
+
return this.p1m();
|
|
151
151
|
}
|
|
152
|
-
var v = segment.
|
|
153
|
-
this.
|
|
152
|
+
var v = segment.y1m();
|
|
153
|
+
this.k1m_1 = this.k1m_1.d3(new Long(1, 0));
|
|
154
154
|
if (segmentSize === 1) {
|
|
155
|
-
this.
|
|
155
|
+
this.x1m();
|
|
156
156
|
}
|
|
157
157
|
return v;
|
|
158
158
|
};
|
|
159
|
-
protoOf(Buffer).
|
|
160
|
-
var tmp0_elvis_lhs = this.
|
|
159
|
+
protoOf(Buffer).z1m = function () {
|
|
160
|
+
var tmp0_elvis_lhs = this.i1m_1;
|
|
161
161
|
var tmp;
|
|
162
162
|
if (tmp0_elvis_lhs == null) {
|
|
163
163
|
throwEof(this, new Long(2, 0));
|
|
@@ -167,120 +167,120 @@ protoOf(Buffer).z1l = function () {
|
|
|
167
167
|
var segment = tmp;
|
|
168
168
|
var segmentSize = segment.t();
|
|
169
169
|
if (segmentSize < 2) {
|
|
170
|
-
this.
|
|
170
|
+
this.n1m(new Long(2, 0));
|
|
171
171
|
if (segmentSize === 0) {
|
|
172
|
-
this.
|
|
173
|
-
return this.
|
|
172
|
+
this.x1m();
|
|
173
|
+
return this.z1m();
|
|
174
174
|
}
|
|
175
175
|
// Inline function 'kotlinx.io.and' call
|
|
176
|
-
var tmp_0 = (this.
|
|
176
|
+
var tmp_0 = (this.p1m() & 255) << 8;
|
|
177
177
|
// Inline function 'kotlinx.io.and' call
|
|
178
|
-
var tmp$ret$1 = this.
|
|
178
|
+
var tmp$ret$1 = this.p1m() & 255;
|
|
179
179
|
return toShort(tmp_0 | tmp$ret$1);
|
|
180
180
|
}
|
|
181
|
-
var v = segment.
|
|
182
|
-
this.
|
|
181
|
+
var v = segment.a1n();
|
|
182
|
+
this.k1m_1 = this.k1m_1.d3(new Long(2, 0));
|
|
183
183
|
if (segmentSize === 2) {
|
|
184
|
-
this.
|
|
184
|
+
this.x1m();
|
|
185
185
|
}
|
|
186
186
|
return v;
|
|
187
187
|
};
|
|
188
|
-
protoOf(Buffer).
|
|
188
|
+
protoOf(Buffer).b1n = function () {
|
|
189
189
|
return Unit_instance;
|
|
190
190
|
};
|
|
191
|
-
protoOf(Buffer).
|
|
191
|
+
protoOf(Buffer).c1n = function (out, startIndex, endIndex) {
|
|
192
192
|
checkBounds(this.t(), startIndex, endIndex);
|
|
193
193
|
if (startIndex.equals(endIndex))
|
|
194
194
|
return Unit_instance;
|
|
195
195
|
var currentOffset = startIndex;
|
|
196
196
|
var remainingByteCount = endIndex.d3(startIndex);
|
|
197
|
-
out.
|
|
198
|
-
var s = this.
|
|
199
|
-
while (currentOffset.h1(toLong(ensureNotNull(s).
|
|
200
|
-
currentOffset = currentOffset.d3(toLong(s.
|
|
201
|
-
s = s.
|
|
197
|
+
out.k1m_1 = out.k1m_1.c3(remainingByteCount);
|
|
198
|
+
var s = this.i1m_1;
|
|
199
|
+
while (currentOffset.h1(toLong(ensureNotNull(s).s1m_1 - s.r1m_1 | 0)) >= 0) {
|
|
200
|
+
currentOffset = currentOffset.d3(toLong(s.s1m_1 - s.r1m_1 | 0));
|
|
201
|
+
s = s.v1m_1;
|
|
202
202
|
}
|
|
203
203
|
while (remainingByteCount.h1(new Long(0, 0)) > 0) {
|
|
204
|
-
var copy = ensureNotNull(s).
|
|
205
|
-
copy.
|
|
204
|
+
var copy = ensureNotNull(s).d1n();
|
|
205
|
+
copy.r1m_1 = copy.r1m_1 + currentOffset.m1() | 0;
|
|
206
206
|
var tmp = copy;
|
|
207
|
-
var tmp0 = copy.
|
|
207
|
+
var tmp0 = copy.r1m_1 + remainingByteCount.m1() | 0;
|
|
208
208
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
209
|
-
var b = copy.
|
|
210
|
-
tmp.
|
|
209
|
+
var b = copy.s1m_1;
|
|
210
|
+
tmp.s1m_1 = Math.min(tmp0, b);
|
|
211
211
|
// Inline function 'kotlinx.io.Buffer.pushSegment' call
|
|
212
|
-
if (out.
|
|
213
|
-
out.
|
|
214
|
-
out.
|
|
212
|
+
if (out.i1m_1 == null) {
|
|
213
|
+
out.i1m_1 = copy;
|
|
214
|
+
out.j1m_1 = copy;
|
|
215
215
|
} else if (false) {
|
|
216
|
-
out.
|
|
217
|
-
if (ensureNotNull(out.
|
|
218
|
-
out.
|
|
216
|
+
out.j1m_1 = ensureNotNull(out.j1m_1).e1n(copy).f1n();
|
|
217
|
+
if (ensureNotNull(out.j1m_1).w1m_1 == null) {
|
|
218
|
+
out.i1m_1 = out.j1m_1;
|
|
219
219
|
}
|
|
220
220
|
} else {
|
|
221
|
-
out.
|
|
221
|
+
out.j1m_1 = ensureNotNull(out.j1m_1).e1n(copy);
|
|
222
222
|
}
|
|
223
|
-
remainingByteCount = remainingByteCount.d3(toLong(copy.
|
|
223
|
+
remainingByteCount = remainingByteCount.d3(toLong(copy.s1m_1 - copy.r1m_1 | 0));
|
|
224
224
|
currentOffset = new Long(0, 0);
|
|
225
|
-
s = s.
|
|
225
|
+
s = s.v1m_1;
|
|
226
226
|
}
|
|
227
227
|
};
|
|
228
|
-
protoOf(Buffer).
|
|
228
|
+
protoOf(Buffer).g1n = function () {
|
|
229
229
|
var result = this.t();
|
|
230
230
|
if (result.equals(new Long(0, 0)))
|
|
231
231
|
return new Long(0, 0);
|
|
232
|
-
var tail = ensureNotNull(this.
|
|
233
|
-
if (tail.
|
|
234
|
-
result = result.d3(toLong(tail.
|
|
232
|
+
var tail = ensureNotNull(this.j1m_1);
|
|
233
|
+
if (tail.s1m_1 < 8192 && tail.u1m_1) {
|
|
234
|
+
result = result.d3(toLong(tail.s1m_1 - tail.r1m_1 | 0));
|
|
235
235
|
}
|
|
236
236
|
return result;
|
|
237
237
|
};
|
|
238
|
-
protoOf(Buffer).
|
|
238
|
+
protoOf(Buffer).h1n = function (position) {
|
|
239
239
|
if (position.h1(new Long(0, 0)) < 0 || position.h1(this.t()) >= 0) {
|
|
240
240
|
throw IndexOutOfBoundsException_init_$Create$('position (' + position.toString() + ') is not within the range [0..size(' + this.t().toString() + '))');
|
|
241
241
|
}
|
|
242
242
|
if (position.equals(new Long(0, 0))) {
|
|
243
|
-
return ensureNotNull(this.
|
|
243
|
+
return ensureNotNull(this.i1m_1).i1n(0);
|
|
244
244
|
}
|
|
245
245
|
// Inline function 'kotlinx.io.seek' call
|
|
246
|
-
if (this.
|
|
246
|
+
if (this.i1m_1 == null) {
|
|
247
247
|
var offset = new Long(-1, -1);
|
|
248
|
-
return ensureNotNull(null).
|
|
248
|
+
return ensureNotNull(null).i1n(position.d3(offset).m1());
|
|
249
249
|
}
|
|
250
250
|
if (this.t().d3(position).h1(position) < 0) {
|
|
251
|
-
var s = this.
|
|
251
|
+
var s = this.j1m_1;
|
|
252
252
|
var offset_0 = this.t();
|
|
253
253
|
$l$loop: while (!(s == null) && offset_0.h1(position) > 0) {
|
|
254
|
-
offset_0 = offset_0.d3(toLong(s.
|
|
254
|
+
offset_0 = offset_0.d3(toLong(s.s1m_1 - s.r1m_1 | 0));
|
|
255
255
|
if (offset_0.h1(position) <= 0)
|
|
256
256
|
break $l$loop;
|
|
257
|
-
s = s.
|
|
257
|
+
s = s.w1m_1;
|
|
258
258
|
}
|
|
259
|
-
var
|
|
259
|
+
var tmp0 = s;
|
|
260
260
|
var offset_1 = offset_0;
|
|
261
|
-
return ensureNotNull(
|
|
261
|
+
return ensureNotNull(tmp0).i1n(position.d3(offset_1).m1());
|
|
262
262
|
} else {
|
|
263
|
-
var s_0 = this.
|
|
263
|
+
var s_0 = this.i1m_1;
|
|
264
264
|
var offset_2 = new Long(0, 0);
|
|
265
265
|
$l$loop_0: while (!(s_0 == null)) {
|
|
266
|
-
var
|
|
266
|
+
var tmp0_0 = offset_2;
|
|
267
267
|
// Inline function 'kotlin.Long.plus' call
|
|
268
|
-
var other = s_0.
|
|
269
|
-
var nextOffset =
|
|
268
|
+
var other = s_0.s1m_1 - s_0.r1m_1 | 0;
|
|
269
|
+
var nextOffset = tmp0_0.c3(toLong(other));
|
|
270
270
|
if (nextOffset.h1(position) > 0)
|
|
271
271
|
break $l$loop_0;
|
|
272
|
-
s_0 = s_0.
|
|
272
|
+
s_0 = s_0.v1m_1;
|
|
273
273
|
offset_2 = nextOffset;
|
|
274
274
|
}
|
|
275
|
-
var
|
|
275
|
+
var tmp0_1 = s_0;
|
|
276
276
|
var offset_3 = offset_2;
|
|
277
|
-
return ensureNotNull(
|
|
277
|
+
return ensureNotNull(tmp0_1).i1n(position.d3(offset_3).m1());
|
|
278
278
|
}
|
|
279
279
|
};
|
|
280
280
|
protoOf(Buffer).j2 = function () {
|
|
281
|
-
return this.
|
|
281
|
+
return this.j1n(this.t());
|
|
282
282
|
};
|
|
283
|
-
protoOf(Buffer).
|
|
283
|
+
protoOf(Buffer).j1n = function (byteCount) {
|
|
284
284
|
// Inline function 'kotlinx.io.checkByteCount' call
|
|
285
285
|
// Inline function 'kotlin.require' call
|
|
286
286
|
if (!(byteCount.h1(new Long(0, 0)) >= 0)) {
|
|
@@ -289,7 +289,7 @@ protoOf(Buffer).j1m = function (byteCount) {
|
|
|
289
289
|
}
|
|
290
290
|
var remainingByteCount = byteCount;
|
|
291
291
|
while (remainingByteCount.h1(new Long(0, 0)) > 0) {
|
|
292
|
-
var tmp0_elvis_lhs = this.
|
|
292
|
+
var tmp0_elvis_lhs = this.i1m_1;
|
|
293
293
|
var tmp;
|
|
294
294
|
if (tmp0_elvis_lhs == null) {
|
|
295
295
|
throw EOFException_init_$Create$_0('Buffer exhausted before skipping ' + byteCount.toString() + ' bytes.');
|
|
@@ -297,25 +297,25 @@ protoOf(Buffer).j1m = function (byteCount) {
|
|
|
297
297
|
tmp = tmp0_elvis_lhs;
|
|
298
298
|
}
|
|
299
299
|
var head = tmp;
|
|
300
|
-
var
|
|
300
|
+
var tmp0 = remainingByteCount;
|
|
301
301
|
// Inline function 'kotlinx.io.minOf' call
|
|
302
|
-
var b = head.
|
|
302
|
+
var b = head.s1m_1 - head.r1m_1 | 0;
|
|
303
303
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
304
304
|
var b_0 = toLong(b);
|
|
305
|
-
var toSkip = (
|
|
306
|
-
this.
|
|
305
|
+
var toSkip = (tmp0.h1(b_0) <= 0 ? tmp0 : b_0).m1();
|
|
306
|
+
this.k1m_1 = this.k1m_1.d3(toLong(toSkip));
|
|
307
307
|
remainingByteCount = remainingByteCount.d3(toLong(toSkip));
|
|
308
|
-
head.
|
|
309
|
-
if (head.
|
|
310
|
-
this.
|
|
308
|
+
head.r1m_1 = head.r1m_1 + toSkip | 0;
|
|
309
|
+
if (head.r1m_1 === head.s1m_1) {
|
|
310
|
+
this.x1m();
|
|
311
311
|
}
|
|
312
312
|
}
|
|
313
313
|
};
|
|
314
|
-
protoOf(Buffer).
|
|
314
|
+
protoOf(Buffer).k1n = function (sink, startIndex, endIndex) {
|
|
315
315
|
// Inline function 'kotlinx.io.checkBounds' call
|
|
316
316
|
var size = sink.length;
|
|
317
317
|
checkBounds(toLong(size), toLong(startIndex), toLong(endIndex));
|
|
318
|
-
var tmp0_elvis_lhs = this.
|
|
318
|
+
var tmp0_elvis_lhs = this.i1m_1;
|
|
319
319
|
var tmp;
|
|
320
320
|
if (tmp0_elvis_lhs == null) {
|
|
321
321
|
return -1;
|
|
@@ -323,18 +323,18 @@ protoOf(Buffer).k1m = function (sink, startIndex, endIndex) {
|
|
|
323
323
|
tmp = tmp0_elvis_lhs;
|
|
324
324
|
}
|
|
325
325
|
var s = tmp;
|
|
326
|
-
var
|
|
326
|
+
var tmp0 = endIndex - startIndex | 0;
|
|
327
327
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
328
328
|
var b = s.t();
|
|
329
|
-
var toCopy = Math.min(
|
|
330
|
-
s.
|
|
331
|
-
this.
|
|
329
|
+
var toCopy = Math.min(tmp0, b);
|
|
330
|
+
s.l1n(sink, startIndex, startIndex + toCopy | 0);
|
|
331
|
+
this.k1m_1 = this.k1m_1.d3(toLong(toCopy));
|
|
332
332
|
if (isEmpty(s)) {
|
|
333
|
-
this.
|
|
333
|
+
this.x1m();
|
|
334
334
|
}
|
|
335
335
|
return toCopy;
|
|
336
336
|
};
|
|
337
|
-
protoOf(Buffer).
|
|
337
|
+
protoOf(Buffer).n1n = function (sink, byteCount) {
|
|
338
338
|
// Inline function 'kotlinx.io.checkByteCount' call
|
|
339
339
|
// Inline function 'kotlin.require' call
|
|
340
340
|
if (!(byteCount.h1(new Long(0, 0)) >= 0)) {
|
|
@@ -344,10 +344,10 @@ protoOf(Buffer).n1m = function (sink, byteCount) {
|
|
|
344
344
|
if (this.t().equals(new Long(0, 0)))
|
|
345
345
|
return new Long(-1, -1);
|
|
346
346
|
var bytesWritten = byteCount.h1(this.t()) > 0 ? this.t() : byteCount;
|
|
347
|
-
sink.
|
|
347
|
+
sink.o1n(this, bytesWritten);
|
|
348
348
|
return bytesWritten;
|
|
349
349
|
};
|
|
350
|
-
protoOf(Buffer).
|
|
350
|
+
protoOf(Buffer).p1n = function (sink, byteCount) {
|
|
351
351
|
// Inline function 'kotlinx.io.checkByteCount' call
|
|
352
352
|
// Inline function 'kotlin.require' call
|
|
353
353
|
if (!(byteCount.h1(new Long(0, 0)) >= 0)) {
|
|
@@ -355,135 +355,135 @@ protoOf(Buffer).p1m = function (sink, byteCount) {
|
|
|
355
355
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
356
356
|
}
|
|
357
357
|
if (this.t().h1(byteCount) < 0) {
|
|
358
|
-
sink.
|
|
358
|
+
sink.o1n(this, this.t());
|
|
359
359
|
throw EOFException_init_$Create$_0('Buffer exhausted before writing ' + byteCount.toString() + ' bytes. Only ' + this.t().toString() + ' bytes were written.');
|
|
360
360
|
}
|
|
361
|
-
sink.
|
|
361
|
+
sink.o1n(this, byteCount);
|
|
362
362
|
};
|
|
363
|
-
protoOf(Buffer).
|
|
363
|
+
protoOf(Buffer).q1n = function (sink) {
|
|
364
364
|
var byteCount = this.t();
|
|
365
365
|
if (byteCount.h1(new Long(0, 0)) > 0) {
|
|
366
|
-
sink.
|
|
366
|
+
sink.o1n(this, byteCount);
|
|
367
367
|
}
|
|
368
368
|
return byteCount;
|
|
369
369
|
};
|
|
370
|
-
protoOf(Buffer).
|
|
370
|
+
protoOf(Buffer).r1n = function () {
|
|
371
371
|
return buffered(new PeekSource(this));
|
|
372
372
|
};
|
|
373
|
-
protoOf(Buffer).
|
|
373
|
+
protoOf(Buffer).s1n = function (minimumCapacity) {
|
|
374
374
|
// Inline function 'kotlin.require' call
|
|
375
375
|
if (!(minimumCapacity >= 1 && minimumCapacity <= 8192)) {
|
|
376
376
|
var message = 'unexpected capacity (' + minimumCapacity + '), should be in range [1, 8192]';
|
|
377
377
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
378
378
|
}
|
|
379
|
-
if (this.
|
|
380
|
-
var result = SegmentPool_instance.
|
|
381
|
-
this.
|
|
382
|
-
this.
|
|
379
|
+
if (this.j1m_1 == null) {
|
|
380
|
+
var result = SegmentPool_instance.v1n();
|
|
381
|
+
this.i1m_1 = result;
|
|
382
|
+
this.j1m_1 = result;
|
|
383
383
|
return result;
|
|
384
384
|
}
|
|
385
|
-
var t = ensureNotNull(this.
|
|
386
|
-
if ((t.
|
|
387
|
-
var newTail = t.
|
|
388
|
-
this.
|
|
385
|
+
var t = ensureNotNull(this.j1m_1);
|
|
386
|
+
if ((t.s1m_1 + minimumCapacity | 0) > 8192 || !t.u1m_1) {
|
|
387
|
+
var newTail = t.e1n(SegmentPool_instance.v1n());
|
|
388
|
+
this.j1m_1 = newTail;
|
|
389
389
|
return newTail;
|
|
390
390
|
}
|
|
391
391
|
return t;
|
|
392
392
|
};
|
|
393
|
-
protoOf(Buffer).
|
|
393
|
+
protoOf(Buffer).w1n = function (source, startIndex, endIndex) {
|
|
394
394
|
// Inline function 'kotlinx.io.checkBounds' call
|
|
395
395
|
var size = source.length;
|
|
396
396
|
checkBounds(toLong(size), toLong(startIndex), toLong(endIndex));
|
|
397
397
|
var currentOffset = startIndex;
|
|
398
398
|
while (currentOffset < endIndex) {
|
|
399
|
-
var tail = this.
|
|
400
|
-
var
|
|
399
|
+
var tail = this.s1n(1);
|
|
400
|
+
var tmp0 = endIndex - currentOffset | 0;
|
|
401
401
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
402
|
-
var b = tail.
|
|
403
|
-
var toCopy = Math.min(
|
|
404
|
-
tail.
|
|
402
|
+
var b = tail.x1n();
|
|
403
|
+
var toCopy = Math.min(tmp0, b);
|
|
404
|
+
tail.y1n(source, currentOffset, currentOffset + toCopy | 0);
|
|
405
405
|
currentOffset = currentOffset + toCopy | 0;
|
|
406
406
|
}
|
|
407
407
|
var tmp = this;
|
|
408
|
-
var
|
|
408
|
+
var tmp0_0 = this.k1m_1;
|
|
409
409
|
// Inline function 'kotlin.Long.plus' call
|
|
410
410
|
var other = endIndex - startIndex | 0;
|
|
411
|
-
tmp.
|
|
411
|
+
tmp.k1m_1 = tmp0_0.c3(toLong(other));
|
|
412
412
|
};
|
|
413
|
-
protoOf(Buffer).
|
|
413
|
+
protoOf(Buffer).o1n = function (source, byteCount) {
|
|
414
414
|
// Inline function 'kotlin.require' call
|
|
415
415
|
if (!!(source === this)) {
|
|
416
416
|
var message = 'source == this';
|
|
417
417
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
418
418
|
}
|
|
419
|
-
checkOffsetAndCount(source.
|
|
419
|
+
checkOffsetAndCount(source.k1m_1, new Long(0, 0), byteCount);
|
|
420
420
|
var remainingByteCount = byteCount;
|
|
421
421
|
while (remainingByteCount.h1(new Long(0, 0)) > 0) {
|
|
422
|
-
if (remainingByteCount.h1(toLong(ensureNotNull(source.
|
|
423
|
-
var tail = this.
|
|
422
|
+
if (remainingByteCount.h1(toLong(ensureNotNull(source.i1m_1).t())) < 0) {
|
|
423
|
+
var tail = this.j1m_1;
|
|
424
424
|
var tmp;
|
|
425
|
-
if (!(tail == null) && tail.
|
|
426
|
-
var
|
|
425
|
+
if (!(tail == null) && tail.u1m_1) {
|
|
426
|
+
var tmp0 = remainingByteCount;
|
|
427
427
|
// Inline function 'kotlin.Long.plus' call
|
|
428
|
-
var other = tail.
|
|
429
|
-
var
|
|
428
|
+
var other = tail.s1m_1;
|
|
429
|
+
var tmp0_0 = tmp0.c3(toLong(other));
|
|
430
430
|
// Inline function 'kotlin.Long.minus' call
|
|
431
|
-
var other_0 = tail.
|
|
432
|
-
tmp =
|
|
431
|
+
var other_0 = tail.a1o() ? 0 : tail.r1m_1;
|
|
432
|
+
tmp = tmp0_0.d3(toLong(other_0)).h1(new Long(8192, 0)) <= 0;
|
|
433
433
|
} else {
|
|
434
434
|
tmp = false;
|
|
435
435
|
}
|
|
436
436
|
if (tmp) {
|
|
437
|
-
ensureNotNull(source.
|
|
438
|
-
source.
|
|
439
|
-
this.
|
|
437
|
+
ensureNotNull(source.i1m_1).c1o(tail, remainingByteCount.m1());
|
|
438
|
+
source.k1m_1 = source.k1m_1.d3(remainingByteCount);
|
|
439
|
+
this.k1m_1 = this.k1m_1.c3(remainingByteCount);
|
|
440
440
|
return Unit_instance;
|
|
441
441
|
} else {
|
|
442
|
-
source.
|
|
442
|
+
source.i1m_1 = ensureNotNull(source.i1m_1).b1o(remainingByteCount.m1());
|
|
443
443
|
}
|
|
444
444
|
}
|
|
445
|
-
var segmentToMove = ensureNotNull(source.
|
|
445
|
+
var segmentToMove = ensureNotNull(source.i1m_1);
|
|
446
446
|
var movedByteCount = toLong(segmentToMove.t());
|
|
447
|
-
source.
|
|
448
|
-
if (source.
|
|
449
|
-
source.
|
|
447
|
+
source.i1m_1 = segmentToMove.d1o();
|
|
448
|
+
if (source.i1m_1 == null) {
|
|
449
|
+
source.j1m_1 = null;
|
|
450
450
|
}
|
|
451
451
|
// Inline function 'kotlinx.io.Buffer.pushSegment' call
|
|
452
|
-
if (this.
|
|
453
|
-
this.
|
|
454
|
-
this.
|
|
452
|
+
if (this.i1m_1 == null) {
|
|
453
|
+
this.i1m_1 = segmentToMove;
|
|
454
|
+
this.j1m_1 = segmentToMove;
|
|
455
455
|
} else if (true) {
|
|
456
|
-
this.
|
|
457
|
-
if (ensureNotNull(this.
|
|
458
|
-
this.
|
|
456
|
+
this.j1m_1 = ensureNotNull(this.j1m_1).e1n(segmentToMove).f1n();
|
|
457
|
+
if (ensureNotNull(this.j1m_1).w1m_1 == null) {
|
|
458
|
+
this.i1m_1 = this.j1m_1;
|
|
459
459
|
}
|
|
460
460
|
} else {
|
|
461
|
-
this.
|
|
461
|
+
this.j1m_1 = ensureNotNull(this.j1m_1).e1n(segmentToMove);
|
|
462
462
|
}
|
|
463
|
-
source.
|
|
464
|
-
this.
|
|
463
|
+
source.k1m_1 = source.k1m_1.d3(movedByteCount);
|
|
464
|
+
this.k1m_1 = this.k1m_1.c3(movedByteCount);
|
|
465
465
|
remainingByteCount = remainingByteCount.d3(movedByteCount);
|
|
466
466
|
}
|
|
467
467
|
};
|
|
468
|
-
protoOf(Buffer).
|
|
468
|
+
protoOf(Buffer).e1o = function (source) {
|
|
469
469
|
var totalBytesRead = new Long(0, 0);
|
|
470
470
|
$l$loop: while (true) {
|
|
471
|
-
var readCount = source.
|
|
471
|
+
var readCount = source.n1n(this, new Long(8192, 0));
|
|
472
472
|
if (readCount.equals(new Long(-1, -1)))
|
|
473
473
|
break $l$loop;
|
|
474
474
|
totalBytesRead = totalBytesRead.c3(readCount);
|
|
475
475
|
}
|
|
476
476
|
return totalBytesRead;
|
|
477
477
|
};
|
|
478
|
-
protoOf(Buffer).
|
|
479
|
-
this.
|
|
480
|
-
this.
|
|
478
|
+
protoOf(Buffer).f1o = function (byte) {
|
|
479
|
+
this.s1n(1).g1o(byte);
|
|
480
|
+
this.k1m_1 = this.k1m_1.c3(new Long(1, 0));
|
|
481
481
|
};
|
|
482
|
-
protoOf(Buffer).
|
|
483
|
-
this.
|
|
484
|
-
this.
|
|
482
|
+
protoOf(Buffer).h1o = function (short) {
|
|
483
|
+
this.s1n(2).i1o(short);
|
|
484
|
+
this.k1m_1 = this.k1m_1.c3(new Long(2, 0));
|
|
485
485
|
};
|
|
486
|
-
protoOf(Buffer).
|
|
486
|
+
protoOf(Buffer).r4 = function () {
|
|
487
487
|
return Unit_instance;
|
|
488
488
|
};
|
|
489
489
|
protoOf(Buffer).toString = function () {
|
|
@@ -498,55 +498,55 @@ protoOf(Buffer).toString = function () {
|
|
|
498
498
|
var builder = StringBuilder_init_$Create$(imul(len, 2) + (this.t().h1(toLong(maxPrintableBytes)) > 0 ? 1 : 0) | 0);
|
|
499
499
|
var bytesWritten = 0;
|
|
500
500
|
// Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.forEachSegment' call
|
|
501
|
-
var curr = this.
|
|
501
|
+
var curr = this.i1m_1;
|
|
502
502
|
while (!(curr == null)) {
|
|
503
|
-
var
|
|
503
|
+
var tmp0 = get_SegmentReadContextImpl();
|
|
504
504
|
var segment = curr;
|
|
505
505
|
var idx = 0;
|
|
506
506
|
while (bytesWritten < len && idx < segment.t()) {
|
|
507
507
|
var _unary__edvuaz = idx;
|
|
508
508
|
idx = _unary__edvuaz + 1 | 0;
|
|
509
|
-
var b_0 =
|
|
509
|
+
var b_0 = tmp0.j1o(segment, _unary__edvuaz);
|
|
510
510
|
bytesWritten = bytesWritten + 1 | 0;
|
|
511
511
|
var tmp = get_HEX_DIGIT_CHARS();
|
|
512
512
|
// Inline function 'kotlinx.io.shr' call
|
|
513
513
|
var tmp$ret$2 = b_0 >> 4;
|
|
514
|
-
var tmp_0 = builder.
|
|
514
|
+
var tmp_0 = builder.t8(tmp[tmp$ret$2 & 15]);
|
|
515
515
|
var tmp_1 = get_HEX_DIGIT_CHARS();
|
|
516
516
|
// Inline function 'kotlinx.io.and' call
|
|
517
517
|
var tmp$ret$3 = b_0 & 15;
|
|
518
|
-
tmp_0.
|
|
518
|
+
tmp_0.t8(tmp_1[tmp$ret$3]);
|
|
519
519
|
}
|
|
520
|
-
curr = curr.
|
|
520
|
+
curr = curr.v1m_1;
|
|
521
521
|
}
|
|
522
522
|
if (this.t().h1(toLong(maxPrintableBytes)) > 0) {
|
|
523
|
-
builder.
|
|
523
|
+
builder.t8(_Char___init__impl__6a9atx(8230));
|
|
524
524
|
}
|
|
525
525
|
return 'Buffer(size=' + this.t().toString() + ' hex=' + builder.toString() + ')';
|
|
526
526
|
};
|
|
527
|
-
protoOf(Buffer).
|
|
528
|
-
var oldHead = ensureNotNull(this.
|
|
529
|
-
var nextHead = oldHead.
|
|
530
|
-
this.
|
|
527
|
+
protoOf(Buffer).x1m = function () {
|
|
528
|
+
var oldHead = ensureNotNull(this.i1m_1);
|
|
529
|
+
var nextHead = oldHead.v1m_1;
|
|
530
|
+
this.i1m_1 = nextHead;
|
|
531
531
|
if (nextHead == null) {
|
|
532
|
-
this.
|
|
532
|
+
this.j1m_1 = null;
|
|
533
533
|
} else {
|
|
534
|
-
nextHead.
|
|
534
|
+
nextHead.w1m_1 = null;
|
|
535
535
|
}
|
|
536
|
-
oldHead.
|
|
537
|
-
SegmentPool_instance.
|
|
536
|
+
oldHead.v1m_1 = null;
|
|
537
|
+
SegmentPool_instance.k1o(oldHead);
|
|
538
538
|
};
|
|
539
|
-
protoOf(Buffer).
|
|
540
|
-
var oldTail = ensureNotNull(this.
|
|
541
|
-
var newTail = oldTail.
|
|
542
|
-
this.
|
|
539
|
+
protoOf(Buffer).l1o = function () {
|
|
540
|
+
var oldTail = ensureNotNull(this.j1m_1);
|
|
541
|
+
var newTail = oldTail.w1m_1;
|
|
542
|
+
this.j1m_1 = newTail;
|
|
543
543
|
if (newTail == null) {
|
|
544
|
-
this.
|
|
544
|
+
this.i1m_1 = null;
|
|
545
545
|
} else {
|
|
546
|
-
newTail.
|
|
546
|
+
newTail.v1m_1 = null;
|
|
547
547
|
}
|
|
548
|
-
oldTail.
|
|
549
|
-
SegmentPool_instance.
|
|
548
|
+
oldTail.w1m_1 = null;
|
|
549
|
+
SegmentPool_instance.k1o(oldTail);
|
|
550
550
|
};
|
|
551
551
|
function indexOf(_this__u8e3s4, byte, startIndex, endIndex) {
|
|
552
552
|
startIndex = startIndex === VOID ? new Long(0, 0) : startIndex;
|
|
@@ -558,7 +558,7 @@ function indexOf(_this__u8e3s4, byte, startIndex, endIndex) {
|
|
|
558
558
|
if (startIndex.equals(endOffset))
|
|
559
559
|
return new Long(-1, -1);
|
|
560
560
|
// Inline function 'kotlinx.io.seek' call
|
|
561
|
-
if (_this__u8e3s4.
|
|
561
|
+
if (_this__u8e3s4.i1m_1 == null) {
|
|
562
562
|
var o = new Long(-1, -1);
|
|
563
563
|
if (o.equals(new Long(-1, -1))) {
|
|
564
564
|
return new Long(-1, -1);
|
|
@@ -575,38 +575,38 @@ function indexOf(_this__u8e3s4, byte, startIndex, endIndex) {
|
|
|
575
575
|
// Inline function 'kotlin.comparisons.maxOf' call
|
|
576
576
|
var a = startIndex.d3(offset).m1();
|
|
577
577
|
var tmp_0 = Math.max(a, 0);
|
|
578
|
-
var
|
|
578
|
+
var tmp0 = segment.t();
|
|
579
579
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
580
580
|
var b_0 = endOffset.d3(offset).m1();
|
|
581
|
-
var tmp$ret$3 = Math.min(
|
|
581
|
+
var tmp$ret$3 = Math.min(tmp0, b_0);
|
|
582
582
|
var idx = indexOf_0(tmp, byte, tmp_0, tmp$ret$3);
|
|
583
583
|
if (!(idx === -1)) {
|
|
584
584
|
return offset.c3(toLong(idx));
|
|
585
585
|
}
|
|
586
|
-
var
|
|
586
|
+
var tmp0_0 = offset;
|
|
587
587
|
// Inline function 'kotlin.Long.plus' call
|
|
588
588
|
var other = segment.t();
|
|
589
|
-
offset =
|
|
590
|
-
segment = segment.
|
|
589
|
+
offset = tmp0_0.c3(toLong(other));
|
|
590
|
+
segment = segment.v1m_1;
|
|
591
591
|
}
|
|
592
592
|
while (!(segment == null) && offset.h1(endOffset) < 0);
|
|
593
593
|
return new Long(-1, -1);
|
|
594
594
|
}
|
|
595
595
|
if (_this__u8e3s4.t().d3(startIndex).h1(startIndex) < 0) {
|
|
596
|
-
var s = _this__u8e3s4.
|
|
596
|
+
var s = _this__u8e3s4.j1m_1;
|
|
597
597
|
var offset_0 = _this__u8e3s4.t();
|
|
598
598
|
$l$loop: while (!(s == null) && offset_0.h1(startIndex) > 0) {
|
|
599
|
-
offset_0 = offset_0.d3(toLong(s.
|
|
599
|
+
offset_0 = offset_0.d3(toLong(s.s1m_1 - s.r1m_1 | 0));
|
|
600
600
|
if (offset_0.h1(startIndex) <= 0)
|
|
601
601
|
break $l$loop;
|
|
602
|
-
s = s.
|
|
602
|
+
s = s.w1m_1;
|
|
603
603
|
}
|
|
604
|
-
var
|
|
604
|
+
var tmp0_1 = s;
|
|
605
605
|
var o_0 = offset_0;
|
|
606
606
|
if (o_0.equals(new Long(-1, -1))) {
|
|
607
607
|
return new Long(-1, -1);
|
|
608
608
|
}
|
|
609
|
-
var segment_0 =
|
|
609
|
+
var segment_0 = tmp0_1;
|
|
610
610
|
var offset_1 = o_0;
|
|
611
611
|
do {
|
|
612
612
|
// Inline function 'kotlin.check' call
|
|
@@ -618,41 +618,41 @@ function indexOf(_this__u8e3s4, byte, startIndex, endIndex) {
|
|
|
618
618
|
// Inline function 'kotlin.comparisons.maxOf' call
|
|
619
619
|
var a_0 = startIndex.d3(offset_1).m1();
|
|
620
620
|
var tmp_2 = Math.max(a_0, 0);
|
|
621
|
-
var
|
|
621
|
+
var tmp0_2 = segment_0.t();
|
|
622
622
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
623
623
|
var b_1 = endOffset.d3(offset_1).m1();
|
|
624
|
-
var tmp$ret$8 = Math.min(
|
|
624
|
+
var tmp$ret$8 = Math.min(tmp0_2, b_1);
|
|
625
625
|
var idx_0 = indexOf_0(tmp_1, byte, tmp_2, tmp$ret$8);
|
|
626
626
|
if (!(idx_0 === -1)) {
|
|
627
627
|
return offset_1.c3(toLong(idx_0));
|
|
628
628
|
}
|
|
629
|
-
var
|
|
629
|
+
var tmp0_3 = offset_1;
|
|
630
630
|
// Inline function 'kotlin.Long.plus' call
|
|
631
631
|
var other_0 = segment_0.t();
|
|
632
|
-
offset_1 =
|
|
633
|
-
segment_0 = segment_0.
|
|
632
|
+
offset_1 = tmp0_3.c3(toLong(other_0));
|
|
633
|
+
segment_0 = segment_0.v1m_1;
|
|
634
634
|
}
|
|
635
635
|
while (!(segment_0 == null) && offset_1.h1(endOffset) < 0);
|
|
636
636
|
return new Long(-1, -1);
|
|
637
637
|
} else {
|
|
638
|
-
var s_0 = _this__u8e3s4.
|
|
638
|
+
var s_0 = _this__u8e3s4.i1m_1;
|
|
639
639
|
var offset_2 = new Long(0, 0);
|
|
640
640
|
$l$loop_0: while (!(s_0 == null)) {
|
|
641
|
-
var
|
|
641
|
+
var tmp0_4 = offset_2;
|
|
642
642
|
// Inline function 'kotlin.Long.plus' call
|
|
643
|
-
var other_1 = s_0.
|
|
644
|
-
var nextOffset =
|
|
643
|
+
var other_1 = s_0.s1m_1 - s_0.r1m_1 | 0;
|
|
644
|
+
var nextOffset = tmp0_4.c3(toLong(other_1));
|
|
645
645
|
if (nextOffset.h1(startIndex) > 0)
|
|
646
646
|
break $l$loop_0;
|
|
647
|
-
s_0 = s_0.
|
|
647
|
+
s_0 = s_0.v1m_1;
|
|
648
648
|
offset_2 = nextOffset;
|
|
649
649
|
}
|
|
650
|
-
var
|
|
650
|
+
var tmp0_5 = s_0;
|
|
651
651
|
var o_1 = offset_2;
|
|
652
652
|
if (o_1.equals(new Long(-1, -1))) {
|
|
653
653
|
return new Long(-1, -1);
|
|
654
654
|
}
|
|
655
|
-
var segment_1 =
|
|
655
|
+
var segment_1 = tmp0_5;
|
|
656
656
|
var offset_3 = o_1;
|
|
657
657
|
do {
|
|
658
658
|
// Inline function 'kotlin.check' call
|
|
@@ -664,44 +664,44 @@ function indexOf(_this__u8e3s4, byte, startIndex, endIndex) {
|
|
|
664
664
|
// Inline function 'kotlin.comparisons.maxOf' call
|
|
665
665
|
var a_1 = startIndex.d3(offset_3).m1();
|
|
666
666
|
var tmp_4 = Math.max(a_1, 0);
|
|
667
|
-
var
|
|
667
|
+
var tmp0_6 = segment_1.t();
|
|
668
668
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
669
669
|
var b_2 = endOffset.d3(offset_3).m1();
|
|
670
|
-
var tmp$ret$13 = Math.min(
|
|
670
|
+
var tmp$ret$13 = Math.min(tmp0_6, b_2);
|
|
671
671
|
var idx_1 = indexOf_0(tmp_3, byte, tmp_4, tmp$ret$13);
|
|
672
672
|
if (!(idx_1 === -1)) {
|
|
673
673
|
return offset_3.c3(toLong(idx_1));
|
|
674
674
|
}
|
|
675
|
-
var
|
|
675
|
+
var tmp0_7 = offset_3;
|
|
676
676
|
// Inline function 'kotlin.Long.plus' call
|
|
677
677
|
var other_2 = segment_1.t();
|
|
678
|
-
offset_3 =
|
|
679
|
-
segment_1 = segment_1.
|
|
678
|
+
offset_3 = tmp0_7.c3(toLong(other_2));
|
|
679
|
+
segment_1 = segment_1.v1m_1;
|
|
680
680
|
}
|
|
681
681
|
while (!(segment_1 == null) && offset_3.h1(endOffset) < 0);
|
|
682
682
|
return new Long(-1, -1);
|
|
683
683
|
}
|
|
684
684
|
}
|
|
685
685
|
function readByteString(_this__u8e3s4, byteCount) {
|
|
686
|
-
return UnsafeByteStringOperations_instance.
|
|
686
|
+
return UnsafeByteStringOperations_instance.h1m(readByteArray_0(_this__u8e3s4, byteCount));
|
|
687
687
|
}
|
|
688
688
|
function buffered(_this__u8e3s4) {
|
|
689
689
|
return new RealSource(_this__u8e3s4);
|
|
690
690
|
}
|
|
691
691
|
function PeekSource(upstream) {
|
|
692
|
-
this.
|
|
693
|
-
this.
|
|
694
|
-
this.
|
|
692
|
+
this.m1o_1 = upstream;
|
|
693
|
+
this.n1o_1 = this.m1o_1.l1m();
|
|
694
|
+
this.o1o_1 = this.n1o_1.i1m_1;
|
|
695
695
|
var tmp = this;
|
|
696
|
-
var tmp0_safe_receiver = this.
|
|
697
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
698
|
-
tmp.
|
|
699
|
-
this.
|
|
700
|
-
this.
|
|
696
|
+
var tmp0_safe_receiver = this.n1o_1.i1m_1;
|
|
697
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.r1m_1;
|
|
698
|
+
tmp.p1o_1 = tmp1_elvis_lhs == null ? -1 : tmp1_elvis_lhs;
|
|
699
|
+
this.q1o_1 = false;
|
|
700
|
+
this.r1o_1 = new Long(0, 0);
|
|
701
701
|
}
|
|
702
|
-
protoOf(PeekSource).
|
|
702
|
+
protoOf(PeekSource).n1n = function (sink, byteCount) {
|
|
703
703
|
// Inline function 'kotlin.check' call
|
|
704
|
-
if (!!this.
|
|
704
|
+
if (!!this.q1o_1) {
|
|
705
705
|
var message = 'Source is closed.';
|
|
706
706
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
707
707
|
}
|
|
@@ -712,42 +712,42 @@ protoOf(PeekSource).n1m = function (sink, byteCount) {
|
|
|
712
712
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
713
713
|
}
|
|
714
714
|
// Inline function 'kotlin.check' call
|
|
715
|
-
if (!(this.
|
|
715
|
+
if (!(this.o1o_1 == null || (this.o1o_1 === this.n1o_1.i1m_1 && this.p1o_1 === ensureNotNull(this.n1o_1.i1m_1).r1m_1))) {
|
|
716
716
|
var message_1 = 'Peek source is invalid because upstream source was used';
|
|
717
717
|
throw IllegalStateException_init_$Create$(toString(message_1));
|
|
718
718
|
}
|
|
719
719
|
if (byteCount.equals(new Long(0, 0)))
|
|
720
720
|
return new Long(0, 0);
|
|
721
721
|
// Inline function 'kotlin.Long.plus' call
|
|
722
|
-
var tmp$ret$7 = this.
|
|
723
|
-
if (!this.
|
|
722
|
+
var tmp$ret$7 = this.r1o_1.c3(toLong(1));
|
|
723
|
+
if (!this.m1o_1.o1m(tmp$ret$7))
|
|
724
724
|
return new Long(-1, -1);
|
|
725
|
-
if (this.
|
|
726
|
-
this.
|
|
727
|
-
this.
|
|
725
|
+
if (this.o1o_1 == null && !(this.n1o_1.i1m_1 == null)) {
|
|
726
|
+
this.o1o_1 = this.n1o_1.i1m_1;
|
|
727
|
+
this.p1o_1 = ensureNotNull(this.n1o_1.i1m_1).r1m_1;
|
|
728
728
|
}
|
|
729
729
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
730
|
-
var b = this.
|
|
730
|
+
var b = this.n1o_1.t().d3(this.r1o_1);
|
|
731
731
|
var toCopy = byteCount.h1(b) <= 0 ? byteCount : b;
|
|
732
|
-
this.
|
|
733
|
-
this.
|
|
732
|
+
this.n1o_1.c1n(sink, this.r1o_1, this.r1o_1.c3(toCopy));
|
|
733
|
+
this.r1o_1 = this.r1o_1.c3(toCopy);
|
|
734
734
|
return toCopy;
|
|
735
735
|
};
|
|
736
|
-
protoOf(PeekSource).
|
|
737
|
-
this.
|
|
736
|
+
protoOf(PeekSource).r4 = function () {
|
|
737
|
+
this.q1o_1 = true;
|
|
738
738
|
};
|
|
739
739
|
function RealSource(source) {
|
|
740
|
-
this.
|
|
741
|
-
this.
|
|
742
|
-
this.
|
|
740
|
+
this.s1o_1 = source;
|
|
741
|
+
this.t1o_1 = false;
|
|
742
|
+
this.u1o_1 = new Buffer();
|
|
743
743
|
}
|
|
744
|
-
protoOf(RealSource).
|
|
745
|
-
return this.
|
|
744
|
+
protoOf(RealSource).l1m = function () {
|
|
745
|
+
return this.u1o_1;
|
|
746
746
|
};
|
|
747
|
-
protoOf(RealSource).
|
|
747
|
+
protoOf(RealSource).n1n = function (sink, byteCount) {
|
|
748
748
|
// Inline function 'kotlinx.io.RealSource.checkNotClosed' call
|
|
749
749
|
// Inline function 'kotlin.check' call
|
|
750
|
-
if (!!this.
|
|
750
|
+
if (!!this.t1o_1) {
|
|
751
751
|
var message = 'Source is closed.';
|
|
752
752
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
753
753
|
}
|
|
@@ -756,33 +756,33 @@ protoOf(RealSource).n1m = function (sink, byteCount) {
|
|
|
756
756
|
var message_0 = 'byteCount: ' + byteCount.toString();
|
|
757
757
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
758
758
|
}
|
|
759
|
-
if (this.
|
|
760
|
-
var read = this.
|
|
759
|
+
if (this.u1o_1.t().equals(new Long(0, 0))) {
|
|
760
|
+
var read = this.s1o_1.n1n(this.u1o_1, new Long(8192, 0));
|
|
761
761
|
if (read.equals(new Long(-1, -1)))
|
|
762
762
|
return new Long(-1, -1);
|
|
763
763
|
}
|
|
764
764
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
765
|
-
var b = this.
|
|
765
|
+
var b = this.u1o_1.t();
|
|
766
766
|
var toRead = byteCount.h1(b) <= 0 ? byteCount : b;
|
|
767
|
-
return this.
|
|
767
|
+
return this.u1o_1.n1n(sink, toRead);
|
|
768
768
|
};
|
|
769
|
-
protoOf(RealSource).
|
|
769
|
+
protoOf(RealSource).m1m = function () {
|
|
770
770
|
// Inline function 'kotlinx.io.RealSource.checkNotClosed' call
|
|
771
771
|
// Inline function 'kotlin.check' call
|
|
772
|
-
if (!!this.
|
|
772
|
+
if (!!this.t1o_1) {
|
|
773
773
|
var message = 'Source is closed.';
|
|
774
774
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
775
775
|
}
|
|
776
|
-
return this.
|
|
776
|
+
return this.u1o_1.m1m() && this.s1o_1.n1n(this.u1o_1, new Long(8192, 0)).equals(new Long(-1, -1));
|
|
777
777
|
};
|
|
778
|
-
protoOf(RealSource).
|
|
779
|
-
if (!this.
|
|
778
|
+
protoOf(RealSource).n1m = function (byteCount) {
|
|
779
|
+
if (!this.o1m(byteCount))
|
|
780
780
|
throw EOFException_init_$Create$_0("Source doesn't contain required number of bytes (" + byteCount.toString() + ').');
|
|
781
781
|
};
|
|
782
|
-
protoOf(RealSource).
|
|
782
|
+
protoOf(RealSource).o1m = function (byteCount) {
|
|
783
783
|
// Inline function 'kotlinx.io.RealSource.checkNotClosed' call
|
|
784
784
|
// Inline function 'kotlin.check' call
|
|
785
|
-
if (!!this.
|
|
785
|
+
if (!!this.t1o_1) {
|
|
786
786
|
var message = 'Source is closed.';
|
|
787
787
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
788
788
|
}
|
|
@@ -791,90 +791,90 @@ protoOf(RealSource).o1l = function (byteCount) {
|
|
|
791
791
|
var message_0 = 'byteCount: ' + byteCount.toString();
|
|
792
792
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
793
793
|
}
|
|
794
|
-
while (this.
|
|
795
|
-
if (this.
|
|
794
|
+
while (this.u1o_1.t().h1(byteCount) < 0) {
|
|
795
|
+
if (this.s1o_1.n1n(this.u1o_1, new Long(8192, 0)).equals(new Long(-1, -1)))
|
|
796
796
|
return false;
|
|
797
797
|
}
|
|
798
798
|
return true;
|
|
799
799
|
};
|
|
800
|
-
protoOf(RealSource).
|
|
801
|
-
this.
|
|
802
|
-
return this.
|
|
800
|
+
protoOf(RealSource).p1m = function () {
|
|
801
|
+
this.n1m(new Long(1, 0));
|
|
802
|
+
return this.u1o_1.p1m();
|
|
803
803
|
};
|
|
804
|
-
protoOf(RealSource).
|
|
804
|
+
protoOf(RealSource).k1n = function (sink, startIndex, endIndex) {
|
|
805
805
|
// Inline function 'kotlinx.io.checkBounds' call
|
|
806
806
|
var size = sink.length;
|
|
807
807
|
checkBounds(toLong(size), toLong(startIndex), toLong(endIndex));
|
|
808
|
-
if (this.
|
|
809
|
-
var read = this.
|
|
808
|
+
if (this.u1o_1.t().equals(new Long(0, 0))) {
|
|
809
|
+
var read = this.s1o_1.n1n(this.u1o_1, new Long(8192, 0));
|
|
810
810
|
if (read.equals(new Long(-1, -1)))
|
|
811
811
|
return -1;
|
|
812
812
|
}
|
|
813
|
-
var
|
|
813
|
+
var tmp0 = endIndex - startIndex | 0;
|
|
814
814
|
// Inline function 'kotlinx.io.minOf' call
|
|
815
|
-
var b = this.
|
|
815
|
+
var b = this.u1o_1.t();
|
|
816
816
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
817
|
-
var a = toLong(
|
|
817
|
+
var a = toLong(tmp0);
|
|
818
818
|
var toRead = (a.h1(b) <= 0 ? a : b).m1();
|
|
819
|
-
return this.
|
|
819
|
+
return this.u1o_1.k1n(sink, startIndex, startIndex + toRead | 0);
|
|
820
820
|
};
|
|
821
|
-
protoOf(RealSource).
|
|
821
|
+
protoOf(RealSource).p1n = function (sink, byteCount) {
|
|
822
822
|
try {
|
|
823
|
-
this.
|
|
823
|
+
this.n1m(byteCount);
|
|
824
824
|
} catch ($p) {
|
|
825
825
|
if ($p instanceof EOFException) {
|
|
826
826
|
var e = $p;
|
|
827
|
-
sink.
|
|
827
|
+
sink.o1n(this.u1o_1, this.u1o_1.t());
|
|
828
828
|
throw e;
|
|
829
829
|
} else {
|
|
830
830
|
throw $p;
|
|
831
831
|
}
|
|
832
832
|
}
|
|
833
|
-
this.
|
|
833
|
+
this.u1o_1.p1n(sink, byteCount);
|
|
834
834
|
};
|
|
835
|
-
protoOf(RealSource).
|
|
835
|
+
protoOf(RealSource).q1n = function (sink) {
|
|
836
836
|
var totalBytesWritten = new Long(0, 0);
|
|
837
|
-
while (!this.
|
|
838
|
-
var emitByteCount = this.
|
|
837
|
+
while (!this.s1o_1.n1n(this.u1o_1, new Long(8192, 0)).equals(new Long(-1, -1))) {
|
|
838
|
+
var emitByteCount = this.u1o_1.g1n();
|
|
839
839
|
if (emitByteCount.h1(new Long(0, 0)) > 0) {
|
|
840
840
|
totalBytesWritten = totalBytesWritten.c3(emitByteCount);
|
|
841
|
-
sink.
|
|
841
|
+
sink.o1n(this.u1o_1, emitByteCount);
|
|
842
842
|
}
|
|
843
843
|
}
|
|
844
|
-
if (this.
|
|
845
|
-
totalBytesWritten = totalBytesWritten.c3(this.
|
|
846
|
-
sink.
|
|
844
|
+
if (this.u1o_1.t().h1(new Long(0, 0)) > 0) {
|
|
845
|
+
totalBytesWritten = totalBytesWritten.c3(this.u1o_1.t());
|
|
846
|
+
sink.o1n(this.u1o_1, this.u1o_1.t());
|
|
847
847
|
}
|
|
848
848
|
return totalBytesWritten;
|
|
849
849
|
};
|
|
850
|
-
protoOf(RealSource).
|
|
851
|
-
this.
|
|
852
|
-
return this.
|
|
850
|
+
protoOf(RealSource).z1m = function () {
|
|
851
|
+
this.n1m(new Long(2, 0));
|
|
852
|
+
return this.u1o_1.z1m();
|
|
853
853
|
};
|
|
854
|
-
protoOf(RealSource).
|
|
854
|
+
protoOf(RealSource).r1n = function () {
|
|
855
855
|
// Inline function 'kotlinx.io.RealSource.checkNotClosed' call
|
|
856
856
|
// Inline function 'kotlin.check' call
|
|
857
|
-
if (!!this.
|
|
857
|
+
if (!!this.t1o_1) {
|
|
858
858
|
var message = 'Source is closed.';
|
|
859
859
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
860
860
|
}
|
|
861
861
|
return buffered(new PeekSource(this));
|
|
862
862
|
};
|
|
863
|
-
protoOf(RealSource).
|
|
864
|
-
if (this.
|
|
863
|
+
protoOf(RealSource).r4 = function () {
|
|
864
|
+
if (this.t1o_1)
|
|
865
865
|
return Unit_instance;
|
|
866
|
-
this.
|
|
867
|
-
this.
|
|
868
|
-
this.
|
|
866
|
+
this.t1o_1 = true;
|
|
867
|
+
this.s1o_1.r4();
|
|
868
|
+
this.u1o_1.j2();
|
|
869
869
|
};
|
|
870
870
|
protoOf(RealSource).toString = function () {
|
|
871
|
-
return 'buffered(' + toString(this.
|
|
871
|
+
return 'buffered(' + toString(this.s1o_1) + ')';
|
|
872
872
|
};
|
|
873
873
|
function Segment_init_$Init$($this) {
|
|
874
874
|
Segment.call($this);
|
|
875
|
-
$this.
|
|
876
|
-
$this.
|
|
877
|
-
$this.
|
|
875
|
+
$this.q1m_1 = new Int8Array(8192);
|
|
876
|
+
$this.u1m_1 = true;
|
|
877
|
+
$this.t1m_1 = null;
|
|
878
878
|
return $this;
|
|
879
879
|
}
|
|
880
880
|
function Segment_init_$Create$() {
|
|
@@ -882,150 +882,150 @@ function Segment_init_$Create$() {
|
|
|
882
882
|
}
|
|
883
883
|
function Segment_init_$Init$_0(data, pos, limit, shareToken, owner, $this) {
|
|
884
884
|
Segment.call($this);
|
|
885
|
-
$this.
|
|
886
|
-
$this.
|
|
887
|
-
$this.
|
|
888
|
-
$this.
|
|
889
|
-
$this.
|
|
885
|
+
$this.q1m_1 = data;
|
|
886
|
+
$this.r1m_1 = pos;
|
|
887
|
+
$this.s1m_1 = limit;
|
|
888
|
+
$this.t1m_1 = shareToken;
|
|
889
|
+
$this.u1m_1 = owner;
|
|
890
890
|
return $this;
|
|
891
891
|
}
|
|
892
892
|
function Segment_init_$Create$_0(data, pos, limit, shareToken, owner) {
|
|
893
893
|
return Segment_init_$Init$_0(data, pos, limit, shareToken, owner, objectCreate(protoOf(Segment)));
|
|
894
894
|
}
|
|
895
895
|
function Companion() {
|
|
896
|
-
this.
|
|
897
|
-
this.
|
|
896
|
+
this.v1o_1 = 8192;
|
|
897
|
+
this.w1o_1 = 1024;
|
|
898
898
|
}
|
|
899
|
-
protoOf(Companion).
|
|
899
|
+
protoOf(Companion).x1o = function () {
|
|
900
900
|
return Segment_init_$Create$();
|
|
901
901
|
};
|
|
902
902
|
var Companion_instance;
|
|
903
903
|
function Companion_getInstance() {
|
|
904
904
|
return Companion_instance;
|
|
905
905
|
}
|
|
906
|
-
protoOf(Segment).
|
|
907
|
-
var tmp0_safe_receiver = this.
|
|
908
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
906
|
+
protoOf(Segment).a1o = function () {
|
|
907
|
+
var tmp0_safe_receiver = this.t1m_1;
|
|
908
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.y1o();
|
|
909
909
|
return tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs;
|
|
910
910
|
};
|
|
911
|
-
protoOf(Segment).
|
|
912
|
-
var tmp0_elvis_lhs = this.
|
|
911
|
+
protoOf(Segment).d1n = function () {
|
|
912
|
+
var tmp0_elvis_lhs = this.t1m_1;
|
|
913
913
|
var tmp;
|
|
914
914
|
if (tmp0_elvis_lhs == null) {
|
|
915
915
|
// Inline function 'kotlin.also' call
|
|
916
|
-
var this_0 = SegmentPool_instance.
|
|
917
|
-
this.
|
|
916
|
+
var this_0 = SegmentPool_instance.z1o();
|
|
917
|
+
this.t1m_1 = this_0;
|
|
918
918
|
tmp = this_0;
|
|
919
919
|
} else {
|
|
920
920
|
tmp = tmp0_elvis_lhs;
|
|
921
921
|
}
|
|
922
922
|
var t = tmp;
|
|
923
|
-
var tmp_0 = this.
|
|
924
|
-
var tmp_1 = this.
|
|
923
|
+
var tmp_0 = this.r1m_1;
|
|
924
|
+
var tmp_1 = this.s1m_1;
|
|
925
925
|
// Inline function 'kotlin.also' call
|
|
926
|
-
t.
|
|
927
|
-
return Segment_init_$Create$_0(this.
|
|
926
|
+
t.a1p();
|
|
927
|
+
return Segment_init_$Create$_0(this.q1m_1, tmp_0, tmp_1, t, false);
|
|
928
928
|
};
|
|
929
|
-
protoOf(Segment).
|
|
930
|
-
var result = this.
|
|
931
|
-
if (!(this.
|
|
932
|
-
ensureNotNull(this.
|
|
929
|
+
protoOf(Segment).d1o = function () {
|
|
930
|
+
var result = this.v1m_1;
|
|
931
|
+
if (!(this.w1m_1 == null)) {
|
|
932
|
+
ensureNotNull(this.w1m_1).v1m_1 = this.v1m_1;
|
|
933
933
|
}
|
|
934
|
-
if (!(this.
|
|
935
|
-
ensureNotNull(this.
|
|
934
|
+
if (!(this.v1m_1 == null)) {
|
|
935
|
+
ensureNotNull(this.v1m_1).w1m_1 = this.w1m_1;
|
|
936
936
|
}
|
|
937
|
-
this.
|
|
938
|
-
this.
|
|
937
|
+
this.v1m_1 = null;
|
|
938
|
+
this.w1m_1 = null;
|
|
939
939
|
return result;
|
|
940
940
|
};
|
|
941
|
-
protoOf(Segment).
|
|
942
|
-
segment.
|
|
943
|
-
segment.
|
|
944
|
-
if (!(this.
|
|
945
|
-
ensureNotNull(this.
|
|
941
|
+
protoOf(Segment).e1n = function (segment) {
|
|
942
|
+
segment.w1m_1 = this;
|
|
943
|
+
segment.v1m_1 = this.v1m_1;
|
|
944
|
+
if (!(this.v1m_1 == null)) {
|
|
945
|
+
ensureNotNull(this.v1m_1).w1m_1 = segment;
|
|
946
946
|
}
|
|
947
|
-
this.
|
|
947
|
+
this.v1m_1 = segment;
|
|
948
948
|
return segment;
|
|
949
949
|
};
|
|
950
|
-
protoOf(Segment).
|
|
950
|
+
protoOf(Segment).b1o = function (byteCount) {
|
|
951
951
|
// Inline function 'kotlin.require' call
|
|
952
|
-
if (!(byteCount > 0 && byteCount <= (this.
|
|
952
|
+
if (!(byteCount > 0 && byteCount <= (this.s1m_1 - this.r1m_1 | 0))) {
|
|
953
953
|
var message = 'byteCount out of range';
|
|
954
954
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
955
955
|
}
|
|
956
956
|
var prefix;
|
|
957
957
|
if (byteCount >= 1024) {
|
|
958
|
-
prefix = this.
|
|
958
|
+
prefix = this.d1n();
|
|
959
959
|
} else {
|
|
960
|
-
prefix = SegmentPool_instance.
|
|
961
|
-
var
|
|
962
|
-
var tmp2 = prefix.
|
|
963
|
-
var
|
|
960
|
+
prefix = SegmentPool_instance.v1n();
|
|
961
|
+
var tmp0 = this.q1m_1;
|
|
962
|
+
var tmp2 = prefix.q1m_1;
|
|
963
|
+
var tmp4 = this.r1m_1;
|
|
964
964
|
// Inline function 'kotlin.collections.copyInto' call
|
|
965
|
-
var endIndex = this.
|
|
965
|
+
var endIndex = this.r1m_1 + byteCount | 0;
|
|
966
966
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
967
967
|
// Inline function 'kotlin.js.asDynamic' call
|
|
968
|
-
var tmp =
|
|
968
|
+
var tmp = tmp0;
|
|
969
969
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
970
970
|
// Inline function 'kotlin.js.asDynamic' call
|
|
971
|
-
arrayCopy(tmp, tmp2, 0,
|
|
971
|
+
arrayCopy(tmp, tmp2, 0, tmp4, endIndex);
|
|
972
972
|
}
|
|
973
|
-
prefix.
|
|
974
|
-
this.
|
|
975
|
-
if (!(this.
|
|
976
|
-
ensureNotNull(this.
|
|
973
|
+
prefix.s1m_1 = prefix.r1m_1 + byteCount | 0;
|
|
974
|
+
this.r1m_1 = this.r1m_1 + byteCount | 0;
|
|
975
|
+
if (!(this.w1m_1 == null)) {
|
|
976
|
+
ensureNotNull(this.w1m_1).e1n(prefix);
|
|
977
977
|
} else {
|
|
978
|
-
prefix.
|
|
979
|
-
this.
|
|
978
|
+
prefix.v1m_1 = this;
|
|
979
|
+
this.w1m_1 = prefix;
|
|
980
980
|
}
|
|
981
981
|
return prefix;
|
|
982
982
|
};
|
|
983
|
-
protoOf(Segment).
|
|
983
|
+
protoOf(Segment).f1n = function () {
|
|
984
984
|
// Inline function 'kotlin.check' call
|
|
985
|
-
if (!!(this.
|
|
985
|
+
if (!!(this.w1m_1 == null)) {
|
|
986
986
|
var message = 'cannot compact';
|
|
987
987
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
988
988
|
}
|
|
989
|
-
if (!ensureNotNull(this.
|
|
989
|
+
if (!ensureNotNull(this.w1m_1).u1m_1)
|
|
990
990
|
return this;
|
|
991
|
-
var byteCount = this.
|
|
992
|
-
var availableByteCount = (8192 - ensureNotNull(this.
|
|
991
|
+
var byteCount = this.s1m_1 - this.r1m_1 | 0;
|
|
992
|
+
var availableByteCount = (8192 - ensureNotNull(this.w1m_1).s1m_1 | 0) + (ensureNotNull(this.w1m_1).a1o() ? 0 : ensureNotNull(this.w1m_1).r1m_1) | 0;
|
|
993
993
|
if (byteCount > availableByteCount)
|
|
994
994
|
return this;
|
|
995
|
-
var predecessor = this.
|
|
996
|
-
this.
|
|
997
|
-
var successor = this.
|
|
995
|
+
var predecessor = this.w1m_1;
|
|
996
|
+
this.c1o(ensureNotNull(predecessor), byteCount);
|
|
997
|
+
var successor = this.d1o();
|
|
998
998
|
// Inline function 'kotlin.check' call
|
|
999
999
|
if (!(successor == null)) {
|
|
1000
1000
|
throw IllegalStateException_init_$Create$('Check failed.');
|
|
1001
1001
|
}
|
|
1002
|
-
SegmentPool_instance.
|
|
1002
|
+
SegmentPool_instance.k1o(this);
|
|
1003
1003
|
return predecessor;
|
|
1004
1004
|
};
|
|
1005
|
-
protoOf(Segment).
|
|
1006
|
-
var _unary__edvuaz = this.
|
|
1007
|
-
this.
|
|
1008
|
-
this.
|
|
1005
|
+
protoOf(Segment).g1o = function (byte) {
|
|
1006
|
+
var _unary__edvuaz = this.s1m_1;
|
|
1007
|
+
this.s1m_1 = _unary__edvuaz + 1 | 0;
|
|
1008
|
+
this.q1m_1[_unary__edvuaz] = byte;
|
|
1009
1009
|
};
|
|
1010
|
-
protoOf(Segment).
|
|
1011
|
-
var data = this.
|
|
1012
|
-
var limit = this.
|
|
1010
|
+
protoOf(Segment).i1o = function (short) {
|
|
1011
|
+
var data = this.q1m_1;
|
|
1012
|
+
var limit = this.s1m_1;
|
|
1013
1013
|
var _unary__edvuaz = limit;
|
|
1014
1014
|
limit = _unary__edvuaz + 1 | 0;
|
|
1015
1015
|
data[_unary__edvuaz] = toByte((short >>> 8 | 0) & 255);
|
|
1016
1016
|
var _unary__edvuaz_0 = limit;
|
|
1017
1017
|
limit = _unary__edvuaz_0 + 1 | 0;
|
|
1018
1018
|
data[_unary__edvuaz_0] = toByte(short & 255);
|
|
1019
|
-
this.
|
|
1019
|
+
this.s1m_1 = limit;
|
|
1020
1020
|
};
|
|
1021
|
-
protoOf(Segment).
|
|
1022
|
-
var _unary__edvuaz = this.
|
|
1023
|
-
this.
|
|
1024
|
-
return this.
|
|
1021
|
+
protoOf(Segment).y1m = function () {
|
|
1022
|
+
var _unary__edvuaz = this.r1m_1;
|
|
1023
|
+
this.r1m_1 = _unary__edvuaz + 1 | 0;
|
|
1024
|
+
return this.q1m_1[_unary__edvuaz];
|
|
1025
1025
|
};
|
|
1026
|
-
protoOf(Segment).
|
|
1027
|
-
var data = this.
|
|
1028
|
-
var pos = this.
|
|
1026
|
+
protoOf(Segment).a1n = function () {
|
|
1027
|
+
var data = this.q1m_1;
|
|
1028
|
+
var pos = this.r1m_1;
|
|
1029
1029
|
var _unary__edvuaz = pos;
|
|
1030
1030
|
pos = _unary__edvuaz + 1 | 0;
|
|
1031
1031
|
// Inline function 'kotlinx.io.and' call
|
|
@@ -1035,118 +1035,118 @@ protoOf(Segment).a1m = function () {
|
|
|
1035
1035
|
// Inline function 'kotlinx.io.and' call
|
|
1036
1036
|
var tmp$ret$1 = data[_unary__edvuaz_0] & 255;
|
|
1037
1037
|
var s = toShort(tmp | tmp$ret$1);
|
|
1038
|
-
this.
|
|
1038
|
+
this.r1m_1 = pos;
|
|
1039
1039
|
return s;
|
|
1040
1040
|
};
|
|
1041
|
-
protoOf(Segment).
|
|
1041
|
+
protoOf(Segment).c1o = function (sink, byteCount) {
|
|
1042
1042
|
// Inline function 'kotlin.check' call
|
|
1043
|
-
if (!sink.
|
|
1043
|
+
if (!sink.u1m_1) {
|
|
1044
1044
|
var message = 'only owner can write';
|
|
1045
1045
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
1046
1046
|
}
|
|
1047
|
-
if ((sink.
|
|
1048
|
-
if (sink.
|
|
1047
|
+
if ((sink.s1m_1 + byteCount | 0) > 8192) {
|
|
1048
|
+
if (sink.a1o())
|
|
1049
1049
|
throw IllegalArgumentException_init_$Create$_0();
|
|
1050
|
-
if (((sink.
|
|
1050
|
+
if (((sink.s1m_1 + byteCount | 0) - sink.r1m_1 | 0) > 8192)
|
|
1051
1051
|
throw IllegalArgumentException_init_$Create$_0();
|
|
1052
|
-
var
|
|
1053
|
-
var tmp2 = sink.
|
|
1054
|
-
var
|
|
1052
|
+
var tmp0 = sink.q1m_1;
|
|
1053
|
+
var tmp2 = sink.q1m_1;
|
|
1054
|
+
var tmp4 = sink.r1m_1;
|
|
1055
1055
|
// Inline function 'kotlin.collections.copyInto' call
|
|
1056
|
-
var endIndex = sink.
|
|
1056
|
+
var endIndex = sink.s1m_1;
|
|
1057
1057
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1058
1058
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1059
|
-
var tmp =
|
|
1059
|
+
var tmp = tmp0;
|
|
1060
1060
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1061
1061
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1062
|
-
arrayCopy(tmp, tmp2, 0,
|
|
1063
|
-
sink.
|
|
1064
|
-
sink.
|
|
1065
|
-
}
|
|
1066
|
-
var
|
|
1067
|
-
var
|
|
1068
|
-
var
|
|
1069
|
-
var
|
|
1062
|
+
arrayCopy(tmp, tmp2, 0, tmp4, endIndex);
|
|
1063
|
+
sink.s1m_1 = sink.s1m_1 - sink.r1m_1 | 0;
|
|
1064
|
+
sink.r1m_1 = 0;
|
|
1065
|
+
}
|
|
1066
|
+
var tmp0_0 = this.q1m_1;
|
|
1067
|
+
var tmp2_0 = sink.q1m_1;
|
|
1068
|
+
var tmp4_0 = sink.s1m_1;
|
|
1069
|
+
var tmp6 = this.r1m_1;
|
|
1070
1070
|
// Inline function 'kotlin.collections.copyInto' call
|
|
1071
|
-
var endIndex_0 = this.
|
|
1071
|
+
var endIndex_0 = this.r1m_1 + byteCount | 0;
|
|
1072
1072
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1073
1073
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1074
|
-
var tmp_0 =
|
|
1074
|
+
var tmp_0 = tmp0_0;
|
|
1075
1075
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1076
1076
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1077
|
-
arrayCopy(tmp_0,
|
|
1078
|
-
sink.
|
|
1079
|
-
this.
|
|
1077
|
+
arrayCopy(tmp_0, tmp2_0, tmp4_0, tmp6, endIndex_0);
|
|
1078
|
+
sink.s1m_1 = sink.s1m_1 + byteCount | 0;
|
|
1079
|
+
this.r1m_1 = this.r1m_1 + byteCount | 0;
|
|
1080
1080
|
};
|
|
1081
|
-
protoOf(Segment).
|
|
1081
|
+
protoOf(Segment).l1n = function (dst, dstStartOffset, dstEndOffset) {
|
|
1082
1082
|
var len = dstEndOffset - dstStartOffset | 0;
|
|
1083
|
-
var tmp0 = this.
|
|
1084
|
-
var
|
|
1083
|
+
var tmp0 = this.q1m_1;
|
|
1084
|
+
var tmp6 = this.r1m_1;
|
|
1085
1085
|
// Inline function 'kotlin.collections.copyInto' call
|
|
1086
|
-
var endIndex = this.
|
|
1086
|
+
var endIndex = this.r1m_1 + len | 0;
|
|
1087
1087
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1088
1088
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1089
1089
|
var tmp = tmp0;
|
|
1090
1090
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1091
1091
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1092
|
-
arrayCopy(tmp, dst, dstStartOffset,
|
|
1093
|
-
this.
|
|
1092
|
+
arrayCopy(tmp, dst, dstStartOffset, tmp6, endIndex);
|
|
1093
|
+
this.r1m_1 = this.r1m_1 + len | 0;
|
|
1094
1094
|
};
|
|
1095
|
-
protoOf(Segment).
|
|
1096
|
-
var
|
|
1095
|
+
protoOf(Segment).y1n = function (src, srcStartOffset, srcEndOffset) {
|
|
1096
|
+
var tmp2 = this.q1m_1;
|
|
1097
1097
|
// Inline function 'kotlin.collections.copyInto' call
|
|
1098
|
-
var destinationOffset = this.
|
|
1098
|
+
var destinationOffset = this.s1m_1;
|
|
1099
1099
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1100
1100
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1101
1101
|
var tmp = src;
|
|
1102
1102
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1103
1103
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1104
|
-
arrayCopy(tmp,
|
|
1105
|
-
this.
|
|
1104
|
+
arrayCopy(tmp, tmp2, destinationOffset, srcStartOffset, srcEndOffset);
|
|
1105
|
+
this.s1m_1 = this.s1m_1 + (srcEndOffset - srcStartOffset | 0) | 0;
|
|
1106
1106
|
};
|
|
1107
1107
|
protoOf(Segment).t = function () {
|
|
1108
|
-
return this.
|
|
1108
|
+
return this.s1m_1 - this.r1m_1 | 0;
|
|
1109
1109
|
};
|
|
1110
|
-
protoOf(Segment).
|
|
1111
|
-
return this.
|
|
1110
|
+
protoOf(Segment).x1n = function () {
|
|
1111
|
+
return this.q1m_1.length - this.s1m_1 | 0;
|
|
1112
1112
|
};
|
|
1113
|
-
protoOf(Segment).
|
|
1114
|
-
return this.
|
|
1113
|
+
protoOf(Segment).b1p = function (readOnly) {
|
|
1114
|
+
return this.q1m_1;
|
|
1115
1115
|
};
|
|
1116
|
-
protoOf(Segment).
|
|
1117
|
-
return this.
|
|
1116
|
+
protoOf(Segment).i1n = function (index) {
|
|
1117
|
+
return this.q1m_1[this.r1m_1 + index | 0];
|
|
1118
1118
|
};
|
|
1119
|
-
protoOf(Segment).
|
|
1120
|
-
this.
|
|
1119
|
+
protoOf(Segment).c1p = function (index, value) {
|
|
1120
|
+
this.q1m_1[this.s1m_1 + index | 0] = value;
|
|
1121
1121
|
};
|
|
1122
|
-
protoOf(Segment).
|
|
1123
|
-
var d = this.
|
|
1124
|
-
var l = this.
|
|
1122
|
+
protoOf(Segment).d1p = function (index, b0, b1) {
|
|
1123
|
+
var d = this.q1m_1;
|
|
1124
|
+
var l = this.s1m_1;
|
|
1125
1125
|
d[l + index | 0] = b0;
|
|
1126
1126
|
d[(l + index | 0) + 1 | 0] = b1;
|
|
1127
1127
|
};
|
|
1128
|
-
protoOf(Segment).
|
|
1129
|
-
var d = this.
|
|
1130
|
-
var l = this.
|
|
1128
|
+
protoOf(Segment).e1p = function (index, b0, b1, b2) {
|
|
1129
|
+
var d = this.q1m_1;
|
|
1130
|
+
var l = this.s1m_1;
|
|
1131
1131
|
d[l + index | 0] = b0;
|
|
1132
1132
|
d[(l + index | 0) + 1 | 0] = b1;
|
|
1133
1133
|
d[(l + index | 0) + 2 | 0] = b2;
|
|
1134
1134
|
};
|
|
1135
|
-
protoOf(Segment).
|
|
1136
|
-
var d = this.
|
|
1137
|
-
var l = this.
|
|
1135
|
+
protoOf(Segment).f1p = function (index, b0, b1, b2, b3) {
|
|
1136
|
+
var d = this.q1m_1;
|
|
1137
|
+
var l = this.s1m_1;
|
|
1138
1138
|
d[l + index | 0] = b0;
|
|
1139
1139
|
d[(l + index | 0) + 1 | 0] = b1;
|
|
1140
1140
|
d[(l + index | 0) + 2 | 0] = b2;
|
|
1141
1141
|
d[(l + index | 0) + 3 | 0] = b3;
|
|
1142
1142
|
};
|
|
1143
1143
|
function Segment() {
|
|
1144
|
-
this.
|
|
1145
|
-
this.
|
|
1146
|
-
this.
|
|
1147
|
-
this.
|
|
1148
|
-
this.
|
|
1149
|
-
this.
|
|
1144
|
+
this.r1m_1 = 0;
|
|
1145
|
+
this.s1m_1 = 0;
|
|
1146
|
+
this.t1m_1 = null;
|
|
1147
|
+
this.u1m_1 = false;
|
|
1148
|
+
this.v1m_1 = null;
|
|
1149
|
+
this.w1m_1 = null;
|
|
1150
1150
|
}
|
|
1151
1151
|
function SegmentCopyTracker() {
|
|
1152
1152
|
}
|
|
@@ -1157,10 +1157,10 @@ function AlwaysSharedCopyTracker() {
|
|
|
1157
1157
|
AlwaysSharedCopyTracker_instance = this;
|
|
1158
1158
|
SegmentCopyTracker.call(this);
|
|
1159
1159
|
}
|
|
1160
|
-
protoOf(AlwaysSharedCopyTracker).
|
|
1160
|
+
protoOf(AlwaysSharedCopyTracker).y1o = function () {
|
|
1161
1161
|
return true;
|
|
1162
1162
|
};
|
|
1163
|
-
protoOf(AlwaysSharedCopyTracker).
|
|
1163
|
+
protoOf(AlwaysSharedCopyTracker).a1p = function () {
|
|
1164
1164
|
return Unit_instance;
|
|
1165
1165
|
};
|
|
1166
1166
|
var AlwaysSharedCopyTracker_instance;
|
|
@@ -1180,8 +1180,8 @@ function indexOf_0(_this__u8e3s4, byte, startOffset, endOffset) {
|
|
|
1180
1180
|
var message_0 = '' + endOffset;
|
|
1181
1181
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
1182
1182
|
}
|
|
1183
|
-
var p = _this__u8e3s4.
|
|
1184
|
-
var data = _this__u8e3s4.
|
|
1183
|
+
var p = _this__u8e3s4.r1m_1;
|
|
1184
|
+
var data = _this__u8e3s4.b1p(true);
|
|
1185
1185
|
var inductionVariable = startOffset;
|
|
1186
1186
|
if (inductionVariable < endOffset)
|
|
1187
1187
|
do {
|
|
@@ -1205,21 +1205,21 @@ function readByteArrayImpl(_this__u8e3s4, size) {
|
|
|
1205
1205
|
var arraySize = size;
|
|
1206
1206
|
if (size === -1) {
|
|
1207
1207
|
var fetchSize = new Long(2147483647, 0);
|
|
1208
|
-
while (_this__u8e3s4.
|
|
1208
|
+
while (_this__u8e3s4.l1m().t().h1(new Long(2147483647, 0)) < 0 && _this__u8e3s4.o1m(fetchSize)) {
|
|
1209
1209
|
// Inline function 'kotlin.Long.times' call
|
|
1210
1210
|
fetchSize = fetchSize.e3(toLong(2));
|
|
1211
1211
|
}
|
|
1212
1212
|
// Inline function 'kotlin.check' call
|
|
1213
|
-
if (!(_this__u8e3s4.
|
|
1214
|
-
var message = "Can't create an array of size " + _this__u8e3s4.
|
|
1213
|
+
if (!(_this__u8e3s4.l1m().t().h1(new Long(2147483647, 0)) < 0)) {
|
|
1214
|
+
var message = "Can't create an array of size " + _this__u8e3s4.l1m().t().toString();
|
|
1215
1215
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
1216
1216
|
}
|
|
1217
|
-
arraySize = _this__u8e3s4.
|
|
1217
|
+
arraySize = _this__u8e3s4.l1m().t().m1();
|
|
1218
1218
|
} else {
|
|
1219
|
-
_this__u8e3s4.
|
|
1219
|
+
_this__u8e3s4.n1m(toLong(size));
|
|
1220
1220
|
}
|
|
1221
1221
|
var array = new Int8Array(arraySize);
|
|
1222
|
-
readTo(_this__u8e3s4.
|
|
1222
|
+
readTo(_this__u8e3s4.l1m(), array);
|
|
1223
1223
|
return array;
|
|
1224
1224
|
}
|
|
1225
1225
|
function readTo(_this__u8e3s4, sink, startIndex, endIndex) {
|
|
@@ -1230,7 +1230,7 @@ function readTo(_this__u8e3s4, sink, startIndex, endIndex) {
|
|
|
1230
1230
|
checkBounds(toLong(size), toLong(startIndex), toLong(endIndex));
|
|
1231
1231
|
var offset = startIndex;
|
|
1232
1232
|
while (offset < endIndex) {
|
|
1233
|
-
var bytesRead = _this__u8e3s4.
|
|
1233
|
+
var bytesRead = _this__u8e3s4.k1n(sink, offset, endIndex);
|
|
1234
1234
|
if (bytesRead === -1) {
|
|
1235
1235
|
throw EOFException_init_$Create$_0('Source exhausted before reading ' + (endIndex - startIndex | 0) + ' bytes. ' + ('Only ' + bytesRead + ' bytes were read.'));
|
|
1236
1236
|
}
|
|
@@ -1269,23 +1269,23 @@ function indexOf_1(_this__u8e3s4, byte, startIndex, endIndex) {
|
|
|
1269
1269
|
if (offset.h1(endIndex) < 0) {
|
|
1270
1270
|
// Inline function 'kotlin.Long.plus' call
|
|
1271
1271
|
var tmp$ret$2 = offset.c3(toLong(1));
|
|
1272
|
-
tmp_0 = _this__u8e3s4.
|
|
1272
|
+
tmp_0 = _this__u8e3s4.o1m(tmp$ret$2);
|
|
1273
1273
|
} else {
|
|
1274
1274
|
tmp_0 = false;
|
|
1275
1275
|
}
|
|
1276
1276
|
if (!tmp_0) {
|
|
1277
1277
|
break $l$loop;
|
|
1278
1278
|
}
|
|
1279
|
-
var tmp_1 = _this__u8e3s4.
|
|
1279
|
+
var tmp_1 = _this__u8e3s4.l1m();
|
|
1280
1280
|
var tmp_2 = offset;
|
|
1281
1281
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
1282
|
-
var b = _this__u8e3s4.
|
|
1282
|
+
var b = _this__u8e3s4.l1m().t();
|
|
1283
1283
|
var tmp$ret$3 = endIndex.h1(b) <= 0 ? endIndex : b;
|
|
1284
1284
|
var idx = indexOf(tmp_1, byte, tmp_2, tmp$ret$3);
|
|
1285
1285
|
if (!idx.equals(new Long(-1, -1))) {
|
|
1286
1286
|
return idx;
|
|
1287
1287
|
}
|
|
1288
|
-
offset = _this__u8e3s4.
|
|
1288
|
+
offset = _this__u8e3s4.l1m().t();
|
|
1289
1289
|
}
|
|
1290
1290
|
return new Long(-1, -1);
|
|
1291
1291
|
}
|
|
@@ -1297,117 +1297,117 @@ function writeString(_this__u8e3s4, string, startIndex, endIndex) {
|
|
|
1297
1297
|
checkBounds(toLong(size), toLong(startIndex), toLong(endIndex));
|
|
1298
1298
|
// Inline function 'kotlinx.io.writeToInternalBuffer' call
|
|
1299
1299
|
// Inline function 'kotlinx.io.commonWriteUtf8' call
|
|
1300
|
-
var this_0 = _this__u8e3s4.
|
|
1300
|
+
var this_0 = _this__u8e3s4.l1m();
|
|
1301
1301
|
var i = startIndex;
|
|
1302
1302
|
while (i < endIndex) {
|
|
1303
1303
|
var p0 = i;
|
|
1304
1304
|
// Inline function 'kotlin.code' call
|
|
1305
|
-
var this_1 =
|
|
1305
|
+
var this_1 = charCodeAt(string, p0);
|
|
1306
1306
|
var c = Char__toInt_impl_vasixd(this_1);
|
|
1307
1307
|
if (c < 128) {
|
|
1308
1308
|
$l$block_0: {
|
|
1309
1309
|
// Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.writeToTail' call
|
|
1310
|
-
var tail = this_0.
|
|
1310
|
+
var tail = this_0.s1n(1);
|
|
1311
1311
|
var ctx = get_SegmentWriteContextImpl();
|
|
1312
1312
|
var segmentOffset = -i | 0;
|
|
1313
1313
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
1314
|
-
var b = i + tail.
|
|
1314
|
+
var b = i + tail.x1n() | 0;
|
|
1315
1315
|
var runLimit = Math.min(endIndex, b);
|
|
1316
1316
|
var _unary__edvuaz = i;
|
|
1317
1317
|
i = _unary__edvuaz + 1 | 0;
|
|
1318
|
-
ctx.
|
|
1318
|
+
ctx.j1p(tail, segmentOffset + _unary__edvuaz | 0, toByte(c));
|
|
1319
1319
|
$l$loop: while (i < runLimit) {
|
|
1320
1320
|
var p0_0 = i;
|
|
1321
1321
|
// Inline function 'kotlin.code' call
|
|
1322
|
-
var this_2 =
|
|
1322
|
+
var this_2 = charCodeAt(string, p0_0);
|
|
1323
1323
|
c = Char__toInt_impl_vasixd(this_2);
|
|
1324
1324
|
if (c >= 128)
|
|
1325
1325
|
break $l$loop;
|
|
1326
1326
|
var _unary__edvuaz_0 = i;
|
|
1327
1327
|
i = _unary__edvuaz_0 + 1 | 0;
|
|
1328
|
-
ctx.
|
|
1328
|
+
ctx.j1p(tail, segmentOffset + _unary__edvuaz_0 | 0, toByte(c));
|
|
1329
1329
|
}
|
|
1330
1330
|
var bytesWritten = i + segmentOffset | 0;
|
|
1331
1331
|
if (bytesWritten === 1) {
|
|
1332
|
-
tail.
|
|
1332
|
+
tail.s1m_1 = tail.s1m_1 + bytesWritten | 0;
|
|
1333
1333
|
var tmp = this_0;
|
|
1334
1334
|
// Inline function 'kotlin.Long.plus' call
|
|
1335
|
-
tmp.
|
|
1335
|
+
tmp.k1m_1 = this_0.k1m_1.c3(toLong(bytesWritten));
|
|
1336
1336
|
break $l$block_0;
|
|
1337
1337
|
}
|
|
1338
1338
|
// Inline function 'kotlin.check' call
|
|
1339
|
-
if (!(0 <= bytesWritten ? bytesWritten <= tail.
|
|
1340
|
-
var message = 'Invalid number of bytes written: ' + bytesWritten + '. Should be in 0..' + tail.
|
|
1339
|
+
if (!(0 <= bytesWritten ? bytesWritten <= tail.x1n() : false)) {
|
|
1340
|
+
var message = 'Invalid number of bytes written: ' + bytesWritten + '. Should be in 0..' + tail.x1n();
|
|
1341
1341
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
1342
1342
|
}
|
|
1343
1343
|
if (!(bytesWritten === 0)) {
|
|
1344
|
-
tail.
|
|
1344
|
+
tail.s1m_1 = tail.s1m_1 + bytesWritten | 0;
|
|
1345
1345
|
var tmp_0 = this_0;
|
|
1346
1346
|
// Inline function 'kotlin.Long.plus' call
|
|
1347
|
-
tmp_0.
|
|
1347
|
+
tmp_0.k1m_1 = this_0.k1m_1.c3(toLong(bytesWritten));
|
|
1348
1348
|
break $l$block_0;
|
|
1349
1349
|
}
|
|
1350
1350
|
if (isEmpty(tail)) {
|
|
1351
|
-
this_0.
|
|
1351
|
+
this_0.l1o();
|
|
1352
1352
|
}
|
|
1353
1353
|
}
|
|
1354
1354
|
} else if (c < 2048) {
|
|
1355
1355
|
$l$block_2: {
|
|
1356
1356
|
// Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.writeToTail' call
|
|
1357
|
-
var tail_0 = this_0.
|
|
1358
|
-
get_SegmentWriteContextImpl().
|
|
1357
|
+
var tail_0 = this_0.s1n(2);
|
|
1358
|
+
get_SegmentWriteContextImpl().i1p(tail_0, 0, toByte(c >> 6 | 192), toByte(c & 63 | 128));
|
|
1359
1359
|
var bytesWritten_0 = 2;
|
|
1360
1360
|
if (bytesWritten_0 === 2) {
|
|
1361
|
-
tail_0.
|
|
1361
|
+
tail_0.s1m_1 = tail_0.s1m_1 + bytesWritten_0 | 0;
|
|
1362
1362
|
var tmp_1 = this_0;
|
|
1363
1363
|
// Inline function 'kotlin.Long.plus' call
|
|
1364
|
-
tmp_1.
|
|
1364
|
+
tmp_1.k1m_1 = this_0.k1m_1.c3(toLong(bytesWritten_0));
|
|
1365
1365
|
break $l$block_2;
|
|
1366
1366
|
}
|
|
1367
1367
|
// Inline function 'kotlin.check' call
|
|
1368
|
-
if (!(0 <= bytesWritten_0 ? bytesWritten_0 <= tail_0.
|
|
1369
|
-
var message_0 = 'Invalid number of bytes written: ' + bytesWritten_0 + '. Should be in 0..' + tail_0.
|
|
1368
|
+
if (!(0 <= bytesWritten_0 ? bytesWritten_0 <= tail_0.x1n() : false)) {
|
|
1369
|
+
var message_0 = 'Invalid number of bytes written: ' + bytesWritten_0 + '. Should be in 0..' + tail_0.x1n();
|
|
1370
1370
|
throw IllegalStateException_init_$Create$(toString(message_0));
|
|
1371
1371
|
}
|
|
1372
1372
|
if (!(bytesWritten_0 === 0)) {
|
|
1373
|
-
tail_0.
|
|
1373
|
+
tail_0.s1m_1 = tail_0.s1m_1 + bytesWritten_0 | 0;
|
|
1374
1374
|
var tmp_2 = this_0;
|
|
1375
1375
|
// Inline function 'kotlin.Long.plus' call
|
|
1376
|
-
tmp_2.
|
|
1376
|
+
tmp_2.k1m_1 = this_0.k1m_1.c3(toLong(bytesWritten_0));
|
|
1377
1377
|
break $l$block_2;
|
|
1378
1378
|
}
|
|
1379
1379
|
if (isEmpty(tail_0)) {
|
|
1380
|
-
this_0.
|
|
1380
|
+
this_0.l1o();
|
|
1381
1381
|
}
|
|
1382
1382
|
}
|
|
1383
1383
|
i = i + 1 | 0;
|
|
1384
1384
|
} else if (c < 55296 || c > 57343) {
|
|
1385
1385
|
$l$block_4: {
|
|
1386
1386
|
// Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.writeToTail' call
|
|
1387
|
-
var tail_1 = this_0.
|
|
1388
|
-
get_SegmentWriteContextImpl().
|
|
1387
|
+
var tail_1 = this_0.s1n(3);
|
|
1388
|
+
get_SegmentWriteContextImpl().h1p(tail_1, 0, toByte(c >> 12 | 224), toByte(c >> 6 & 63 | 128), toByte(c & 63 | 128));
|
|
1389
1389
|
var bytesWritten_1 = 3;
|
|
1390
1390
|
if (bytesWritten_1 === 3) {
|
|
1391
|
-
tail_1.
|
|
1391
|
+
tail_1.s1m_1 = tail_1.s1m_1 + bytesWritten_1 | 0;
|
|
1392
1392
|
var tmp_3 = this_0;
|
|
1393
1393
|
// Inline function 'kotlin.Long.plus' call
|
|
1394
|
-
tmp_3.
|
|
1394
|
+
tmp_3.k1m_1 = this_0.k1m_1.c3(toLong(bytesWritten_1));
|
|
1395
1395
|
break $l$block_4;
|
|
1396
1396
|
}
|
|
1397
1397
|
// Inline function 'kotlin.check' call
|
|
1398
|
-
if (!(0 <= bytesWritten_1 ? bytesWritten_1 <= tail_1.
|
|
1399
|
-
var message_1 = 'Invalid number of bytes written: ' + bytesWritten_1 + '. Should be in 0..' + tail_1.
|
|
1398
|
+
if (!(0 <= bytesWritten_1 ? bytesWritten_1 <= tail_1.x1n() : false)) {
|
|
1399
|
+
var message_1 = 'Invalid number of bytes written: ' + bytesWritten_1 + '. Should be in 0..' + tail_1.x1n();
|
|
1400
1400
|
throw IllegalStateException_init_$Create$(toString(message_1));
|
|
1401
1401
|
}
|
|
1402
1402
|
if (!(bytesWritten_1 === 0)) {
|
|
1403
|
-
tail_1.
|
|
1403
|
+
tail_1.s1m_1 = tail_1.s1m_1 + bytesWritten_1 | 0;
|
|
1404
1404
|
var tmp_4 = this_0;
|
|
1405
1405
|
// Inline function 'kotlin.Long.plus' call
|
|
1406
|
-
tmp_4.
|
|
1406
|
+
tmp_4.k1m_1 = this_0.k1m_1.c3(toLong(bytesWritten_1));
|
|
1407
1407
|
break $l$block_4;
|
|
1408
1408
|
}
|
|
1409
1409
|
if (isEmpty(tail_1)) {
|
|
1410
|
-
this_0.
|
|
1410
|
+
this_0.l1o();
|
|
1411
1411
|
}
|
|
1412
1412
|
}
|
|
1413
1413
|
i = i + 1 | 0;
|
|
@@ -1416,7 +1416,7 @@ function writeString(_this__u8e3s4, string, startIndex, endIndex) {
|
|
|
1416
1416
|
if ((i + 1 | 0) < endIndex) {
|
|
1417
1417
|
var p0_1 = i + 1 | 0;
|
|
1418
1418
|
// Inline function 'kotlin.code' call
|
|
1419
|
-
var this_3 =
|
|
1419
|
+
var this_3 = charCodeAt(string, p0_1);
|
|
1420
1420
|
tmp_5 = Char__toInt_impl_vasixd(this_3);
|
|
1421
1421
|
} else {
|
|
1422
1422
|
tmp_5 = 0;
|
|
@@ -1426,51 +1426,51 @@ function writeString(_this__u8e3s4, string, startIndex, endIndex) {
|
|
|
1426
1426
|
// Inline function 'kotlin.code' call
|
|
1427
1427
|
var this_4 = _Char___init__impl__6a9atx(63);
|
|
1428
1428
|
var tmp$ret$26 = Char__toInt_impl_vasixd(this_4);
|
|
1429
|
-
this_0.
|
|
1429
|
+
this_0.f1o(toByte(tmp$ret$26));
|
|
1430
1430
|
i = i + 1 | 0;
|
|
1431
1431
|
} else {
|
|
1432
1432
|
var codePoint = 65536 + ((c & 1023) << 10 | low & 1023) | 0;
|
|
1433
1433
|
$l$block_6: {
|
|
1434
1434
|
// Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.writeToTail' call
|
|
1435
|
-
var tail_2 = this_0.
|
|
1436
|
-
get_SegmentWriteContextImpl().
|
|
1435
|
+
var tail_2 = this_0.s1n(4);
|
|
1436
|
+
get_SegmentWriteContextImpl().g1p(tail_2, 0, toByte(codePoint >> 18 | 240), toByte(codePoint >> 12 & 63 | 128), toByte(codePoint >> 6 & 63 | 128), toByte(codePoint & 63 | 128));
|
|
1437
1437
|
var bytesWritten_2 = 4;
|
|
1438
1438
|
if (bytesWritten_2 === 4) {
|
|
1439
|
-
tail_2.
|
|
1439
|
+
tail_2.s1m_1 = tail_2.s1m_1 + bytesWritten_2 | 0;
|
|
1440
1440
|
var tmp_6 = this_0;
|
|
1441
1441
|
// Inline function 'kotlin.Long.plus' call
|
|
1442
|
-
tmp_6.
|
|
1442
|
+
tmp_6.k1m_1 = this_0.k1m_1.c3(toLong(bytesWritten_2));
|
|
1443
1443
|
break $l$block_6;
|
|
1444
1444
|
}
|
|
1445
1445
|
// Inline function 'kotlin.check' call
|
|
1446
|
-
if (!(0 <= bytesWritten_2 ? bytesWritten_2 <= tail_2.
|
|
1447
|
-
var message_2 = 'Invalid number of bytes written: ' + bytesWritten_2 + '. Should be in 0..' + tail_2.
|
|
1446
|
+
if (!(0 <= bytesWritten_2 ? bytesWritten_2 <= tail_2.x1n() : false)) {
|
|
1447
|
+
var message_2 = 'Invalid number of bytes written: ' + bytesWritten_2 + '. Should be in 0..' + tail_2.x1n();
|
|
1448
1448
|
throw IllegalStateException_init_$Create$(toString(message_2));
|
|
1449
1449
|
}
|
|
1450
1450
|
if (!(bytesWritten_2 === 0)) {
|
|
1451
|
-
tail_2.
|
|
1451
|
+
tail_2.s1m_1 = tail_2.s1m_1 + bytesWritten_2 | 0;
|
|
1452
1452
|
var tmp_7 = this_0;
|
|
1453
1453
|
// Inline function 'kotlin.Long.plus' call
|
|
1454
|
-
tmp_7.
|
|
1454
|
+
tmp_7.k1m_1 = this_0.k1m_1.c3(toLong(bytesWritten_2));
|
|
1455
1455
|
break $l$block_6;
|
|
1456
1456
|
}
|
|
1457
1457
|
if (isEmpty(tail_2)) {
|
|
1458
|
-
this_0.
|
|
1458
|
+
this_0.l1o();
|
|
1459
1459
|
}
|
|
1460
1460
|
}
|
|
1461
1461
|
i = i + 2 | 0;
|
|
1462
1462
|
}
|
|
1463
1463
|
}
|
|
1464
1464
|
}
|
|
1465
|
-
_this__u8e3s4.
|
|
1465
|
+
_this__u8e3s4.b1n();
|
|
1466
1466
|
}
|
|
1467
1467
|
function readString(_this__u8e3s4) {
|
|
1468
|
-
_this__u8e3s4.
|
|
1469
|
-
return commonReadUtf8(_this__u8e3s4.
|
|
1468
|
+
_this__u8e3s4.o1m(new Long(-1, 2147483647));
|
|
1469
|
+
return commonReadUtf8(_this__u8e3s4.l1m(), _this__u8e3s4.l1m().t());
|
|
1470
1470
|
}
|
|
1471
1471
|
function readString_0(_this__u8e3s4, byteCount) {
|
|
1472
|
-
_this__u8e3s4.
|
|
1473
|
-
return commonReadUtf8(_this__u8e3s4.
|
|
1472
|
+
_this__u8e3s4.n1m(byteCount);
|
|
1473
|
+
return commonReadUtf8(_this__u8e3s4.l1m(), byteCount);
|
|
1474
1474
|
}
|
|
1475
1475
|
function readString_1(_this__u8e3s4) {
|
|
1476
1476
|
return commonReadUtf8(_this__u8e3s4, _this__u8e3s4.t());
|
|
@@ -1479,20 +1479,20 @@ function commonReadUtf8(_this__u8e3s4, byteCount) {
|
|
|
1479
1479
|
if (byteCount.equals(new Long(0, 0)))
|
|
1480
1480
|
return '';
|
|
1481
1481
|
// Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.forEachSegment' call
|
|
1482
|
-
var curr = _this__u8e3s4.
|
|
1482
|
+
var curr = _this__u8e3s4.i1m_1;
|
|
1483
1483
|
while (!(curr == null)) {
|
|
1484
1484
|
get_SegmentReadContextImpl();
|
|
1485
1485
|
if (toLong(curr.t()).h1(byteCount) >= 0) {
|
|
1486
1486
|
var result = '';
|
|
1487
1487
|
// Inline function 'kotlinx.io.unsafe.withData' call
|
|
1488
|
-
var
|
|
1489
|
-
var
|
|
1490
|
-
var
|
|
1488
|
+
var tmp0 = curr.b1p(true);
|
|
1489
|
+
var tmp2 = curr.r1m_1;
|
|
1490
|
+
var tmp0_0 = curr.s1m_1;
|
|
1491
1491
|
// Inline function 'kotlin.math.min' call
|
|
1492
|
-
var b =
|
|
1493
|
-
var tmp$ret$0 = Math.min(
|
|
1494
|
-
result = commonToUtf8String(
|
|
1495
|
-
_this__u8e3s4.
|
|
1492
|
+
var b = tmp2 + byteCount.m1() | 0;
|
|
1493
|
+
var tmp$ret$0 = Math.min(tmp0_0, b);
|
|
1494
|
+
result = commonToUtf8String(tmp0, tmp2, tmp$ret$0);
|
|
1495
|
+
_this__u8e3s4.j1n(byteCount);
|
|
1496
1496
|
return result;
|
|
1497
1497
|
}
|
|
1498
1498
|
return commonToUtf8String(readByteArray_0(_this__u8e3s4, byteCount.m1()));
|
|
@@ -1531,11 +1531,11 @@ function commonToUtf8String(_this__u8e3s4, beginIndex, endIndex) {
|
|
|
1531
1531
|
// Inline function 'kotlinx.io.shr' call
|
|
1532
1532
|
if (b0 >> 5 === -2) {
|
|
1533
1533
|
var tmp = index;
|
|
1534
|
-
var
|
|
1534
|
+
var tmp2 = index;
|
|
1535
1535
|
var tmp$ret$5;
|
|
1536
1536
|
$l$block_0: {
|
|
1537
1537
|
// Inline function 'kotlinx.io.internal.process2Utf8Bytes' call
|
|
1538
|
-
if (endIndex <= (
|
|
1538
|
+
if (endIndex <= (tmp2 + 1 | 0)) {
|
|
1539
1539
|
var c_1 = numberToChar(65533);
|
|
1540
1540
|
var _unary__edvuaz_2 = length;
|
|
1541
1541
|
length = _unary__edvuaz_2 + 1 | 0;
|
|
@@ -1543,8 +1543,8 @@ function commonToUtf8String(_this__u8e3s4, beginIndex, endIndex) {
|
|
|
1543
1543
|
tmp$ret$5 = 1;
|
|
1544
1544
|
break $l$block_0;
|
|
1545
1545
|
}
|
|
1546
|
-
var b0_0 = _this__u8e3s4[
|
|
1547
|
-
var b1 = _this__u8e3s4[
|
|
1546
|
+
var b0_0 = _this__u8e3s4[tmp2];
|
|
1547
|
+
var b1 = _this__u8e3s4[tmp2 + 1 | 0];
|
|
1548
1548
|
// Inline function 'kotlinx.io.internal.isUtf8Continuation' call
|
|
1549
1549
|
// Inline function 'kotlinx.io.and' call
|
|
1550
1550
|
if (!((b1 & 192) === 128)) {
|
|
@@ -1574,22 +1574,22 @@ function commonToUtf8String(_this__u8e3s4, beginIndex, endIndex) {
|
|
|
1574
1574
|
// Inline function 'kotlinx.io.shr' call
|
|
1575
1575
|
if (b0 >> 4 === -2) {
|
|
1576
1576
|
var tmp_0 = index;
|
|
1577
|
-
var
|
|
1577
|
+
var tmp2_0 = index;
|
|
1578
1578
|
var tmp$ret$19;
|
|
1579
1579
|
$l$block_4: {
|
|
1580
1580
|
// Inline function 'kotlinx.io.internal.process3Utf8Bytes' call
|
|
1581
|
-
if (endIndex <= (
|
|
1581
|
+
if (endIndex <= (tmp2_0 + 2 | 0)) {
|
|
1582
1582
|
var c_5 = numberToChar(65533);
|
|
1583
1583
|
var _unary__edvuaz_6 = length;
|
|
1584
1584
|
length = _unary__edvuaz_6 + 1 | 0;
|
|
1585
1585
|
chars[_unary__edvuaz_6] = c_5;
|
|
1586
1586
|
var tmp_1;
|
|
1587
|
-
if (endIndex <= (
|
|
1587
|
+
if (endIndex <= (tmp2_0 + 1 | 0)) {
|
|
1588
1588
|
tmp_1 = true;
|
|
1589
1589
|
} else {
|
|
1590
1590
|
// Inline function 'kotlinx.io.internal.isUtf8Continuation' call
|
|
1591
1591
|
// Inline function 'kotlinx.io.and' call
|
|
1592
|
-
tmp_1 = !((_this__u8e3s4[
|
|
1592
|
+
tmp_1 = !((_this__u8e3s4[tmp2_0 + 1 | 0] & 192) === 128);
|
|
1593
1593
|
}
|
|
1594
1594
|
if (tmp_1) {
|
|
1595
1595
|
tmp$ret$19 = 1;
|
|
@@ -1599,8 +1599,8 @@ function commonToUtf8String(_this__u8e3s4, beginIndex, endIndex) {
|
|
|
1599
1599
|
break $l$block_4;
|
|
1600
1600
|
}
|
|
1601
1601
|
}
|
|
1602
|
-
var b0_1 = _this__u8e3s4[
|
|
1603
|
-
var b1_0 = _this__u8e3s4[
|
|
1602
|
+
var b0_1 = _this__u8e3s4[tmp2_0];
|
|
1603
|
+
var b1_0 = _this__u8e3s4[tmp2_0 + 1 | 0];
|
|
1604
1604
|
// Inline function 'kotlinx.io.internal.isUtf8Continuation' call
|
|
1605
1605
|
// Inline function 'kotlinx.io.and' call
|
|
1606
1606
|
if (!((b1_0 & 192) === 128)) {
|
|
@@ -1611,7 +1611,7 @@ function commonToUtf8String(_this__u8e3s4, beginIndex, endIndex) {
|
|
|
1611
1611
|
tmp$ret$19 = 1;
|
|
1612
1612
|
break $l$block_4;
|
|
1613
1613
|
}
|
|
1614
|
-
var b2 = _this__u8e3s4[
|
|
1614
|
+
var b2 = _this__u8e3s4[tmp2_0 + 2 | 0];
|
|
1615
1615
|
// Inline function 'kotlinx.io.internal.isUtf8Continuation' call
|
|
1616
1616
|
// Inline function 'kotlinx.io.and' call
|
|
1617
1617
|
if (!((b2 & 192) === 128)) {
|
|
@@ -1646,11 +1646,11 @@ function commonToUtf8String(_this__u8e3s4, beginIndex, endIndex) {
|
|
|
1646
1646
|
// Inline function 'kotlinx.io.shr' call
|
|
1647
1647
|
if (b0 >> 3 === -2) {
|
|
1648
1648
|
var tmp_2 = index;
|
|
1649
|
-
var
|
|
1649
|
+
var tmp2_1 = index;
|
|
1650
1650
|
var tmp$ret$41;
|
|
1651
1651
|
$l$block_10: {
|
|
1652
1652
|
// Inline function 'kotlinx.io.internal.process4Utf8Bytes' call
|
|
1653
|
-
if (endIndex <= (
|
|
1653
|
+
if (endIndex <= (tmp2_1 + 3 | 0)) {
|
|
1654
1654
|
if (!(65533 === 65533)) {
|
|
1655
1655
|
var c_11 = numberToChar((65533 >>> 10 | 0) + 55232 | 0);
|
|
1656
1656
|
var _unary__edvuaz_12 = length;
|
|
@@ -1667,24 +1667,24 @@ function commonToUtf8String(_this__u8e3s4, beginIndex, endIndex) {
|
|
|
1667
1667
|
chars[_unary__edvuaz_14] = c_13;
|
|
1668
1668
|
}
|
|
1669
1669
|
var tmp_3;
|
|
1670
|
-
if (endIndex <= (
|
|
1670
|
+
if (endIndex <= (tmp2_1 + 1 | 0)) {
|
|
1671
1671
|
tmp_3 = true;
|
|
1672
1672
|
} else {
|
|
1673
1673
|
// Inline function 'kotlinx.io.internal.isUtf8Continuation' call
|
|
1674
1674
|
// Inline function 'kotlinx.io.and' call
|
|
1675
|
-
tmp_3 = !((_this__u8e3s4[
|
|
1675
|
+
tmp_3 = !((_this__u8e3s4[tmp2_1 + 1 | 0] & 192) === 128);
|
|
1676
1676
|
}
|
|
1677
1677
|
if (tmp_3) {
|
|
1678
1678
|
tmp$ret$41 = 1;
|
|
1679
1679
|
break $l$block_10;
|
|
1680
1680
|
} else {
|
|
1681
1681
|
var tmp_4;
|
|
1682
|
-
if (endIndex <= (
|
|
1682
|
+
if (endIndex <= (tmp2_1 + 2 | 0)) {
|
|
1683
1683
|
tmp_4 = true;
|
|
1684
1684
|
} else {
|
|
1685
1685
|
// Inline function 'kotlinx.io.internal.isUtf8Continuation' call
|
|
1686
1686
|
// Inline function 'kotlinx.io.and' call
|
|
1687
|
-
tmp_4 = !((_this__u8e3s4[
|
|
1687
|
+
tmp_4 = !((_this__u8e3s4[tmp2_1 + 2 | 0] & 192) === 128);
|
|
1688
1688
|
}
|
|
1689
1689
|
if (tmp_4) {
|
|
1690
1690
|
tmp$ret$41 = 2;
|
|
@@ -1695,8 +1695,8 @@ function commonToUtf8String(_this__u8e3s4, beginIndex, endIndex) {
|
|
|
1695
1695
|
}
|
|
1696
1696
|
}
|
|
1697
1697
|
}
|
|
1698
|
-
var b0_2 = _this__u8e3s4[
|
|
1699
|
-
var b1_1 = _this__u8e3s4[
|
|
1698
|
+
var b0_2 = _this__u8e3s4[tmp2_1];
|
|
1699
|
+
var b1_1 = _this__u8e3s4[tmp2_1 + 1 | 0];
|
|
1700
1700
|
// Inline function 'kotlinx.io.internal.isUtf8Continuation' call
|
|
1701
1701
|
// Inline function 'kotlinx.io.and' call
|
|
1702
1702
|
if (!((b1_1 & 192) === 128)) {
|
|
@@ -1718,7 +1718,7 @@ function commonToUtf8String(_this__u8e3s4, beginIndex, endIndex) {
|
|
|
1718
1718
|
tmp$ret$41 = 1;
|
|
1719
1719
|
break $l$block_10;
|
|
1720
1720
|
}
|
|
1721
|
-
var b2_0 = _this__u8e3s4[
|
|
1721
|
+
var b2_0 = _this__u8e3s4[tmp2_1 + 2 | 0];
|
|
1722
1722
|
// Inline function 'kotlinx.io.internal.isUtf8Continuation' call
|
|
1723
1723
|
// Inline function 'kotlinx.io.and' call
|
|
1724
1724
|
if (!((b2_0 & 192) === 128)) {
|
|
@@ -1740,7 +1740,7 @@ function commonToUtf8String(_this__u8e3s4, beginIndex, endIndex) {
|
|
|
1740
1740
|
tmp$ret$41 = 2;
|
|
1741
1741
|
break $l$block_10;
|
|
1742
1742
|
}
|
|
1743
|
-
var b3 = _this__u8e3s4[
|
|
1743
|
+
var b3 = _this__u8e3s4[tmp2_1 + 3 | 0];
|
|
1744
1744
|
// Inline function 'kotlinx.io.internal.isUtf8Continuation' call
|
|
1745
1745
|
// Inline function 'kotlinx.io.and' call
|
|
1746
1746
|
if (!((b3 & 192) === 128)) {
|
|
@@ -1863,27 +1863,27 @@ function UnsafeBufferOperations_getInstance() {
|
|
|
1863
1863
|
}
|
|
1864
1864
|
function SegmentReadContextImpl$1() {
|
|
1865
1865
|
}
|
|
1866
|
-
protoOf(SegmentReadContextImpl$1).
|
|
1867
|
-
return segment.
|
|
1866
|
+
protoOf(SegmentReadContextImpl$1).j1o = function (segment, offset) {
|
|
1867
|
+
return segment.i1n(offset);
|
|
1868
1868
|
};
|
|
1869
1869
|
function SegmentWriteContextImpl$1() {
|
|
1870
1870
|
}
|
|
1871
|
-
protoOf(SegmentWriteContextImpl$1).
|
|
1872
|
-
segment.
|
|
1871
|
+
protoOf(SegmentWriteContextImpl$1).j1p = function (segment, offset, value) {
|
|
1872
|
+
segment.c1p(offset, value);
|
|
1873
1873
|
};
|
|
1874
|
-
protoOf(SegmentWriteContextImpl$1).
|
|
1875
|
-
segment.
|
|
1874
|
+
protoOf(SegmentWriteContextImpl$1).i1p = function (segment, offset, b0, b1) {
|
|
1875
|
+
segment.d1p(offset, b0, b1);
|
|
1876
1876
|
};
|
|
1877
|
-
protoOf(SegmentWriteContextImpl$1).
|
|
1878
|
-
segment.
|
|
1877
|
+
protoOf(SegmentWriteContextImpl$1).h1p = function (segment, offset, b0, b1, b2) {
|
|
1878
|
+
segment.e1p(offset, b0, b1, b2);
|
|
1879
1879
|
};
|
|
1880
|
-
protoOf(SegmentWriteContextImpl$1).
|
|
1881
|
-
segment.
|
|
1880
|
+
protoOf(SegmentWriteContextImpl$1).g1p = function (segment, offset, b0, b1, b2, b3) {
|
|
1881
|
+
segment.f1p(offset, b0, b1, b2, b3);
|
|
1882
1882
|
};
|
|
1883
1883
|
function BufferIterationContextImpl$1() {
|
|
1884
1884
|
}
|
|
1885
|
-
protoOf(BufferIterationContextImpl$1).
|
|
1886
|
-
return get_SegmentReadContextImpl().
|
|
1885
|
+
protoOf(BufferIterationContextImpl$1).j1o = function (segment, offset) {
|
|
1886
|
+
return get_SegmentReadContextImpl().j1o(segment, offset);
|
|
1887
1887
|
};
|
|
1888
1888
|
var properties_initialized_UnsafeBufferOperations_kt_2xfgoc;
|
|
1889
1889
|
function _init_properties_UnsafeBufferOperations_kt__xw75gy() {
|
|
@@ -1951,15 +1951,15 @@ function EOFException() {
|
|
|
1951
1951
|
captureStack(this, EOFException);
|
|
1952
1952
|
}
|
|
1953
1953
|
function SegmentPool() {
|
|
1954
|
-
this.
|
|
1955
|
-
this.
|
|
1954
|
+
this.t1n_1 = 0;
|
|
1955
|
+
this.u1n_1 = 0;
|
|
1956
1956
|
}
|
|
1957
|
-
protoOf(SegmentPool).
|
|
1958
|
-
return Companion_instance.
|
|
1957
|
+
protoOf(SegmentPool).v1n = function () {
|
|
1958
|
+
return Companion_instance.x1o();
|
|
1959
1959
|
};
|
|
1960
|
-
protoOf(SegmentPool).
|
|
1960
|
+
protoOf(SegmentPool).k1o = function (segment) {
|
|
1961
1961
|
};
|
|
1962
|
-
protoOf(SegmentPool).
|
|
1962
|
+
protoOf(SegmentPool).z1o = function () {
|
|
1963
1963
|
return AlwaysSharedCopyTracker_getInstance();
|
|
1964
1964
|
};
|
|
1965
1965
|
var SegmentPool_instance;
|
|
@@ -1967,9 +1967,9 @@ function SegmentPool_getInstance() {
|
|
|
1967
1967
|
return SegmentPool_instance;
|
|
1968
1968
|
}
|
|
1969
1969
|
//region block: post-declaration
|
|
1970
|
-
protoOf(Buffer).
|
|
1971
|
-
protoOf(Buffer).
|
|
1972
|
-
protoOf(RealSource).
|
|
1970
|
+
protoOf(Buffer).m1n = readAtMostTo$default;
|
|
1971
|
+
protoOf(Buffer).z1n = write$default;
|
|
1972
|
+
protoOf(RealSource).m1n = readAtMostTo$default;
|
|
1973
1973
|
//endregion
|
|
1974
1974
|
//region block: init
|
|
1975
1975
|
Companion_instance = new Companion();
|
|
@@ -1978,11 +1978,11 @@ SegmentPool_instance = new SegmentPool();
|
|
|
1978
1978
|
//endregion
|
|
1979
1979
|
//region block: exports
|
|
1980
1980
|
export {
|
|
1981
|
-
EOFException_init_$Create$_0 as EOFException_init_$Create$
|
|
1982
|
-
IOException_init_$Init$_0 as IOException_init_$Init$
|
|
1983
|
-
IOException_init_$Create$_0 as IOException_init_$Create$
|
|
1984
|
-
IOException_init_$Init$_1 as IOException_init_$Init$
|
|
1985
|
-
IOException_init_$Create$_1 as IOException_init_$Create$
|
|
1981
|
+
EOFException_init_$Create$_0 as EOFException_init_$Create$2ki37nn86l2yt,
|
|
1982
|
+
IOException_init_$Init$_0 as IOException_init_$Init$3tijvyh8jladu,
|
|
1983
|
+
IOException_init_$Create$_0 as IOException_init_$Create$1wkk79fgwuoz2,
|
|
1984
|
+
IOException_init_$Init$_1 as IOException_init_$Init$1s6rw4r2mxxsm,
|
|
1985
|
+
IOException_init_$Create$_1 as IOException_init_$Create$2jyze3554lamk,
|
|
1986
1986
|
Buffer as Buffergs925ekssbch,
|
|
1987
1987
|
IOException as IOException1wyutdmfe71nu,
|
|
1988
1988
|
Source as Source1shr0ps16u4p4,
|