@doordeck/doordeck-headless-sdk 0.187.0 → 0.189.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/kotlin/Kermit-kermit-core.js +56 -56
- package/kotlin/Kermit-kermit.js +7 -7
- package/kotlin/KotlinMultiplatformLibsodium-multiplatform-crypto-libsodium-bindings.js +42 -42
- package/kotlin/MultiplatformSettings-multiplatform-settings.js +22 -22
- package/kotlin/doordeck-sdk.d.ts +37 -37
- package/kotlin/doordeck-sdk.js +12308 -12323
- package/kotlin/kotlin-kotlin-stdlib.js +2495 -2458
- package/kotlin/kotlinx-atomicfu.js +20 -21
- package/kotlin/kotlinx-coroutines-core.js +2292 -2310
- package/kotlin/kotlinx-io-kotlinx-io-bytestring.js +43 -43
- package/kotlin/kotlinx-io-kotlinx-io-core.js +582 -588
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +1826 -1831
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +1465 -1468
- package/kotlin/ktor-ktor-client-auth.js +444 -444
- package/kotlin/ktor-ktor-client-content-negotiation.js +203 -203
- package/kotlin/ktor-ktor-client-core.js +3109 -3111
- package/kotlin/ktor-ktor-client-logging.js +1118 -1119
- package/kotlin/ktor-ktor-events.js +11 -11
- package/kotlin/ktor-ktor-http-cio.js +537 -539
- package/kotlin/ktor-ktor-http.js +778 -778
- package/kotlin/ktor-ktor-io.js +1106 -1109
- package/kotlin/ktor-ktor-serialization-kotlinx-json.js +6 -6
- package/kotlin/ktor-ktor-serialization-kotlinx.js +246 -246
- package/kotlin/ktor-ktor-serialization.js +120 -120
- package/kotlin/ktor-ktor-utils.js +857 -857
- package/kotlin/ktor-ktor-websockets.js +48 -48
- package/package.json +1 -1
|
@@ -3,45 +3,42 @@
|
|
|
3
3
|
//region block: imports
|
|
4
4
|
var imul = Math.imul;
|
|
5
5
|
var IndexOutOfBoundsException_init_$Create$ = kotlin_kotlin.$_$.u1;
|
|
6
|
-
var Long = kotlin_kotlin.$_$.wf;
|
|
7
|
-
var compare = kotlin_kotlin.$_$.s9;
|
|
8
6
|
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.n1;
|
|
9
|
-
var subtract = kotlin_kotlin.$_$.
|
|
7
|
+
var subtract = kotlin_kotlin.$_$.da;
|
|
10
8
|
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.f2;
|
|
11
|
-
var charArrayOf = kotlin_kotlin.$_$.
|
|
12
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
13
|
-
var
|
|
14
|
-
var toString = kotlin_kotlin.$_$.fc;
|
|
9
|
+
var charArrayOf = kotlin_kotlin.$_$.ka;
|
|
10
|
+
var protoOf = kotlin_kotlin.$_$.xb;
|
|
11
|
+
var toString = kotlin_kotlin.$_$.ac;
|
|
15
12
|
var Unit_instance = kotlin_kotlin.$_$.b5;
|
|
16
|
-
var toShort = kotlin_kotlin.$_$.
|
|
13
|
+
var toShort = kotlin_kotlin.$_$.zb;
|
|
17
14
|
var add = kotlin_kotlin.$_$.p9;
|
|
18
|
-
var ensureNotNull = kotlin_kotlin.$_$.
|
|
19
|
-
var fromInt = kotlin_kotlin.$_$.
|
|
20
|
-
var convertToInt = kotlin_kotlin.$_$.
|
|
15
|
+
var ensureNotNull = kotlin_kotlin.$_$.ng;
|
|
16
|
+
var fromInt = kotlin_kotlin.$_$.u9;
|
|
17
|
+
var convertToInt = kotlin_kotlin.$_$.r9;
|
|
21
18
|
var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.c1;
|
|
22
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
19
|
+
var initMetadataForClass = kotlin_kotlin.$_$.ab;
|
|
23
20
|
var VOID = kotlin_kotlin.$_$.b;
|
|
24
21
|
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.r1;
|
|
25
22
|
var UnsafeByteStringOperations_instance = kotlin_org_jetbrains_kotlinx_kotlinx_io_bytestring.$_$.b;
|
|
26
|
-
var AutoCloseable = kotlin_kotlin.$_$.
|
|
27
|
-
var objectCreate = kotlin_kotlin.$_$.
|
|
28
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.
|
|
23
|
+
var AutoCloseable = kotlin_kotlin.$_$.ff;
|
|
24
|
+
var objectCreate = kotlin_kotlin.$_$.wb;
|
|
25
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.bb;
|
|
29
26
|
var arrayCopy = kotlin_kotlin.$_$.t5;
|
|
30
|
-
var toByte = kotlin_kotlin.$_$.
|
|
27
|
+
var toByte = kotlin_kotlin.$_$.yb;
|
|
31
28
|
var IllegalArgumentException_init_$Create$_0 = kotlin_kotlin.$_$.l1;
|
|
32
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
33
|
-
var initMetadataForInterface = kotlin_kotlin.$_$.
|
|
34
|
-
var multiply = kotlin_kotlin.$_$.
|
|
35
|
-
var charCodeAt = kotlin_kotlin.$_$.
|
|
29
|
+
var initMetadataForObject = kotlin_kotlin.$_$.gb;
|
|
30
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.eb;
|
|
31
|
+
var multiply = kotlin_kotlin.$_$.y9;
|
|
32
|
+
var charCodeAt = kotlin_kotlin.$_$.ma;
|
|
36
33
|
var Char__toInt_impl_vasixd = kotlin_kotlin.$_$.l2;
|
|
37
|
-
var charArray = kotlin_kotlin.$_$.
|
|
38
|
-
var numberToChar = kotlin_kotlin.$_$.
|
|
39
|
-
var concatToString = kotlin_kotlin.$_$.
|
|
34
|
+
var charArray = kotlin_kotlin.$_$.la;
|
|
35
|
+
var numberToChar = kotlin_kotlin.$_$.vb;
|
|
36
|
+
var concatToString = kotlin_kotlin.$_$.yc;
|
|
40
37
|
var Exception_init_$Init$ = kotlin_kotlin.$_$.g1;
|
|
41
|
-
var captureStack = kotlin_kotlin.$_$.
|
|
38
|
+
var captureStack = kotlin_kotlin.$_$.ja;
|
|
42
39
|
var Exception_init_$Init$_0 = kotlin_kotlin.$_$.h1;
|
|
43
40
|
var Exception_init_$Init$_1 = kotlin_kotlin.$_$.j1;
|
|
44
|
-
var Exception = kotlin_kotlin.$_$.
|
|
41
|
+
var Exception = kotlin_kotlin.$_$.of;
|
|
45
42
|
//endregion
|
|
46
43
|
//region block: pre-declaration
|
|
47
44
|
initMetadataForInterface(Source, 'Source', VOID, VOID, [AutoCloseable]);
|
|
@@ -50,10 +47,10 @@
|
|
|
50
47
|
endIndex = endIndex === VOID ? source.length : endIndex;
|
|
51
48
|
var tmp;
|
|
52
49
|
if ($super === VOID) {
|
|
53
|
-
this.
|
|
50
|
+
this.cq(source, startIndex, endIndex);
|
|
54
51
|
tmp = Unit_instance;
|
|
55
52
|
} else {
|
|
56
|
-
tmp = $super.
|
|
53
|
+
tmp = $super.cq.call(this, source, startIndex, endIndex);
|
|
57
54
|
}
|
|
58
55
|
return tmp;
|
|
59
56
|
}
|
|
@@ -80,16 +77,16 @@
|
|
|
80
77
|
var HEX_DIGIT_CHARS;
|
|
81
78
|
function checkBounds(size, startIndex, endIndex) {
|
|
82
79
|
_init_properties__Util_kt__g8tcl9();
|
|
83
|
-
if (
|
|
80
|
+
if (startIndex < 0n || endIndex > size) {
|
|
84
81
|
throw IndexOutOfBoundsException_init_$Create$('startIndex (' + startIndex.toString() + ') and endIndex (' + endIndex.toString() + ') are not within the range [0..size(' + size.toString() + '))');
|
|
85
82
|
}
|
|
86
|
-
if (
|
|
83
|
+
if (startIndex > endIndex) {
|
|
87
84
|
throw IllegalArgumentException_init_$Create$('startIndex (' + startIndex.toString() + ') > endIndex (' + endIndex.toString() + ')');
|
|
88
85
|
}
|
|
89
86
|
}
|
|
90
87
|
function checkOffsetAndCount(size, offset, byteCount) {
|
|
91
88
|
_init_properties__Util_kt__g8tcl9();
|
|
92
|
-
if (
|
|
89
|
+
if (offset < 0n || offset > size || subtract(size, offset) < byteCount || byteCount < 0n) {
|
|
93
90
|
throw IllegalArgumentException_init_$Create$('offset (' + offset.toString() + ') and byteCount (' + byteCount.toString() + ') are not within the range [0..size(' + size.toString() + '))');
|
|
94
91
|
}
|
|
95
92
|
}
|
|
@@ -105,192 +102,191 @@
|
|
|
105
102
|
throw EOFException_init_$Create$_0("Buffer doesn't contain required number of bytes (size: " + $this.l1().toString() + ', required: ' + byteCount.toString() + ')');
|
|
106
103
|
}
|
|
107
104
|
function Buffer() {
|
|
108
|
-
this.
|
|
109
|
-
this.
|
|
110
|
-
this.
|
|
105
|
+
this.po_1 = null;
|
|
106
|
+
this.qo_1 = null;
|
|
107
|
+
this.ro_1 = 0n;
|
|
111
108
|
}
|
|
112
109
|
protoOf(Buffer).l1 = function () {
|
|
113
|
-
return this.
|
|
110
|
+
return this.ro_1;
|
|
114
111
|
};
|
|
115
|
-
protoOf(Buffer).
|
|
112
|
+
protoOf(Buffer).so = function () {
|
|
116
113
|
return this;
|
|
117
114
|
};
|
|
118
|
-
protoOf(Buffer).
|
|
119
|
-
return
|
|
115
|
+
protoOf(Buffer).to = function () {
|
|
116
|
+
return this.l1() === 0n;
|
|
120
117
|
};
|
|
121
|
-
protoOf(Buffer).
|
|
118
|
+
protoOf(Buffer).uo = function (byteCount) {
|
|
122
119
|
// Inline function 'kotlin.require' call
|
|
123
|
-
if (!(
|
|
120
|
+
if (!(byteCount >= 0n)) {
|
|
124
121
|
var message = 'byteCount: ' + byteCount.toString();
|
|
125
122
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
126
123
|
}
|
|
127
|
-
if (
|
|
124
|
+
if (this.l1() < byteCount) {
|
|
128
125
|
throw EOFException_init_$Create$_0("Buffer doesn't contain required number of bytes (size: " + this.l1().toString() + ', required: ' + byteCount.toString() + ')');
|
|
129
126
|
}
|
|
130
127
|
};
|
|
131
|
-
protoOf(Buffer).
|
|
128
|
+
protoOf(Buffer).vo = function (byteCount) {
|
|
132
129
|
// Inline function 'kotlin.require' call
|
|
133
|
-
if (!(
|
|
130
|
+
if (!(byteCount >= 0n)) {
|
|
134
131
|
var message = 'byteCount: ' + byteCount.toString() + ' < 0';
|
|
135
132
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
136
133
|
}
|
|
137
|
-
return
|
|
134
|
+
return this.l1() >= byteCount;
|
|
138
135
|
};
|
|
139
|
-
protoOf(Buffer).
|
|
140
|
-
var tmp0_elvis_lhs = this.
|
|
136
|
+
protoOf(Buffer).wo = function () {
|
|
137
|
+
var tmp0_elvis_lhs = this.po_1;
|
|
141
138
|
var tmp;
|
|
142
139
|
if (tmp0_elvis_lhs == null) {
|
|
143
|
-
throwEof(this,
|
|
140
|
+
throwEof(this, 1n);
|
|
144
141
|
} else {
|
|
145
142
|
tmp = tmp0_elvis_lhs;
|
|
146
143
|
}
|
|
147
144
|
var segment = tmp;
|
|
148
145
|
var segmentSize = segment.l1();
|
|
149
146
|
if (segmentSize === 0) {
|
|
150
|
-
this.
|
|
151
|
-
return this.
|
|
147
|
+
this.ep();
|
|
148
|
+
return this.wo();
|
|
152
149
|
}
|
|
153
|
-
var v = segment.
|
|
154
|
-
this.
|
|
150
|
+
var v = segment.fp();
|
|
151
|
+
this.ro_1 = subtract(this.ro_1, 1n);
|
|
155
152
|
if (segmentSize === 1) {
|
|
156
|
-
this.
|
|
153
|
+
this.ep();
|
|
157
154
|
}
|
|
158
155
|
return v;
|
|
159
156
|
};
|
|
160
|
-
protoOf(Buffer).
|
|
161
|
-
var tmp0_elvis_lhs = this.
|
|
157
|
+
protoOf(Buffer).gp = function () {
|
|
158
|
+
var tmp0_elvis_lhs = this.po_1;
|
|
162
159
|
var tmp;
|
|
163
160
|
if (tmp0_elvis_lhs == null) {
|
|
164
|
-
throwEof(this,
|
|
161
|
+
throwEof(this, 2n);
|
|
165
162
|
} else {
|
|
166
163
|
tmp = tmp0_elvis_lhs;
|
|
167
164
|
}
|
|
168
165
|
var segment = tmp;
|
|
169
166
|
var segmentSize = segment.l1();
|
|
170
167
|
if (segmentSize < 2) {
|
|
171
|
-
this.
|
|
168
|
+
this.uo(2n);
|
|
172
169
|
if (segmentSize === 0) {
|
|
173
|
-
this.
|
|
174
|
-
return this.
|
|
170
|
+
this.ep();
|
|
171
|
+
return this.gp();
|
|
175
172
|
}
|
|
176
173
|
// Inline function 'kotlinx.io.and' call
|
|
177
|
-
var tmp_0 = (this.
|
|
174
|
+
var tmp_0 = (this.wo() & 255) << 8;
|
|
178
175
|
// Inline function 'kotlinx.io.and' call
|
|
179
|
-
var tmp$ret$1 = this.
|
|
176
|
+
var tmp$ret$1 = this.wo() & 255;
|
|
180
177
|
return toShort(tmp_0 | tmp$ret$1);
|
|
181
178
|
}
|
|
182
|
-
var v = segment.
|
|
183
|
-
this.
|
|
179
|
+
var v = segment.hp();
|
|
180
|
+
this.ro_1 = subtract(this.ro_1, 2n);
|
|
184
181
|
if (segmentSize === 2) {
|
|
185
|
-
this.
|
|
182
|
+
this.ep();
|
|
186
183
|
}
|
|
187
184
|
return v;
|
|
188
185
|
};
|
|
189
|
-
protoOf(Buffer).
|
|
186
|
+
protoOf(Buffer).ip = function () {
|
|
190
187
|
return Unit_instance;
|
|
191
188
|
};
|
|
192
|
-
protoOf(Buffer).
|
|
189
|
+
protoOf(Buffer).jp = function (out, startIndex, endIndex) {
|
|
193
190
|
checkBounds(this.l1(), startIndex, endIndex);
|
|
194
|
-
if (
|
|
191
|
+
if (startIndex === endIndex)
|
|
195
192
|
return Unit_instance;
|
|
196
193
|
var currentOffset = startIndex;
|
|
197
194
|
var remainingByteCount = subtract(endIndex, startIndex);
|
|
198
|
-
out.
|
|
199
|
-
var s = this.
|
|
200
|
-
while (
|
|
201
|
-
currentOffset = subtract(currentOffset, fromInt(s.
|
|
202
|
-
s = s.
|
|
203
|
-
}
|
|
204
|
-
while (
|
|
205
|
-
var copy = ensureNotNull(s).
|
|
206
|
-
copy.
|
|
195
|
+
out.ro_1 = add(out.ro_1, remainingByteCount);
|
|
196
|
+
var s = this.po_1;
|
|
197
|
+
while (currentOffset >= fromInt(ensureNotNull(s).zo_1 - s.yo_1 | 0)) {
|
|
198
|
+
currentOffset = subtract(currentOffset, fromInt(s.zo_1 - s.yo_1 | 0));
|
|
199
|
+
s = s.cp_1;
|
|
200
|
+
}
|
|
201
|
+
while (remainingByteCount > 0n) {
|
|
202
|
+
var copy = ensureNotNull(s).kp();
|
|
203
|
+
copy.yo_1 = copy.yo_1 + convertToInt(currentOffset) | 0;
|
|
207
204
|
var tmp = copy;
|
|
208
|
-
var tmp0 = copy.
|
|
205
|
+
var tmp0 = copy.yo_1 + convertToInt(remainingByteCount) | 0;
|
|
209
206
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
210
|
-
var b = copy.
|
|
211
|
-
tmp.
|
|
207
|
+
var b = copy.zo_1;
|
|
208
|
+
tmp.zo_1 = Math.min(tmp0, b);
|
|
212
209
|
// Inline function 'kotlinx.io.Buffer.pushSegment' call
|
|
213
|
-
if (out.
|
|
214
|
-
out.
|
|
215
|
-
out.
|
|
210
|
+
if (out.po_1 == null) {
|
|
211
|
+
out.po_1 = copy;
|
|
212
|
+
out.qo_1 = copy;
|
|
216
213
|
} else if (false) {
|
|
217
|
-
out.
|
|
218
|
-
if (ensureNotNull(out.
|
|
219
|
-
out.
|
|
214
|
+
out.qo_1 = ensureNotNull(out.qo_1).lp(copy).mp();
|
|
215
|
+
if (ensureNotNull(out.qo_1).dp_1 == null) {
|
|
216
|
+
out.po_1 = out.qo_1;
|
|
220
217
|
}
|
|
221
218
|
} else {
|
|
222
|
-
out.
|
|
219
|
+
out.qo_1 = ensureNotNull(out.qo_1).lp(copy);
|
|
223
220
|
}
|
|
224
|
-
remainingByteCount = subtract(remainingByteCount, fromInt(copy.
|
|
225
|
-
currentOffset =
|
|
226
|
-
s = s.
|
|
221
|
+
remainingByteCount = subtract(remainingByteCount, fromInt(copy.zo_1 - copy.yo_1 | 0));
|
|
222
|
+
currentOffset = 0n;
|
|
223
|
+
s = s.cp_1;
|
|
227
224
|
}
|
|
228
225
|
};
|
|
229
|
-
protoOf(Buffer).
|
|
226
|
+
protoOf(Buffer).np = function () {
|
|
230
227
|
var result = this.l1();
|
|
231
|
-
if (
|
|
232
|
-
return
|
|
233
|
-
var tail = ensureNotNull(this.
|
|
234
|
-
if (tail.
|
|
235
|
-
result = subtract(result, fromInt(tail.
|
|
228
|
+
if (result === 0n)
|
|
229
|
+
return 0n;
|
|
230
|
+
var tail = ensureNotNull(this.qo_1);
|
|
231
|
+
if (tail.zo_1 < 8192 && tail.bp_1) {
|
|
232
|
+
result = subtract(result, fromInt(tail.zo_1 - tail.yo_1 | 0));
|
|
236
233
|
}
|
|
237
234
|
return result;
|
|
238
235
|
};
|
|
239
|
-
protoOf(Buffer).
|
|
240
|
-
if (
|
|
236
|
+
protoOf(Buffer).op = function (position) {
|
|
237
|
+
if (position < 0n || position >= this.l1()) {
|
|
241
238
|
throw IndexOutOfBoundsException_init_$Create$('position (' + position.toString() + ') is not within the range [0..size(' + this.l1().toString() + '))');
|
|
242
239
|
}
|
|
243
|
-
if (
|
|
244
|
-
return ensureNotNull(this.
|
|
240
|
+
if (position === 0n) {
|
|
241
|
+
return ensureNotNull(this.po_1).pp(0);
|
|
245
242
|
}
|
|
246
243
|
// Inline function 'kotlinx.io.seek' call
|
|
247
|
-
if (this.
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
var
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
if (compare(offset_0, position) <= 0)
|
|
244
|
+
if (this.po_1 == null) {
|
|
245
|
+
return ensureNotNull(null).pp(convertToInt(subtract(position, -1n)));
|
|
246
|
+
}
|
|
247
|
+
if (subtract(this.l1(), position) < position) {
|
|
248
|
+
var s = this.qo_1;
|
|
249
|
+
var offset = this.l1();
|
|
250
|
+
$l$loop: while (!(s == null) && offset > position) {
|
|
251
|
+
offset = subtract(offset, fromInt(s.zo_1 - s.yo_1 | 0));
|
|
252
|
+
if (offset <= position)
|
|
257
253
|
break $l$loop;
|
|
258
|
-
s = s.
|
|
254
|
+
s = s.dp_1;
|
|
259
255
|
}
|
|
260
256
|
var tmp0 = s;
|
|
261
|
-
var
|
|
262
|
-
return ensureNotNull(tmp0).
|
|
257
|
+
var offset_0 = offset;
|
|
258
|
+
return ensureNotNull(tmp0).pp(convertToInt(subtract(position, offset_0)));
|
|
263
259
|
} else {
|
|
264
|
-
var s_0 = this.
|
|
265
|
-
var
|
|
260
|
+
var s_0 = this.po_1;
|
|
261
|
+
var offset_1 = 0n;
|
|
266
262
|
$l$loop_0: while (!(s_0 == null)) {
|
|
267
|
-
var tmp0_0 =
|
|
263
|
+
var tmp0_0 = offset_1;
|
|
268
264
|
// Inline function 'kotlin.Long.plus' call
|
|
269
|
-
var other = s_0.
|
|
265
|
+
var other = s_0.zo_1 - s_0.yo_1 | 0;
|
|
270
266
|
var nextOffset = add(tmp0_0, fromInt(other));
|
|
271
|
-
if (
|
|
267
|
+
if (nextOffset > position)
|
|
272
268
|
break $l$loop_0;
|
|
273
|
-
s_0 = s_0.
|
|
274
|
-
|
|
269
|
+
s_0 = s_0.cp_1;
|
|
270
|
+
offset_1 = nextOffset;
|
|
275
271
|
}
|
|
276
272
|
var tmp0_1 = s_0;
|
|
277
|
-
var
|
|
278
|
-
return ensureNotNull(tmp0_1).
|
|
273
|
+
var offset_2 = offset_1;
|
|
274
|
+
return ensureNotNull(tmp0_1).pp(convertToInt(subtract(position, offset_2)));
|
|
279
275
|
}
|
|
280
276
|
};
|
|
281
277
|
protoOf(Buffer).t2 = function () {
|
|
282
|
-
return this.
|
|
278
|
+
return this.qp(this.l1());
|
|
283
279
|
};
|
|
284
|
-
protoOf(Buffer).
|
|
280
|
+
protoOf(Buffer).qp = function (byteCount) {
|
|
285
281
|
// Inline function 'kotlinx.io.checkByteCount' call
|
|
286
282
|
// Inline function 'kotlin.require' call
|
|
287
|
-
if (!(
|
|
283
|
+
if (!(byteCount >= 0n)) {
|
|
288
284
|
var message = 'byteCount (' + byteCount.toString() + ') < 0';
|
|
289
285
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
290
286
|
}
|
|
291
287
|
var remainingByteCount = byteCount;
|
|
292
|
-
while (
|
|
293
|
-
var tmp0_elvis_lhs = this.
|
|
288
|
+
while (remainingByteCount > 0n) {
|
|
289
|
+
var tmp0_elvis_lhs = this.po_1;
|
|
294
290
|
var tmp;
|
|
295
291
|
if (tmp0_elvis_lhs == null) {
|
|
296
292
|
throw EOFException_init_$Create$_0('Buffer exhausted before skipping ' + byteCount.toString() + ' bytes.');
|
|
@@ -300,24 +296,24 @@
|
|
|
300
296
|
var head = tmp;
|
|
301
297
|
var tmp0 = remainingByteCount;
|
|
302
298
|
// Inline function 'kotlinx.io.minOf' call
|
|
303
|
-
var b = head.
|
|
299
|
+
var b = head.zo_1 - head.yo_1 | 0;
|
|
304
300
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
305
301
|
var b_0 = fromInt(b);
|
|
306
|
-
var tmp$ret$4 =
|
|
302
|
+
var tmp$ret$4 = tmp0 <= b_0 ? tmp0 : b_0;
|
|
307
303
|
var toSkip = convertToInt(tmp$ret$4);
|
|
308
|
-
this.
|
|
304
|
+
this.ro_1 = subtract(this.ro_1, fromInt(toSkip));
|
|
309
305
|
remainingByteCount = subtract(remainingByteCount, fromInt(toSkip));
|
|
310
|
-
head.
|
|
311
|
-
if (head.
|
|
312
|
-
this.
|
|
306
|
+
head.yo_1 = head.yo_1 + toSkip | 0;
|
|
307
|
+
if (head.yo_1 === head.zo_1) {
|
|
308
|
+
this.ep();
|
|
313
309
|
}
|
|
314
310
|
}
|
|
315
311
|
};
|
|
316
|
-
protoOf(Buffer).
|
|
312
|
+
protoOf(Buffer).rp = function (sink, startIndex, endIndex) {
|
|
317
313
|
// Inline function 'kotlinx.io.checkBounds' call
|
|
318
314
|
var size = sink.length;
|
|
319
315
|
checkBounds(fromInt(size), fromInt(startIndex), fromInt(endIndex));
|
|
320
|
-
var tmp0_elvis_lhs = this.
|
|
316
|
+
var tmp0_elvis_lhs = this.po_1;
|
|
321
317
|
var tmp;
|
|
322
318
|
if (tmp0_elvis_lhs == null) {
|
|
323
319
|
return -1;
|
|
@@ -329,196 +325,195 @@
|
|
|
329
325
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
330
326
|
var b = s.l1();
|
|
331
327
|
var toCopy = Math.min(tmp0, b);
|
|
332
|
-
s.
|
|
333
|
-
this.
|
|
328
|
+
s.sp(sink, startIndex, startIndex + toCopy | 0);
|
|
329
|
+
this.ro_1 = subtract(this.ro_1, fromInt(toCopy));
|
|
334
330
|
if (isEmpty(s)) {
|
|
335
|
-
this.
|
|
331
|
+
this.ep();
|
|
336
332
|
}
|
|
337
333
|
return toCopy;
|
|
338
334
|
};
|
|
339
|
-
protoOf(Buffer).
|
|
335
|
+
protoOf(Buffer).tp = function (sink, byteCount) {
|
|
340
336
|
// Inline function 'kotlinx.io.checkByteCount' call
|
|
341
337
|
// Inline function 'kotlin.require' call
|
|
342
|
-
if (!(
|
|
338
|
+
if (!(byteCount >= 0n)) {
|
|
343
339
|
var message = 'byteCount (' + byteCount.toString() + ') < 0';
|
|
344
340
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
345
341
|
}
|
|
346
|
-
if (
|
|
347
|
-
return
|
|
348
|
-
var bytesWritten =
|
|
349
|
-
sink.
|
|
342
|
+
if (this.l1() === 0n)
|
|
343
|
+
return -1n;
|
|
344
|
+
var bytesWritten = byteCount > this.l1() ? this.l1() : byteCount;
|
|
345
|
+
sink.up(this, bytesWritten);
|
|
350
346
|
return bytesWritten;
|
|
351
347
|
};
|
|
352
|
-
protoOf(Buffer).
|
|
348
|
+
protoOf(Buffer).vp = function (sink, byteCount) {
|
|
353
349
|
// Inline function 'kotlinx.io.checkByteCount' call
|
|
354
350
|
// Inline function 'kotlin.require' call
|
|
355
|
-
if (!(
|
|
351
|
+
if (!(byteCount >= 0n)) {
|
|
356
352
|
var message = 'byteCount (' + byteCount.toString() + ') < 0';
|
|
357
353
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
358
354
|
}
|
|
359
|
-
if (
|
|
360
|
-
sink.
|
|
355
|
+
if (this.l1() < byteCount) {
|
|
356
|
+
sink.up(this, this.l1());
|
|
361
357
|
throw EOFException_init_$Create$_0('Buffer exhausted before writing ' + byteCount.toString() + ' bytes. Only ' + this.l1().toString() + ' bytes were written.');
|
|
362
358
|
}
|
|
363
|
-
sink.
|
|
359
|
+
sink.up(this, byteCount);
|
|
364
360
|
};
|
|
365
|
-
protoOf(Buffer).
|
|
361
|
+
protoOf(Buffer).wp = function (sink) {
|
|
366
362
|
var byteCount = this.l1();
|
|
367
|
-
if (
|
|
368
|
-
sink.
|
|
363
|
+
if (byteCount > 0n) {
|
|
364
|
+
sink.up(this, byteCount);
|
|
369
365
|
}
|
|
370
366
|
return byteCount;
|
|
371
367
|
};
|
|
372
|
-
protoOf(Buffer).
|
|
368
|
+
protoOf(Buffer).xp = function () {
|
|
373
369
|
return buffered(new PeekSource(this));
|
|
374
370
|
};
|
|
375
|
-
protoOf(Buffer).
|
|
371
|
+
protoOf(Buffer).yp = function (minimumCapacity) {
|
|
376
372
|
// Inline function 'kotlin.require' call
|
|
377
373
|
if (!(minimumCapacity >= 1 && minimumCapacity <= 8192)) {
|
|
378
374
|
var message = 'unexpected capacity (' + minimumCapacity + '), should be in range [1, 8192]';
|
|
379
375
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
380
376
|
}
|
|
381
|
-
if (this.
|
|
382
|
-
var result = SegmentPool_instance.
|
|
383
|
-
this.
|
|
384
|
-
this.
|
|
377
|
+
if (this.qo_1 == null) {
|
|
378
|
+
var result = SegmentPool_instance.bq();
|
|
379
|
+
this.po_1 = result;
|
|
380
|
+
this.qo_1 = result;
|
|
385
381
|
return result;
|
|
386
382
|
}
|
|
387
|
-
var t = ensureNotNull(this.
|
|
388
|
-
if ((t.
|
|
389
|
-
var newTail = t.
|
|
390
|
-
this.
|
|
383
|
+
var t = ensureNotNull(this.qo_1);
|
|
384
|
+
if ((t.zo_1 + minimumCapacity | 0) > 8192 || !t.bp_1) {
|
|
385
|
+
var newTail = t.lp(SegmentPool_instance.bq());
|
|
386
|
+
this.qo_1 = newTail;
|
|
391
387
|
return newTail;
|
|
392
388
|
}
|
|
393
389
|
return t;
|
|
394
390
|
};
|
|
395
|
-
protoOf(Buffer).
|
|
391
|
+
protoOf(Buffer).cq = function (source, startIndex, endIndex) {
|
|
396
392
|
// Inline function 'kotlinx.io.checkBounds' call
|
|
397
393
|
var size = source.length;
|
|
398
394
|
checkBounds(fromInt(size), fromInt(startIndex), fromInt(endIndex));
|
|
399
395
|
var currentOffset = startIndex;
|
|
400
396
|
while (currentOffset < endIndex) {
|
|
401
|
-
var tail = this.
|
|
397
|
+
var tail = this.yp(1);
|
|
402
398
|
var tmp0 = endIndex - currentOffset | 0;
|
|
403
399
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
404
|
-
var b = tail.
|
|
400
|
+
var b = tail.dq();
|
|
405
401
|
var toCopy = Math.min(tmp0, b);
|
|
406
|
-
tail.
|
|
402
|
+
tail.eq(source, currentOffset, currentOffset + toCopy | 0);
|
|
407
403
|
currentOffset = currentOffset + toCopy | 0;
|
|
408
404
|
}
|
|
409
405
|
var tmp = this;
|
|
410
|
-
var tmp0_0 = this.
|
|
406
|
+
var tmp0_0 = this.ro_1;
|
|
411
407
|
// Inline function 'kotlin.Long.plus' call
|
|
412
408
|
var other = endIndex - startIndex | 0;
|
|
413
|
-
tmp.
|
|
409
|
+
tmp.ro_1 = add(tmp0_0, fromInt(other));
|
|
414
410
|
};
|
|
415
|
-
protoOf(Buffer).
|
|
411
|
+
protoOf(Buffer).gq = function (source, byteCount) {
|
|
416
412
|
// Inline function 'kotlinx.io.checkByteCount' call
|
|
417
413
|
// Inline function 'kotlin.require' call
|
|
418
|
-
if (!(
|
|
414
|
+
if (!(byteCount >= 0n)) {
|
|
419
415
|
var message = 'byteCount (' + byteCount.toString() + ') < 0';
|
|
420
416
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
421
417
|
}
|
|
422
418
|
var remainingByteCount = byteCount;
|
|
423
|
-
while (
|
|
424
|
-
var read = source.
|
|
425
|
-
if (
|
|
419
|
+
while (remainingByteCount > 0n) {
|
|
420
|
+
var read = source.tp(this, remainingByteCount);
|
|
421
|
+
if (read === -1n) {
|
|
426
422
|
throw EOFException_init_$Create$_0('Source exhausted before reading ' + byteCount.toString() + ' bytes. ' + ('Only ' + subtract(byteCount, remainingByteCount).toString() + ' were read.'));
|
|
427
423
|
}
|
|
428
424
|
remainingByteCount = subtract(remainingByteCount, read);
|
|
429
425
|
}
|
|
430
426
|
};
|
|
431
|
-
protoOf(Buffer).
|
|
427
|
+
protoOf(Buffer).up = function (source, byteCount) {
|
|
432
428
|
// Inline function 'kotlin.require' call
|
|
433
429
|
if (!!(source === this)) {
|
|
434
430
|
var message = 'source == this';
|
|
435
431
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
436
432
|
}
|
|
437
|
-
checkOffsetAndCount(source.
|
|
433
|
+
checkOffsetAndCount(source.ro_1, 0n, byteCount);
|
|
438
434
|
var remainingByteCount = byteCount;
|
|
439
|
-
while (
|
|
440
|
-
if (
|
|
441
|
-
var tail = this.
|
|
435
|
+
while (remainingByteCount > 0n) {
|
|
436
|
+
if (remainingByteCount < fromInt(ensureNotNull(source.po_1).l1())) {
|
|
437
|
+
var tail = this.qo_1;
|
|
442
438
|
var tmp;
|
|
443
|
-
if (!(tail == null) && tail.
|
|
439
|
+
if (!(tail == null) && tail.bp_1) {
|
|
444
440
|
var tmp0 = remainingByteCount;
|
|
445
441
|
// Inline function 'kotlin.Long.plus' call
|
|
446
|
-
var other = tail.
|
|
442
|
+
var other = tail.zo_1;
|
|
447
443
|
var tmp0_0 = add(tmp0, fromInt(other));
|
|
448
444
|
// Inline function 'kotlin.Long.minus' call
|
|
449
|
-
var other_0 = tail.
|
|
450
|
-
|
|
451
|
-
tmp = compare(tmp$ret$3, new Long(8192, 0)) <= 0;
|
|
445
|
+
var other_0 = tail.hq() ? 0 : tail.yo_1;
|
|
446
|
+
tmp = subtract(tmp0_0, fromInt(other_0)) <= 8192n;
|
|
452
447
|
} else {
|
|
453
448
|
tmp = false;
|
|
454
449
|
}
|
|
455
450
|
if (tmp) {
|
|
456
|
-
ensureNotNull(source.
|
|
457
|
-
source.
|
|
458
|
-
this.
|
|
451
|
+
ensureNotNull(source.po_1).jq(tail, convertToInt(remainingByteCount));
|
|
452
|
+
source.ro_1 = subtract(source.ro_1, remainingByteCount);
|
|
453
|
+
this.ro_1 = add(this.ro_1, remainingByteCount);
|
|
459
454
|
return Unit_instance;
|
|
460
455
|
} else {
|
|
461
|
-
source.
|
|
456
|
+
source.po_1 = ensureNotNull(source.po_1).iq(convertToInt(remainingByteCount));
|
|
462
457
|
}
|
|
463
458
|
}
|
|
464
|
-
var segmentToMove = ensureNotNull(source.
|
|
459
|
+
var segmentToMove = ensureNotNull(source.po_1);
|
|
465
460
|
var movedByteCount = fromInt(segmentToMove.l1());
|
|
466
|
-
source.
|
|
467
|
-
if (source.
|
|
468
|
-
source.
|
|
461
|
+
source.po_1 = segmentToMove.kq();
|
|
462
|
+
if (source.po_1 == null) {
|
|
463
|
+
source.qo_1 = null;
|
|
469
464
|
}
|
|
470
465
|
// Inline function 'kotlinx.io.Buffer.pushSegment' call
|
|
471
|
-
if (this.
|
|
472
|
-
this.
|
|
473
|
-
this.
|
|
466
|
+
if (this.po_1 == null) {
|
|
467
|
+
this.po_1 = segmentToMove;
|
|
468
|
+
this.qo_1 = segmentToMove;
|
|
474
469
|
} else if (true) {
|
|
475
|
-
this.
|
|
476
|
-
if (ensureNotNull(this.
|
|
477
|
-
this.
|
|
470
|
+
this.qo_1 = ensureNotNull(this.qo_1).lp(segmentToMove).mp();
|
|
471
|
+
if (ensureNotNull(this.qo_1).dp_1 == null) {
|
|
472
|
+
this.po_1 = this.qo_1;
|
|
478
473
|
}
|
|
479
474
|
} else {
|
|
480
|
-
this.
|
|
475
|
+
this.qo_1 = ensureNotNull(this.qo_1).lp(segmentToMove);
|
|
481
476
|
}
|
|
482
|
-
source.
|
|
483
|
-
this.
|
|
477
|
+
source.ro_1 = subtract(source.ro_1, movedByteCount);
|
|
478
|
+
this.ro_1 = add(this.ro_1, movedByteCount);
|
|
484
479
|
remainingByteCount = subtract(remainingByteCount, movedByteCount);
|
|
485
480
|
}
|
|
486
481
|
};
|
|
487
|
-
protoOf(Buffer).
|
|
488
|
-
var totalBytesRead =
|
|
482
|
+
protoOf(Buffer).lq = function (source) {
|
|
483
|
+
var totalBytesRead = 0n;
|
|
489
484
|
$l$loop: while (true) {
|
|
490
|
-
var readCount = source.
|
|
491
|
-
if (
|
|
485
|
+
var readCount = source.tp(this, 8192n);
|
|
486
|
+
if (readCount === -1n)
|
|
492
487
|
break $l$loop;
|
|
493
488
|
totalBytesRead = add(totalBytesRead, readCount);
|
|
494
489
|
}
|
|
495
490
|
return totalBytesRead;
|
|
496
491
|
};
|
|
497
|
-
protoOf(Buffer).
|
|
498
|
-
this.
|
|
499
|
-
this.
|
|
492
|
+
protoOf(Buffer).mq = function (byte) {
|
|
493
|
+
this.yp(1).nq(byte);
|
|
494
|
+
this.ro_1 = add(this.ro_1, 1n);
|
|
500
495
|
};
|
|
501
|
-
protoOf(Buffer).
|
|
502
|
-
this.
|
|
503
|
-
this.
|
|
496
|
+
protoOf(Buffer).oq = function (short) {
|
|
497
|
+
this.yp(2).pq(short);
|
|
498
|
+
this.ro_1 = add(this.ro_1, 2n);
|
|
504
499
|
};
|
|
505
|
-
protoOf(Buffer).
|
|
500
|
+
protoOf(Buffer).l4 = function () {
|
|
506
501
|
return Unit_instance;
|
|
507
502
|
};
|
|
508
503
|
protoOf(Buffer).toString = function () {
|
|
509
|
-
if (
|
|
504
|
+
if (this.l1() === 0n)
|
|
510
505
|
return 'Buffer(size=0)';
|
|
511
506
|
var maxPrintableBytes = 64;
|
|
512
507
|
// Inline function 'kotlinx.io.minOf' call
|
|
513
508
|
var b = this.l1();
|
|
514
509
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
515
510
|
var a = fromInt(maxPrintableBytes);
|
|
516
|
-
var tmp$ret$1 =
|
|
511
|
+
var tmp$ret$1 = a <= b ? a : b;
|
|
517
512
|
var len = convertToInt(tmp$ret$1);
|
|
518
|
-
var builder = StringBuilder_init_$Create$(imul(len, 2) + (
|
|
513
|
+
var builder = StringBuilder_init_$Create$(imul(len, 2) + (this.l1() > fromInt(maxPrintableBytes) ? 1 : 0) | 0);
|
|
519
514
|
var bytesWritten = 0;
|
|
520
515
|
// Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.forEachSegment' call
|
|
521
|
-
var curr = this.
|
|
516
|
+
var curr = this.po_1;
|
|
522
517
|
while (!(curr == null)) {
|
|
523
518
|
var tmp0 = get_SegmentReadContextImpl();
|
|
524
519
|
var segment = curr;
|
|
@@ -526,7 +521,7 @@
|
|
|
526
521
|
while (bytesWritten < len && idx < segment.l1()) {
|
|
527
522
|
var _unary__edvuaz = idx;
|
|
528
523
|
idx = _unary__edvuaz + 1 | 0;
|
|
529
|
-
var b_0 = tmp0.
|
|
524
|
+
var b_0 = tmp0.qq(segment, _unary__edvuaz);
|
|
530
525
|
bytesWritten = bytesWritten + 1 | 0;
|
|
531
526
|
var tmp = get_HEX_DIGIT_CHARS();
|
|
532
527
|
// Inline function 'kotlinx.io.shr' call
|
|
@@ -537,57 +532,56 @@
|
|
|
537
532
|
var tmp$ret$3 = b_0 & 15;
|
|
538
533
|
tmp_0.s(tmp_1[tmp$ret$3]);
|
|
539
534
|
}
|
|
540
|
-
curr = curr.
|
|
535
|
+
curr = curr.cp_1;
|
|
541
536
|
}
|
|
542
|
-
if (
|
|
537
|
+
if (this.l1() > fromInt(maxPrintableBytes)) {
|
|
543
538
|
builder.s(_Char___init__impl__6a9atx(8230));
|
|
544
539
|
}
|
|
545
540
|
return 'Buffer(size=' + this.l1().toString() + ' hex=' + builder.toString() + ')';
|
|
546
541
|
};
|
|
547
|
-
protoOf(Buffer).
|
|
548
|
-
var oldHead = ensureNotNull(this.
|
|
549
|
-
var nextHead = oldHead.
|
|
550
|
-
this.
|
|
542
|
+
protoOf(Buffer).ep = function () {
|
|
543
|
+
var oldHead = ensureNotNull(this.po_1);
|
|
544
|
+
var nextHead = oldHead.cp_1;
|
|
545
|
+
this.po_1 = nextHead;
|
|
551
546
|
if (nextHead == null) {
|
|
552
|
-
this.
|
|
547
|
+
this.qo_1 = null;
|
|
553
548
|
} else {
|
|
554
|
-
nextHead.
|
|
549
|
+
nextHead.dp_1 = null;
|
|
555
550
|
}
|
|
556
|
-
oldHead.
|
|
557
|
-
SegmentPool_instance.
|
|
551
|
+
oldHead.cp_1 = null;
|
|
552
|
+
SegmentPool_instance.rq(oldHead);
|
|
558
553
|
};
|
|
559
|
-
protoOf(Buffer).
|
|
560
|
-
var oldTail = ensureNotNull(this.
|
|
561
|
-
var newTail = oldTail.
|
|
562
|
-
this.
|
|
554
|
+
protoOf(Buffer).sq = function () {
|
|
555
|
+
var oldTail = ensureNotNull(this.qo_1);
|
|
556
|
+
var newTail = oldTail.dp_1;
|
|
557
|
+
this.qo_1 = newTail;
|
|
563
558
|
if (newTail == null) {
|
|
564
|
-
this.
|
|
559
|
+
this.po_1 = null;
|
|
565
560
|
} else {
|
|
566
|
-
newTail.
|
|
561
|
+
newTail.cp_1 = null;
|
|
567
562
|
}
|
|
568
|
-
oldTail.
|
|
569
|
-
SegmentPool_instance.
|
|
563
|
+
oldTail.dp_1 = null;
|
|
564
|
+
SegmentPool_instance.rq(oldTail);
|
|
570
565
|
};
|
|
571
566
|
function indexOf(_this__u8e3s4, byte, startIndex, endIndex) {
|
|
572
|
-
startIndex = startIndex === VOID ?
|
|
567
|
+
startIndex = startIndex === VOID ? 0n : startIndex;
|
|
573
568
|
endIndex = endIndex === VOID ? _this__u8e3s4.l1() : endIndex;
|
|
574
569
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
575
570
|
var b = _this__u8e3s4.l1();
|
|
576
|
-
var endOffset =
|
|
571
|
+
var endOffset = endIndex <= b ? endIndex : b;
|
|
577
572
|
checkBounds(_this__u8e3s4.l1(), startIndex, endOffset);
|
|
578
|
-
if (
|
|
579
|
-
return
|
|
573
|
+
if (startIndex === endOffset)
|
|
574
|
+
return -1n;
|
|
580
575
|
// Inline function 'kotlinx.io.seek' call
|
|
581
|
-
if (_this__u8e3s4.
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
return new Long(-1, -1);
|
|
576
|
+
if (_this__u8e3s4.po_1 == null) {
|
|
577
|
+
if (-1n === -1n) {
|
|
578
|
+
return -1n;
|
|
585
579
|
}
|
|
586
580
|
var segment = null;
|
|
587
|
-
var offset =
|
|
581
|
+
var offset = -1n;
|
|
588
582
|
do {
|
|
589
583
|
// Inline function 'kotlin.check' call
|
|
590
|
-
if (!(
|
|
584
|
+
if (!(endOffset > offset)) {
|
|
591
585
|
throw IllegalStateException_init_$Create$('Check failed.');
|
|
592
586
|
}
|
|
593
587
|
ensureNotNull(segment);
|
|
@@ -607,30 +601,30 @@
|
|
|
607
601
|
// Inline function 'kotlin.Long.plus' call
|
|
608
602
|
var other = segment.l1();
|
|
609
603
|
offset = add(tmp0_0, fromInt(other));
|
|
610
|
-
segment = segment.
|
|
604
|
+
segment = segment.cp_1;
|
|
611
605
|
}
|
|
612
|
-
while (!(segment == null) &&
|
|
613
|
-
return
|
|
606
|
+
while (!(segment == null) && offset < endOffset);
|
|
607
|
+
return -1n;
|
|
614
608
|
}
|
|
615
|
-
if (
|
|
616
|
-
var s = _this__u8e3s4.
|
|
609
|
+
if (subtract(_this__u8e3s4.l1(), startIndex) < startIndex) {
|
|
610
|
+
var s = _this__u8e3s4.qo_1;
|
|
617
611
|
var offset_0 = _this__u8e3s4.l1();
|
|
618
|
-
$l$loop: while (!(s == null) &&
|
|
619
|
-
offset_0 = subtract(offset_0, fromInt(s.
|
|
620
|
-
if (
|
|
612
|
+
$l$loop: while (!(s == null) && offset_0 > startIndex) {
|
|
613
|
+
offset_0 = subtract(offset_0, fromInt(s.zo_1 - s.yo_1 | 0));
|
|
614
|
+
if (offset_0 <= startIndex)
|
|
621
615
|
break $l$loop;
|
|
622
|
-
s = s.
|
|
616
|
+
s = s.dp_1;
|
|
623
617
|
}
|
|
624
618
|
var tmp0_1 = s;
|
|
625
|
-
var
|
|
626
|
-
if (
|
|
627
|
-
return
|
|
619
|
+
var o = offset_0;
|
|
620
|
+
if (o === -1n) {
|
|
621
|
+
return -1n;
|
|
628
622
|
}
|
|
629
623
|
var segment_0 = tmp0_1;
|
|
630
|
-
var offset_1 =
|
|
624
|
+
var offset_1 = o;
|
|
631
625
|
do {
|
|
632
626
|
// Inline function 'kotlin.check' call
|
|
633
|
-
if (!(
|
|
627
|
+
if (!(endOffset > offset_1)) {
|
|
634
628
|
throw IllegalStateException_init_$Create$('Check failed.');
|
|
635
629
|
}
|
|
636
630
|
ensureNotNull(segment_0);
|
|
@@ -650,33 +644,33 @@
|
|
|
650
644
|
// Inline function 'kotlin.Long.plus' call
|
|
651
645
|
var other_0 = segment_0.l1();
|
|
652
646
|
offset_1 = add(tmp0_3, fromInt(other_0));
|
|
653
|
-
segment_0 = segment_0.
|
|
647
|
+
segment_0 = segment_0.cp_1;
|
|
654
648
|
}
|
|
655
|
-
while (!(segment_0 == null) &&
|
|
656
|
-
return
|
|
649
|
+
while (!(segment_0 == null) && offset_1 < endOffset);
|
|
650
|
+
return -1n;
|
|
657
651
|
} else {
|
|
658
|
-
var s_0 = _this__u8e3s4.
|
|
659
|
-
var offset_2 =
|
|
652
|
+
var s_0 = _this__u8e3s4.po_1;
|
|
653
|
+
var offset_2 = 0n;
|
|
660
654
|
$l$loop_0: while (!(s_0 == null)) {
|
|
661
655
|
var tmp0_4 = offset_2;
|
|
662
656
|
// Inline function 'kotlin.Long.plus' call
|
|
663
|
-
var other_1 = s_0.
|
|
657
|
+
var other_1 = s_0.zo_1 - s_0.yo_1 | 0;
|
|
664
658
|
var nextOffset = add(tmp0_4, fromInt(other_1));
|
|
665
|
-
if (
|
|
659
|
+
if (nextOffset > startIndex)
|
|
666
660
|
break $l$loop_0;
|
|
667
|
-
s_0 = s_0.
|
|
661
|
+
s_0 = s_0.cp_1;
|
|
668
662
|
offset_2 = nextOffset;
|
|
669
663
|
}
|
|
670
664
|
var tmp0_5 = s_0;
|
|
671
|
-
var
|
|
672
|
-
if (
|
|
673
|
-
return
|
|
665
|
+
var o_0 = offset_2;
|
|
666
|
+
if (o_0 === -1n) {
|
|
667
|
+
return -1n;
|
|
674
668
|
}
|
|
675
669
|
var segment_1 = tmp0_5;
|
|
676
|
-
var offset_3 =
|
|
670
|
+
var offset_3 = o_0;
|
|
677
671
|
do {
|
|
678
672
|
// Inline function 'kotlin.check' call
|
|
679
|
-
if (!(
|
|
673
|
+
if (!(endOffset > offset_3)) {
|
|
680
674
|
throw IllegalStateException_init_$Create$('Check failed.');
|
|
681
675
|
}
|
|
682
676
|
ensureNotNull(segment_1);
|
|
@@ -696,207 +690,207 @@
|
|
|
696
690
|
// Inline function 'kotlin.Long.plus' call
|
|
697
691
|
var other_2 = segment_1.l1();
|
|
698
692
|
offset_3 = add(tmp0_7, fromInt(other_2));
|
|
699
|
-
segment_1 = segment_1.
|
|
693
|
+
segment_1 = segment_1.cp_1;
|
|
700
694
|
}
|
|
701
|
-
while (!(segment_1 == null) &&
|
|
702
|
-
return
|
|
695
|
+
while (!(segment_1 == null) && offset_3 < endOffset);
|
|
696
|
+
return -1n;
|
|
703
697
|
}
|
|
704
698
|
}
|
|
705
699
|
function readByteString(_this__u8e3s4, byteCount) {
|
|
706
|
-
return UnsafeByteStringOperations_instance.
|
|
700
|
+
return UnsafeByteStringOperations_instance.oo(readByteArray_0(_this__u8e3s4, byteCount));
|
|
707
701
|
}
|
|
708
702
|
function buffered(_this__u8e3s4) {
|
|
709
703
|
return new RealSource(_this__u8e3s4);
|
|
710
704
|
}
|
|
711
705
|
function PeekSource(upstream) {
|
|
712
|
-
this.
|
|
713
|
-
this.
|
|
714
|
-
this.
|
|
706
|
+
this.tq_1 = upstream;
|
|
707
|
+
this.uq_1 = this.tq_1.so();
|
|
708
|
+
this.vq_1 = this.uq_1.po_1;
|
|
715
709
|
var tmp = this;
|
|
716
|
-
var tmp0_safe_receiver = this.
|
|
717
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
718
|
-
tmp.
|
|
719
|
-
this.
|
|
720
|
-
this.
|
|
710
|
+
var tmp0_safe_receiver = this.uq_1.po_1;
|
|
711
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.yo_1;
|
|
712
|
+
tmp.wq_1 = tmp1_elvis_lhs == null ? -1 : tmp1_elvis_lhs;
|
|
713
|
+
this.xq_1 = false;
|
|
714
|
+
this.yq_1 = 0n;
|
|
721
715
|
}
|
|
722
|
-
protoOf(PeekSource).
|
|
716
|
+
protoOf(PeekSource).tp = function (sink, byteCount) {
|
|
723
717
|
// Inline function 'kotlin.check' call
|
|
724
|
-
if (!!this.
|
|
718
|
+
if (!!this.xq_1) {
|
|
725
719
|
var message = 'Source is closed.';
|
|
726
720
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
727
721
|
}
|
|
728
722
|
// Inline function 'kotlinx.io.checkByteCount' call
|
|
729
723
|
// Inline function 'kotlin.require' call
|
|
730
|
-
if (!(
|
|
724
|
+
if (!(byteCount >= 0n)) {
|
|
731
725
|
var message_0 = 'byteCount (' + byteCount.toString() + ') < 0';
|
|
732
726
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
733
727
|
}
|
|
734
728
|
// Inline function 'kotlin.check' call
|
|
735
|
-
if (!(this.
|
|
729
|
+
if (!(this.vq_1 == null || (this.vq_1 === this.uq_1.po_1 && this.wq_1 === ensureNotNull(this.uq_1.po_1).yo_1))) {
|
|
736
730
|
var message_1 = 'Peek source is invalid because upstream source was used';
|
|
737
731
|
throw IllegalStateException_init_$Create$(toString(message_1));
|
|
738
732
|
}
|
|
739
|
-
if (
|
|
740
|
-
return
|
|
733
|
+
if (byteCount === 0n)
|
|
734
|
+
return 0n;
|
|
741
735
|
// Inline function 'kotlin.Long.plus' call
|
|
742
|
-
var this_0 = this.
|
|
736
|
+
var this_0 = this.yq_1;
|
|
743
737
|
var tmp$ret$7 = add(this_0, fromInt(1));
|
|
744
|
-
if (!this.
|
|
745
|
-
return
|
|
746
|
-
if (this.
|
|
747
|
-
this.
|
|
748
|
-
this.
|
|
738
|
+
if (!this.tq_1.vo(tmp$ret$7))
|
|
739
|
+
return -1n;
|
|
740
|
+
if (this.vq_1 == null && !(this.uq_1.po_1 == null)) {
|
|
741
|
+
this.vq_1 = this.uq_1.po_1;
|
|
742
|
+
this.wq_1 = ensureNotNull(this.uq_1.po_1).yo_1;
|
|
749
743
|
}
|
|
750
744
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
751
|
-
var b = subtract(this.
|
|
752
|
-
var toCopy =
|
|
753
|
-
this.
|
|
754
|
-
this.
|
|
745
|
+
var b = subtract(this.uq_1.l1(), this.yq_1);
|
|
746
|
+
var toCopy = byteCount <= b ? byteCount : b;
|
|
747
|
+
this.uq_1.jp(sink, this.yq_1, add(this.yq_1, toCopy));
|
|
748
|
+
this.yq_1 = add(this.yq_1, toCopy);
|
|
755
749
|
return toCopy;
|
|
756
750
|
};
|
|
757
|
-
protoOf(PeekSource).
|
|
758
|
-
this.
|
|
751
|
+
protoOf(PeekSource).l4 = function () {
|
|
752
|
+
this.xq_1 = true;
|
|
759
753
|
};
|
|
760
754
|
function RealSource(source) {
|
|
761
|
-
this.
|
|
762
|
-
this.
|
|
763
|
-
this.
|
|
755
|
+
this.zq_1 = source;
|
|
756
|
+
this.ar_1 = false;
|
|
757
|
+
this.br_1 = new Buffer();
|
|
764
758
|
}
|
|
765
|
-
protoOf(RealSource).
|
|
766
|
-
return this.
|
|
759
|
+
protoOf(RealSource).so = function () {
|
|
760
|
+
return this.br_1;
|
|
767
761
|
};
|
|
768
|
-
protoOf(RealSource).
|
|
762
|
+
protoOf(RealSource).tp = function (sink, byteCount) {
|
|
769
763
|
// Inline function 'kotlinx.io.RealSource.checkNotClosed' call
|
|
770
764
|
// Inline function 'kotlin.check' call
|
|
771
|
-
if (!!this.
|
|
765
|
+
if (!!this.ar_1) {
|
|
772
766
|
var message = 'Source is closed.';
|
|
773
767
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
774
768
|
}
|
|
775
769
|
// Inline function 'kotlin.require' call
|
|
776
|
-
if (!(
|
|
770
|
+
if (!(byteCount >= 0n)) {
|
|
777
771
|
var message_0 = 'byteCount: ' + byteCount.toString();
|
|
778
772
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
779
773
|
}
|
|
780
|
-
if (
|
|
781
|
-
var read = this.
|
|
782
|
-
if (
|
|
783
|
-
return
|
|
774
|
+
if (this.br_1.l1() === 0n) {
|
|
775
|
+
var read = this.zq_1.tp(this.br_1, 8192n);
|
|
776
|
+
if (read === -1n)
|
|
777
|
+
return -1n;
|
|
784
778
|
}
|
|
785
779
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
786
|
-
var b = this.
|
|
787
|
-
var toRead =
|
|
788
|
-
return this.
|
|
780
|
+
var b = this.br_1.l1();
|
|
781
|
+
var toRead = byteCount <= b ? byteCount : b;
|
|
782
|
+
return this.br_1.tp(sink, toRead);
|
|
789
783
|
};
|
|
790
|
-
protoOf(RealSource).
|
|
784
|
+
protoOf(RealSource).to = function () {
|
|
791
785
|
// Inline function 'kotlinx.io.RealSource.checkNotClosed' call
|
|
792
786
|
// Inline function 'kotlin.check' call
|
|
793
|
-
if (!!this.
|
|
787
|
+
if (!!this.ar_1) {
|
|
794
788
|
var message = 'Source is closed.';
|
|
795
789
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
796
790
|
}
|
|
797
|
-
return this.
|
|
791
|
+
return this.br_1.to() && this.zq_1.tp(this.br_1, 8192n) === -1n;
|
|
798
792
|
};
|
|
799
|
-
protoOf(RealSource).
|
|
800
|
-
if (!this.
|
|
793
|
+
protoOf(RealSource).uo = function (byteCount) {
|
|
794
|
+
if (!this.vo(byteCount))
|
|
801
795
|
throw EOFException_init_$Create$_0("Source doesn't contain required number of bytes (" + byteCount.toString() + ').');
|
|
802
796
|
};
|
|
803
|
-
protoOf(RealSource).
|
|
797
|
+
protoOf(RealSource).vo = function (byteCount) {
|
|
804
798
|
// Inline function 'kotlinx.io.RealSource.checkNotClosed' call
|
|
805
799
|
// Inline function 'kotlin.check' call
|
|
806
|
-
if (!!this.
|
|
800
|
+
if (!!this.ar_1) {
|
|
807
801
|
var message = 'Source is closed.';
|
|
808
802
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
809
803
|
}
|
|
810
804
|
// Inline function 'kotlin.require' call
|
|
811
|
-
if (!(
|
|
805
|
+
if (!(byteCount >= 0n)) {
|
|
812
806
|
var message_0 = 'byteCount: ' + byteCount.toString();
|
|
813
807
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
814
808
|
}
|
|
815
|
-
while (
|
|
816
|
-
if (
|
|
809
|
+
while (this.br_1.l1() < byteCount) {
|
|
810
|
+
if (this.zq_1.tp(this.br_1, 8192n) === -1n)
|
|
817
811
|
return false;
|
|
818
812
|
}
|
|
819
813
|
return true;
|
|
820
814
|
};
|
|
821
|
-
protoOf(RealSource).
|
|
822
|
-
this.
|
|
823
|
-
return this.
|
|
815
|
+
protoOf(RealSource).wo = function () {
|
|
816
|
+
this.uo(1n);
|
|
817
|
+
return this.br_1.wo();
|
|
824
818
|
};
|
|
825
|
-
protoOf(RealSource).
|
|
819
|
+
protoOf(RealSource).rp = function (sink, startIndex, endIndex) {
|
|
826
820
|
// Inline function 'kotlinx.io.checkBounds' call
|
|
827
821
|
var size = sink.length;
|
|
828
822
|
checkBounds(fromInt(size), fromInt(startIndex), fromInt(endIndex));
|
|
829
|
-
if (
|
|
830
|
-
var read = this.
|
|
831
|
-
if (
|
|
823
|
+
if (this.br_1.l1() === 0n) {
|
|
824
|
+
var read = this.zq_1.tp(this.br_1, 8192n);
|
|
825
|
+
if (read === -1n)
|
|
832
826
|
return -1;
|
|
833
827
|
}
|
|
834
828
|
var tmp0 = endIndex - startIndex | 0;
|
|
835
829
|
// Inline function 'kotlinx.io.minOf' call
|
|
836
|
-
var b = this.
|
|
830
|
+
var b = this.br_1.l1();
|
|
837
831
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
838
832
|
var a = fromInt(tmp0);
|
|
839
|
-
var tmp$ret$2 =
|
|
833
|
+
var tmp$ret$2 = a <= b ? a : b;
|
|
840
834
|
var toRead = convertToInt(tmp$ret$2);
|
|
841
|
-
return this.
|
|
835
|
+
return this.br_1.rp(sink, startIndex, startIndex + toRead | 0);
|
|
842
836
|
};
|
|
843
|
-
protoOf(RealSource).
|
|
837
|
+
protoOf(RealSource).vp = function (sink, byteCount) {
|
|
844
838
|
try {
|
|
845
|
-
this.
|
|
839
|
+
this.uo(byteCount);
|
|
846
840
|
} catch ($p) {
|
|
847
841
|
if ($p instanceof EOFException) {
|
|
848
842
|
var e = $p;
|
|
849
|
-
sink.
|
|
843
|
+
sink.up(this.br_1, this.br_1.l1());
|
|
850
844
|
throw e;
|
|
851
845
|
} else {
|
|
852
846
|
throw $p;
|
|
853
847
|
}
|
|
854
848
|
}
|
|
855
|
-
this.
|
|
849
|
+
this.br_1.vp(sink, byteCount);
|
|
856
850
|
};
|
|
857
|
-
protoOf(RealSource).
|
|
858
|
-
var totalBytesWritten =
|
|
859
|
-
while (!
|
|
860
|
-
var emitByteCount = this.
|
|
861
|
-
if (
|
|
851
|
+
protoOf(RealSource).wp = function (sink) {
|
|
852
|
+
var totalBytesWritten = 0n;
|
|
853
|
+
while (!(this.zq_1.tp(this.br_1, 8192n) === -1n)) {
|
|
854
|
+
var emitByteCount = this.br_1.np();
|
|
855
|
+
if (emitByteCount > 0n) {
|
|
862
856
|
totalBytesWritten = add(totalBytesWritten, emitByteCount);
|
|
863
|
-
sink.
|
|
857
|
+
sink.up(this.br_1, emitByteCount);
|
|
864
858
|
}
|
|
865
859
|
}
|
|
866
|
-
if (
|
|
867
|
-
totalBytesWritten = add(totalBytesWritten, this.
|
|
868
|
-
sink.
|
|
860
|
+
if (this.br_1.l1() > 0n) {
|
|
861
|
+
totalBytesWritten = add(totalBytesWritten, this.br_1.l1());
|
|
862
|
+
sink.up(this.br_1, this.br_1.l1());
|
|
869
863
|
}
|
|
870
864
|
return totalBytesWritten;
|
|
871
865
|
};
|
|
872
|
-
protoOf(RealSource).
|
|
873
|
-
this.
|
|
874
|
-
return this.
|
|
866
|
+
protoOf(RealSource).gp = function () {
|
|
867
|
+
this.uo(2n);
|
|
868
|
+
return this.br_1.gp();
|
|
875
869
|
};
|
|
876
|
-
protoOf(RealSource).
|
|
870
|
+
protoOf(RealSource).xp = function () {
|
|
877
871
|
// Inline function 'kotlinx.io.RealSource.checkNotClosed' call
|
|
878
872
|
// Inline function 'kotlin.check' call
|
|
879
|
-
if (!!this.
|
|
873
|
+
if (!!this.ar_1) {
|
|
880
874
|
var message = 'Source is closed.';
|
|
881
875
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
882
876
|
}
|
|
883
877
|
return buffered(new PeekSource(this));
|
|
884
878
|
};
|
|
885
|
-
protoOf(RealSource).
|
|
886
|
-
if (this.
|
|
879
|
+
protoOf(RealSource).l4 = function () {
|
|
880
|
+
if (this.ar_1)
|
|
887
881
|
return Unit_instance;
|
|
888
|
-
this.
|
|
889
|
-
this.
|
|
890
|
-
this.
|
|
882
|
+
this.ar_1 = true;
|
|
883
|
+
this.zq_1.l4();
|
|
884
|
+
this.br_1.t2();
|
|
891
885
|
};
|
|
892
886
|
protoOf(RealSource).toString = function () {
|
|
893
|
-
return 'buffered(' + toString(this.
|
|
887
|
+
return 'buffered(' + toString(this.zq_1) + ')';
|
|
894
888
|
};
|
|
895
889
|
function Segment_init_$Init$($this) {
|
|
896
890
|
Segment.call($this);
|
|
897
|
-
$this.
|
|
898
|
-
$this.
|
|
899
|
-
$this.
|
|
891
|
+
$this.xo_1 = new Int8Array(8192);
|
|
892
|
+
$this.bp_1 = true;
|
|
893
|
+
$this.ap_1 = null;
|
|
900
894
|
return $this;
|
|
901
895
|
}
|
|
902
896
|
function Segment_init_$Create$() {
|
|
@@ -904,87 +898,87 @@
|
|
|
904
898
|
}
|
|
905
899
|
function Segment_init_$Init$_0(data, pos, limit, shareToken, owner, $this) {
|
|
906
900
|
Segment.call($this);
|
|
907
|
-
$this.
|
|
908
|
-
$this.
|
|
909
|
-
$this.
|
|
910
|
-
$this.
|
|
911
|
-
$this.
|
|
901
|
+
$this.xo_1 = data;
|
|
902
|
+
$this.yo_1 = pos;
|
|
903
|
+
$this.zo_1 = limit;
|
|
904
|
+
$this.ap_1 = shareToken;
|
|
905
|
+
$this.bp_1 = owner;
|
|
912
906
|
return $this;
|
|
913
907
|
}
|
|
914
908
|
function Segment_init_$Create$_0(data, pos, limit, shareToken, owner) {
|
|
915
909
|
return Segment_init_$Init$_0(data, pos, limit, shareToken, owner, objectCreate(protoOf(Segment)));
|
|
916
910
|
}
|
|
917
911
|
function Companion() {
|
|
918
|
-
this.
|
|
919
|
-
this.
|
|
912
|
+
this.cr_1 = 8192;
|
|
913
|
+
this.dr_1 = 1024;
|
|
920
914
|
}
|
|
921
|
-
protoOf(Companion).
|
|
915
|
+
protoOf(Companion).er = function () {
|
|
922
916
|
return Segment_init_$Create$();
|
|
923
917
|
};
|
|
924
918
|
var Companion_instance;
|
|
925
919
|
function Companion_getInstance() {
|
|
926
920
|
return Companion_instance;
|
|
927
921
|
}
|
|
928
|
-
protoOf(Segment).
|
|
929
|
-
var tmp0_safe_receiver = this.
|
|
930
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
922
|
+
protoOf(Segment).hq = function () {
|
|
923
|
+
var tmp0_safe_receiver = this.ap_1;
|
|
924
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.fr();
|
|
931
925
|
return tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs;
|
|
932
926
|
};
|
|
933
|
-
protoOf(Segment).
|
|
934
|
-
var tmp0_elvis_lhs = this.
|
|
927
|
+
protoOf(Segment).kp = function () {
|
|
928
|
+
var tmp0_elvis_lhs = this.ap_1;
|
|
935
929
|
var tmp;
|
|
936
930
|
if (tmp0_elvis_lhs == null) {
|
|
937
931
|
// Inline function 'kotlin.also' call
|
|
938
|
-
var this_0 = SegmentPool_instance.
|
|
939
|
-
this.
|
|
932
|
+
var this_0 = SegmentPool_instance.gr();
|
|
933
|
+
this.ap_1 = this_0;
|
|
940
934
|
tmp = this_0;
|
|
941
935
|
} else {
|
|
942
936
|
tmp = tmp0_elvis_lhs;
|
|
943
937
|
}
|
|
944
938
|
var t = tmp;
|
|
945
|
-
var tmp_0 = this.
|
|
946
|
-
var tmp_1 = this.
|
|
939
|
+
var tmp_0 = this.yo_1;
|
|
940
|
+
var tmp_1 = this.zo_1;
|
|
947
941
|
// Inline function 'kotlin.also' call
|
|
948
|
-
t.
|
|
949
|
-
return Segment_init_$Create$_0(this.
|
|
942
|
+
t.hr();
|
|
943
|
+
return Segment_init_$Create$_0(this.xo_1, tmp_0, tmp_1, t, false);
|
|
950
944
|
};
|
|
951
|
-
protoOf(Segment).
|
|
952
|
-
var result = this.
|
|
953
|
-
if (!(this.
|
|
954
|
-
ensureNotNull(this.
|
|
945
|
+
protoOf(Segment).kq = function () {
|
|
946
|
+
var result = this.cp_1;
|
|
947
|
+
if (!(this.dp_1 == null)) {
|
|
948
|
+
ensureNotNull(this.dp_1).cp_1 = this.cp_1;
|
|
955
949
|
}
|
|
956
|
-
if (!(this.
|
|
957
|
-
ensureNotNull(this.
|
|
950
|
+
if (!(this.cp_1 == null)) {
|
|
951
|
+
ensureNotNull(this.cp_1).dp_1 = this.dp_1;
|
|
958
952
|
}
|
|
959
|
-
this.
|
|
960
|
-
this.
|
|
953
|
+
this.cp_1 = null;
|
|
954
|
+
this.dp_1 = null;
|
|
961
955
|
return result;
|
|
962
956
|
};
|
|
963
|
-
protoOf(Segment).
|
|
964
|
-
segment.
|
|
965
|
-
segment.
|
|
966
|
-
if (!(this.
|
|
967
|
-
ensureNotNull(this.
|
|
957
|
+
protoOf(Segment).lp = function (segment) {
|
|
958
|
+
segment.dp_1 = this;
|
|
959
|
+
segment.cp_1 = this.cp_1;
|
|
960
|
+
if (!(this.cp_1 == null)) {
|
|
961
|
+
ensureNotNull(this.cp_1).dp_1 = segment;
|
|
968
962
|
}
|
|
969
|
-
this.
|
|
963
|
+
this.cp_1 = segment;
|
|
970
964
|
return segment;
|
|
971
965
|
};
|
|
972
|
-
protoOf(Segment).
|
|
966
|
+
protoOf(Segment).iq = function (byteCount) {
|
|
973
967
|
// Inline function 'kotlin.require' call
|
|
974
|
-
if (!(byteCount > 0 && byteCount <= (this.
|
|
968
|
+
if (!(byteCount > 0 && byteCount <= (this.zo_1 - this.yo_1 | 0))) {
|
|
975
969
|
var message = 'byteCount out of range';
|
|
976
970
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
977
971
|
}
|
|
978
972
|
var prefix;
|
|
979
973
|
if (byteCount >= 1024) {
|
|
980
|
-
prefix = this.
|
|
974
|
+
prefix = this.kp();
|
|
981
975
|
} else {
|
|
982
|
-
prefix = SegmentPool_instance.
|
|
983
|
-
var tmp0 = this.
|
|
984
|
-
var tmp2 = prefix.
|
|
985
|
-
var tmp5 = this.
|
|
976
|
+
prefix = SegmentPool_instance.bq();
|
|
977
|
+
var tmp0 = this.xo_1;
|
|
978
|
+
var tmp2 = prefix.xo_1;
|
|
979
|
+
var tmp5 = this.yo_1;
|
|
986
980
|
// Inline function 'kotlin.collections.copyInto' call
|
|
987
|
-
var endIndex = this.
|
|
981
|
+
var endIndex = this.yo_1 + byteCount | 0;
|
|
988
982
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
989
983
|
// Inline function 'kotlin.js.asDynamic' call
|
|
990
984
|
var tmp = tmp0;
|
|
@@ -992,62 +986,62 @@
|
|
|
992
986
|
// Inline function 'kotlin.js.asDynamic' call
|
|
993
987
|
arrayCopy(tmp, tmp2, 0, tmp5, endIndex);
|
|
994
988
|
}
|
|
995
|
-
prefix.
|
|
996
|
-
this.
|
|
997
|
-
if (!(this.
|
|
998
|
-
ensureNotNull(this.
|
|
989
|
+
prefix.zo_1 = prefix.yo_1 + byteCount | 0;
|
|
990
|
+
this.yo_1 = this.yo_1 + byteCount | 0;
|
|
991
|
+
if (!(this.dp_1 == null)) {
|
|
992
|
+
ensureNotNull(this.dp_1).lp(prefix);
|
|
999
993
|
} else {
|
|
1000
|
-
prefix.
|
|
1001
|
-
this.
|
|
994
|
+
prefix.cp_1 = this;
|
|
995
|
+
this.dp_1 = prefix;
|
|
1002
996
|
}
|
|
1003
997
|
return prefix;
|
|
1004
998
|
};
|
|
1005
|
-
protoOf(Segment).
|
|
999
|
+
protoOf(Segment).mp = function () {
|
|
1006
1000
|
// Inline function 'kotlin.check' call
|
|
1007
|
-
if (!!(this.
|
|
1001
|
+
if (!!(this.dp_1 == null)) {
|
|
1008
1002
|
var message = 'cannot compact';
|
|
1009
1003
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
1010
1004
|
}
|
|
1011
|
-
if (!ensureNotNull(this.
|
|
1005
|
+
if (!ensureNotNull(this.dp_1).bp_1)
|
|
1012
1006
|
return this;
|
|
1013
|
-
var byteCount = this.
|
|
1014
|
-
var availableByteCount = (8192 - ensureNotNull(this.
|
|
1007
|
+
var byteCount = this.zo_1 - this.yo_1 | 0;
|
|
1008
|
+
var availableByteCount = (8192 - ensureNotNull(this.dp_1).zo_1 | 0) + (ensureNotNull(this.dp_1).hq() ? 0 : ensureNotNull(this.dp_1).yo_1) | 0;
|
|
1015
1009
|
if (byteCount > availableByteCount)
|
|
1016
1010
|
return this;
|
|
1017
|
-
var predecessor = this.
|
|
1018
|
-
this.
|
|
1019
|
-
var successor = this.
|
|
1011
|
+
var predecessor = this.dp_1;
|
|
1012
|
+
this.jq(ensureNotNull(predecessor), byteCount);
|
|
1013
|
+
var successor = this.kq();
|
|
1020
1014
|
// Inline function 'kotlin.check' call
|
|
1021
1015
|
if (!(successor == null)) {
|
|
1022
1016
|
throw IllegalStateException_init_$Create$('Check failed.');
|
|
1023
1017
|
}
|
|
1024
|
-
SegmentPool_instance.
|
|
1018
|
+
SegmentPool_instance.rq(this);
|
|
1025
1019
|
return predecessor;
|
|
1026
1020
|
};
|
|
1027
|
-
protoOf(Segment).
|
|
1028
|
-
var _unary__edvuaz = this.
|
|
1029
|
-
this.
|
|
1030
|
-
this.
|
|
1021
|
+
protoOf(Segment).nq = function (byte) {
|
|
1022
|
+
var _unary__edvuaz = this.zo_1;
|
|
1023
|
+
this.zo_1 = _unary__edvuaz + 1 | 0;
|
|
1024
|
+
this.xo_1[_unary__edvuaz] = byte;
|
|
1031
1025
|
};
|
|
1032
|
-
protoOf(Segment).
|
|
1033
|
-
var data = this.
|
|
1034
|
-
var limit = this.
|
|
1026
|
+
protoOf(Segment).pq = function (short) {
|
|
1027
|
+
var data = this.xo_1;
|
|
1028
|
+
var limit = this.zo_1;
|
|
1035
1029
|
var _unary__edvuaz = limit;
|
|
1036
1030
|
limit = _unary__edvuaz + 1 | 0;
|
|
1037
1031
|
data[_unary__edvuaz] = toByte((short >>> 8 | 0) & 255);
|
|
1038
1032
|
var _unary__edvuaz_0 = limit;
|
|
1039
1033
|
limit = _unary__edvuaz_0 + 1 | 0;
|
|
1040
1034
|
data[_unary__edvuaz_0] = toByte(short & 255);
|
|
1041
|
-
this.
|
|
1035
|
+
this.zo_1 = limit;
|
|
1042
1036
|
};
|
|
1043
|
-
protoOf(Segment).
|
|
1044
|
-
var _unary__edvuaz = this.
|
|
1045
|
-
this.
|
|
1046
|
-
return this.
|
|
1037
|
+
protoOf(Segment).fp = function () {
|
|
1038
|
+
var _unary__edvuaz = this.yo_1;
|
|
1039
|
+
this.yo_1 = _unary__edvuaz + 1 | 0;
|
|
1040
|
+
return this.xo_1[_unary__edvuaz];
|
|
1047
1041
|
};
|
|
1048
|
-
protoOf(Segment).
|
|
1049
|
-
var data = this.
|
|
1050
|
-
var pos = this.
|
|
1042
|
+
protoOf(Segment).hp = function () {
|
|
1043
|
+
var data = this.xo_1;
|
|
1044
|
+
var pos = this.yo_1;
|
|
1051
1045
|
var _unary__edvuaz = pos;
|
|
1052
1046
|
pos = _unary__edvuaz + 1 | 0;
|
|
1053
1047
|
// Inline function 'kotlinx.io.and' call
|
|
@@ -1057,118 +1051,118 @@
|
|
|
1057
1051
|
// Inline function 'kotlinx.io.and' call
|
|
1058
1052
|
var tmp$ret$1 = data[_unary__edvuaz_0] & 255;
|
|
1059
1053
|
var s = toShort(tmp | tmp$ret$1);
|
|
1060
|
-
this.
|
|
1054
|
+
this.yo_1 = pos;
|
|
1061
1055
|
return s;
|
|
1062
1056
|
};
|
|
1063
|
-
protoOf(Segment).
|
|
1057
|
+
protoOf(Segment).jq = function (sink, byteCount) {
|
|
1064
1058
|
// Inline function 'kotlin.check' call
|
|
1065
|
-
if (!sink.
|
|
1059
|
+
if (!sink.bp_1) {
|
|
1066
1060
|
var message = 'only owner can write';
|
|
1067
1061
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
1068
1062
|
}
|
|
1069
|
-
if ((sink.
|
|
1070
|
-
if (sink.
|
|
1063
|
+
if ((sink.zo_1 + byteCount | 0) > 8192) {
|
|
1064
|
+
if (sink.hq())
|
|
1071
1065
|
throw IllegalArgumentException_init_$Create$_0();
|
|
1072
|
-
if (((sink.
|
|
1066
|
+
if (((sink.zo_1 + byteCount | 0) - sink.yo_1 | 0) > 8192)
|
|
1073
1067
|
throw IllegalArgumentException_init_$Create$_0();
|
|
1074
|
-
var tmp0 = sink.
|
|
1075
|
-
var tmp2 = sink.
|
|
1076
|
-
var tmp5 = sink.
|
|
1068
|
+
var tmp0 = sink.xo_1;
|
|
1069
|
+
var tmp2 = sink.xo_1;
|
|
1070
|
+
var tmp5 = sink.yo_1;
|
|
1077
1071
|
// Inline function 'kotlin.collections.copyInto' call
|
|
1078
|
-
var endIndex = sink.
|
|
1072
|
+
var endIndex = sink.zo_1;
|
|
1079
1073
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1080
1074
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1081
1075
|
var tmp = tmp0;
|
|
1082
1076
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1083
1077
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1084
1078
|
arrayCopy(tmp, tmp2, 0, tmp5, endIndex);
|
|
1085
|
-
sink.
|
|
1086
|
-
sink.
|
|
1079
|
+
sink.zo_1 = sink.zo_1 - sink.yo_1 | 0;
|
|
1080
|
+
sink.yo_1 = 0;
|
|
1087
1081
|
}
|
|
1088
|
-
var tmp0_0 = this.
|
|
1089
|
-
var tmp2_0 = sink.
|
|
1090
|
-
var tmp4 = sink.
|
|
1091
|
-
var tmp6 = this.
|
|
1082
|
+
var tmp0_0 = this.xo_1;
|
|
1083
|
+
var tmp2_0 = sink.xo_1;
|
|
1084
|
+
var tmp4 = sink.zo_1;
|
|
1085
|
+
var tmp6 = this.yo_1;
|
|
1092
1086
|
// Inline function 'kotlin.collections.copyInto' call
|
|
1093
|
-
var endIndex_0 = this.
|
|
1087
|
+
var endIndex_0 = this.yo_1 + byteCount | 0;
|
|
1094
1088
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1095
1089
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1096
1090
|
var tmp_0 = tmp0_0;
|
|
1097
1091
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1098
1092
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1099
1093
|
arrayCopy(tmp_0, tmp2_0, tmp4, tmp6, endIndex_0);
|
|
1100
|
-
sink.
|
|
1101
|
-
this.
|
|
1094
|
+
sink.zo_1 = sink.zo_1 + byteCount | 0;
|
|
1095
|
+
this.yo_1 = this.yo_1 + byteCount | 0;
|
|
1102
1096
|
};
|
|
1103
|
-
protoOf(Segment).
|
|
1097
|
+
protoOf(Segment).sp = function (dst, dstStartOffset, dstEndOffset) {
|
|
1104
1098
|
var len = dstEndOffset - dstStartOffset | 0;
|
|
1105
|
-
var tmp0 = this.
|
|
1106
|
-
var tmp6 = this.
|
|
1099
|
+
var tmp0 = this.xo_1;
|
|
1100
|
+
var tmp6 = this.yo_1;
|
|
1107
1101
|
// Inline function 'kotlin.collections.copyInto' call
|
|
1108
|
-
var endIndex = this.
|
|
1102
|
+
var endIndex = this.yo_1 + len | 0;
|
|
1109
1103
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1110
1104
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1111
1105
|
var tmp = tmp0;
|
|
1112
1106
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1113
1107
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1114
1108
|
arrayCopy(tmp, dst, dstStartOffset, tmp6, endIndex);
|
|
1115
|
-
this.
|
|
1109
|
+
this.yo_1 = this.yo_1 + len | 0;
|
|
1116
1110
|
};
|
|
1117
|
-
protoOf(Segment).
|
|
1118
|
-
var tmp2 = this.
|
|
1111
|
+
protoOf(Segment).eq = function (src, srcStartOffset, srcEndOffset) {
|
|
1112
|
+
var tmp2 = this.xo_1;
|
|
1119
1113
|
// Inline function 'kotlin.collections.copyInto' call
|
|
1120
|
-
var destinationOffset = this.
|
|
1114
|
+
var destinationOffset = this.zo_1;
|
|
1121
1115
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1122
1116
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1123
1117
|
var tmp = src;
|
|
1124
1118
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1125
1119
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1126
1120
|
arrayCopy(tmp, tmp2, destinationOffset, srcStartOffset, srcEndOffset);
|
|
1127
|
-
this.
|
|
1121
|
+
this.zo_1 = this.zo_1 + (srcEndOffset - srcStartOffset | 0) | 0;
|
|
1128
1122
|
};
|
|
1129
1123
|
protoOf(Segment).l1 = function () {
|
|
1130
|
-
return this.
|
|
1124
|
+
return this.zo_1 - this.yo_1 | 0;
|
|
1131
1125
|
};
|
|
1132
|
-
protoOf(Segment).
|
|
1133
|
-
return this.
|
|
1126
|
+
protoOf(Segment).dq = function () {
|
|
1127
|
+
return this.xo_1.length - this.zo_1 | 0;
|
|
1134
1128
|
};
|
|
1135
|
-
protoOf(Segment).
|
|
1136
|
-
return this.
|
|
1129
|
+
protoOf(Segment).ir = function (readOnly) {
|
|
1130
|
+
return this.xo_1;
|
|
1137
1131
|
};
|
|
1138
|
-
protoOf(Segment).
|
|
1139
|
-
return this.
|
|
1132
|
+
protoOf(Segment).pp = function (index) {
|
|
1133
|
+
return this.xo_1[this.yo_1 + index | 0];
|
|
1140
1134
|
};
|
|
1141
|
-
protoOf(Segment).
|
|
1142
|
-
this.
|
|
1135
|
+
protoOf(Segment).jr = function (index, value) {
|
|
1136
|
+
this.xo_1[this.zo_1 + index | 0] = value;
|
|
1143
1137
|
};
|
|
1144
|
-
protoOf(Segment).
|
|
1145
|
-
var d = this.
|
|
1146
|
-
var l = this.
|
|
1138
|
+
protoOf(Segment).kr = function (index, b0, b1) {
|
|
1139
|
+
var d = this.xo_1;
|
|
1140
|
+
var l = this.zo_1;
|
|
1147
1141
|
d[l + index | 0] = b0;
|
|
1148
1142
|
d[(l + index | 0) + 1 | 0] = b1;
|
|
1149
1143
|
};
|
|
1150
|
-
protoOf(Segment).
|
|
1151
|
-
var d = this.
|
|
1152
|
-
var l = this.
|
|
1144
|
+
protoOf(Segment).lr = function (index, b0, b1, b2) {
|
|
1145
|
+
var d = this.xo_1;
|
|
1146
|
+
var l = this.zo_1;
|
|
1153
1147
|
d[l + index | 0] = b0;
|
|
1154
1148
|
d[(l + index | 0) + 1 | 0] = b1;
|
|
1155
1149
|
d[(l + index | 0) + 2 | 0] = b2;
|
|
1156
1150
|
};
|
|
1157
|
-
protoOf(Segment).
|
|
1158
|
-
var d = this.
|
|
1159
|
-
var l = this.
|
|
1151
|
+
protoOf(Segment).mr = function (index, b0, b1, b2, b3) {
|
|
1152
|
+
var d = this.xo_1;
|
|
1153
|
+
var l = this.zo_1;
|
|
1160
1154
|
d[l + index | 0] = b0;
|
|
1161
1155
|
d[(l + index | 0) + 1 | 0] = b1;
|
|
1162
1156
|
d[(l + index | 0) + 2 | 0] = b2;
|
|
1163
1157
|
d[(l + index | 0) + 3 | 0] = b3;
|
|
1164
1158
|
};
|
|
1165
1159
|
function Segment() {
|
|
1166
|
-
this.
|
|
1167
|
-
this.
|
|
1160
|
+
this.yo_1 = 0;
|
|
1161
|
+
this.zo_1 = 0;
|
|
1162
|
+
this.ap_1 = null;
|
|
1163
|
+
this.bp_1 = false;
|
|
1164
|
+
this.cp_1 = null;
|
|
1168
1165
|
this.dp_1 = null;
|
|
1169
|
-
this.ep_1 = false;
|
|
1170
|
-
this.fp_1 = null;
|
|
1171
|
-
this.gp_1 = null;
|
|
1172
1166
|
}
|
|
1173
1167
|
function isEmpty(_this__u8e3s4) {
|
|
1174
1168
|
return _this__u8e3s4.l1() === 0;
|
|
@@ -1179,10 +1173,10 @@
|
|
|
1179
1173
|
AlwaysSharedCopyTracker_instance = this;
|
|
1180
1174
|
SegmentCopyTracker.call(this);
|
|
1181
1175
|
}
|
|
1182
|
-
protoOf(AlwaysSharedCopyTracker).
|
|
1176
|
+
protoOf(AlwaysSharedCopyTracker).fr = function () {
|
|
1183
1177
|
return true;
|
|
1184
1178
|
};
|
|
1185
|
-
protoOf(AlwaysSharedCopyTracker).
|
|
1179
|
+
protoOf(AlwaysSharedCopyTracker).hr = function () {
|
|
1186
1180
|
return Unit_instance;
|
|
1187
1181
|
};
|
|
1188
1182
|
var AlwaysSharedCopyTracker_instance;
|
|
@@ -1202,8 +1196,8 @@
|
|
|
1202
1196
|
var message_0 = '' + endOffset;
|
|
1203
1197
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
1204
1198
|
}
|
|
1205
|
-
var p = _this__u8e3s4.
|
|
1206
|
-
var data = _this__u8e3s4.
|
|
1199
|
+
var p = _this__u8e3s4.yo_1;
|
|
1200
|
+
var data = _this__u8e3s4.ir(true);
|
|
1207
1201
|
var inductionVariable = startOffset;
|
|
1208
1202
|
if (inductionVariable < endOffset)
|
|
1209
1203
|
do {
|
|
@@ -1227,19 +1221,19 @@
|
|
|
1227
1221
|
// Inline function 'kotlinx.io.checkByteCount' call
|
|
1228
1222
|
var byteCount_0 = fromInt(byteCount);
|
|
1229
1223
|
// Inline function 'kotlin.require' call
|
|
1230
|
-
if (!(
|
|
1224
|
+
if (!(byteCount_0 >= 0n)) {
|
|
1231
1225
|
var message = 'byteCount (' + byteCount_0.toString() + ') < 0';
|
|
1232
1226
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1233
1227
|
}
|
|
1234
1228
|
return readByteArrayImpl(_this__u8e3s4, byteCount);
|
|
1235
1229
|
}
|
|
1236
1230
|
function indexOf_1(_this__u8e3s4, byte, startIndex, endIndex) {
|
|
1237
|
-
startIndex = startIndex === VOID ?
|
|
1238
|
-
endIndex = endIndex === VOID ?
|
|
1231
|
+
startIndex = startIndex === VOID ? 0n : startIndex;
|
|
1232
|
+
endIndex = endIndex === VOID ? 9223372036854775807n : endIndex;
|
|
1239
1233
|
// Inline function 'kotlin.require' call
|
|
1240
|
-
if (!(
|
|
1234
|
+
if (!(0n <= startIndex ? startIndex <= endIndex : false)) {
|
|
1241
1235
|
var tmp;
|
|
1242
|
-
if (
|
|
1236
|
+
if (endIndex < 0n) {
|
|
1243
1237
|
tmp = 'startIndex (' + startIndex.toString() + ') and endIndex (' + endIndex.toString() + ') should be non negative';
|
|
1244
1238
|
} else {
|
|
1245
1239
|
tmp = 'startIndex (' + startIndex.toString() + ') is not within the range [0..endIndex(' + endIndex.toString() + '))';
|
|
@@ -1247,55 +1241,55 @@
|
|
|
1247
1241
|
var message = tmp;
|
|
1248
1242
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1249
1243
|
}
|
|
1250
|
-
if (
|
|
1251
|
-
return
|
|
1244
|
+
if (startIndex === endIndex)
|
|
1245
|
+
return -1n;
|
|
1252
1246
|
var offset = startIndex;
|
|
1253
1247
|
$l$loop: while (true) {
|
|
1254
1248
|
var tmp_0;
|
|
1255
|
-
if (
|
|
1249
|
+
if (offset < endIndex) {
|
|
1256
1250
|
// Inline function 'kotlin.Long.plus' call
|
|
1257
1251
|
var this_0 = offset;
|
|
1258
1252
|
var tmp$ret$2 = add(this_0, fromInt(1));
|
|
1259
|
-
tmp_0 = _this__u8e3s4.
|
|
1253
|
+
tmp_0 = _this__u8e3s4.vo(tmp$ret$2);
|
|
1260
1254
|
} else {
|
|
1261
1255
|
tmp_0 = false;
|
|
1262
1256
|
}
|
|
1263
1257
|
if (!tmp_0) {
|
|
1264
1258
|
break $l$loop;
|
|
1265
1259
|
}
|
|
1266
|
-
var tmp_1 = _this__u8e3s4.
|
|
1260
|
+
var tmp_1 = _this__u8e3s4.so();
|
|
1267
1261
|
var tmp_2 = offset;
|
|
1268
1262
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
1269
|
-
var b = _this__u8e3s4.
|
|
1270
|
-
var tmp$ret$3 =
|
|
1263
|
+
var b = _this__u8e3s4.so().l1();
|
|
1264
|
+
var tmp$ret$3 = endIndex <= b ? endIndex : b;
|
|
1271
1265
|
var idx = indexOf(tmp_1, byte, tmp_2, tmp$ret$3);
|
|
1272
|
-
if (!
|
|
1266
|
+
if (!(idx === -1n)) {
|
|
1273
1267
|
return idx;
|
|
1274
1268
|
}
|
|
1275
|
-
offset = _this__u8e3s4.
|
|
1269
|
+
offset = _this__u8e3s4.so().l1();
|
|
1276
1270
|
}
|
|
1277
|
-
return
|
|
1271
|
+
return -1n;
|
|
1278
1272
|
}
|
|
1279
1273
|
function readByteArrayImpl(_this__u8e3s4, size) {
|
|
1280
1274
|
var arraySize = size;
|
|
1281
1275
|
if (size === -1) {
|
|
1282
|
-
var fetchSize =
|
|
1283
|
-
while (
|
|
1276
|
+
var fetchSize = 2147483647n;
|
|
1277
|
+
while (_this__u8e3s4.so().l1() < 2147483647n && _this__u8e3s4.vo(fetchSize)) {
|
|
1284
1278
|
// Inline function 'kotlin.Long.times' call
|
|
1285
1279
|
var this_0 = fetchSize;
|
|
1286
1280
|
fetchSize = multiply(this_0, fromInt(2));
|
|
1287
1281
|
}
|
|
1288
1282
|
// Inline function 'kotlin.check' call
|
|
1289
|
-
if (!(
|
|
1290
|
-
var message = "Can't create an array of size " + _this__u8e3s4.
|
|
1283
|
+
if (!(_this__u8e3s4.so().l1() < 2147483647n)) {
|
|
1284
|
+
var message = "Can't create an array of size " + _this__u8e3s4.so().l1().toString();
|
|
1291
1285
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
1292
1286
|
}
|
|
1293
|
-
arraySize = convertToInt(_this__u8e3s4.
|
|
1287
|
+
arraySize = convertToInt(_this__u8e3s4.so().l1());
|
|
1294
1288
|
} else {
|
|
1295
|
-
_this__u8e3s4.
|
|
1289
|
+
_this__u8e3s4.uo(fromInt(size));
|
|
1296
1290
|
}
|
|
1297
1291
|
var array = new Int8Array(arraySize);
|
|
1298
|
-
readTo(_this__u8e3s4.
|
|
1292
|
+
readTo(_this__u8e3s4.so(), array);
|
|
1299
1293
|
return array;
|
|
1300
1294
|
}
|
|
1301
1295
|
function readTo(_this__u8e3s4, sink, startIndex, endIndex) {
|
|
@@ -1306,7 +1300,7 @@
|
|
|
1306
1300
|
checkBounds(fromInt(size), fromInt(startIndex), fromInt(endIndex));
|
|
1307
1301
|
var offset = startIndex;
|
|
1308
1302
|
while (offset < endIndex) {
|
|
1309
|
-
var bytesRead = _this__u8e3s4.
|
|
1303
|
+
var bytesRead = _this__u8e3s4.rp(sink, offset, endIndex);
|
|
1310
1304
|
if (bytesRead === -1) {
|
|
1311
1305
|
throw EOFException_init_$Create$_0('Source exhausted before reading ' + (endIndex - startIndex | 0) + ' bytes. ' + ('Only ' + bytesRead + ' bytes were read.'));
|
|
1312
1306
|
}
|
|
@@ -1317,12 +1311,12 @@
|
|
|
1317
1311
|
return commonReadUtf8(_this__u8e3s4, _this__u8e3s4.l1());
|
|
1318
1312
|
}
|
|
1319
1313
|
function readString_0(_this__u8e3s4) {
|
|
1320
|
-
_this__u8e3s4.
|
|
1321
|
-
return commonReadUtf8(_this__u8e3s4.
|
|
1314
|
+
_this__u8e3s4.vo(9223372036854775807n);
|
|
1315
|
+
return commonReadUtf8(_this__u8e3s4.so(), _this__u8e3s4.so().l1());
|
|
1322
1316
|
}
|
|
1323
1317
|
function readString_1(_this__u8e3s4, byteCount) {
|
|
1324
|
-
_this__u8e3s4.
|
|
1325
|
-
return commonReadUtf8(_this__u8e3s4.
|
|
1318
|
+
_this__u8e3s4.uo(byteCount);
|
|
1319
|
+
return commonReadUtf8(_this__u8e3s4.so(), byteCount);
|
|
1326
1320
|
}
|
|
1327
1321
|
function writeString(_this__u8e3s4, string, startIndex, endIndex) {
|
|
1328
1322
|
startIndex = startIndex === VOID ? 0 : startIndex;
|
|
@@ -1332,7 +1326,7 @@
|
|
|
1332
1326
|
checkBounds(fromInt(size), fromInt(startIndex), fromInt(endIndex));
|
|
1333
1327
|
// Inline function 'kotlinx.io.writeToInternalBuffer' call
|
|
1334
1328
|
// Inline function 'kotlinx.io.commonWriteUtf8' call
|
|
1335
|
-
var this_0 = _this__u8e3s4.
|
|
1329
|
+
var this_0 = _this__u8e3s4.so();
|
|
1336
1330
|
var i = startIndex;
|
|
1337
1331
|
while (i < endIndex) {
|
|
1338
1332
|
var p0 = i;
|
|
@@ -1342,15 +1336,15 @@
|
|
|
1342
1336
|
if (c < 128) {
|
|
1343
1337
|
$l$block_0: {
|
|
1344
1338
|
// Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.writeToTail' call
|
|
1345
|
-
var tail = this_0.
|
|
1339
|
+
var tail = this_0.yp(1);
|
|
1346
1340
|
var ctx = get_SegmentWriteContextImpl();
|
|
1347
1341
|
var segmentOffset = -i | 0;
|
|
1348
1342
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
1349
|
-
var b = i + tail.
|
|
1343
|
+
var b = i + tail.dq() | 0;
|
|
1350
1344
|
var runLimit = Math.min(endIndex, b);
|
|
1351
1345
|
var _unary__edvuaz = i;
|
|
1352
1346
|
i = _unary__edvuaz + 1 | 0;
|
|
1353
|
-
ctx.
|
|
1347
|
+
ctx.qr(tail, segmentOffset + _unary__edvuaz | 0, toByte(c));
|
|
1354
1348
|
$l$loop: while (i < runLimit) {
|
|
1355
1349
|
var p0_0 = i;
|
|
1356
1350
|
// Inline function 'kotlin.code' call
|
|
@@ -1360,95 +1354,95 @@
|
|
|
1360
1354
|
break $l$loop;
|
|
1361
1355
|
var _unary__edvuaz_0 = i;
|
|
1362
1356
|
i = _unary__edvuaz_0 + 1 | 0;
|
|
1363
|
-
ctx.
|
|
1357
|
+
ctx.qr(tail, segmentOffset + _unary__edvuaz_0 | 0, toByte(c));
|
|
1364
1358
|
}
|
|
1365
1359
|
var bytesWritten = i + segmentOffset | 0;
|
|
1366
1360
|
if (bytesWritten === 1) {
|
|
1367
|
-
tail.
|
|
1361
|
+
tail.zo_1 = tail.zo_1 + bytesWritten | 0;
|
|
1368
1362
|
var tmp = this_0;
|
|
1369
1363
|
// Inline function 'kotlin.Long.plus' call
|
|
1370
|
-
var this_3 = this_0.
|
|
1371
|
-
tmp.
|
|
1364
|
+
var this_3 = this_0.ro_1;
|
|
1365
|
+
tmp.ro_1 = add(this_3, fromInt(bytesWritten));
|
|
1372
1366
|
break $l$block_0;
|
|
1373
1367
|
}
|
|
1374
1368
|
// Inline function 'kotlin.check' call
|
|
1375
|
-
if (!(0 <= bytesWritten ? bytesWritten <= tail.
|
|
1376
|
-
var message = 'Invalid number of bytes written: ' + bytesWritten + '. Should be in 0..' + tail.
|
|
1369
|
+
if (!(0 <= bytesWritten ? bytesWritten <= tail.dq() : false)) {
|
|
1370
|
+
var message = 'Invalid number of bytes written: ' + bytesWritten + '. Should be in 0..' + tail.dq();
|
|
1377
1371
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
1378
1372
|
}
|
|
1379
1373
|
if (!(bytesWritten === 0)) {
|
|
1380
|
-
tail.
|
|
1374
|
+
tail.zo_1 = tail.zo_1 + bytesWritten | 0;
|
|
1381
1375
|
var tmp_0 = this_0;
|
|
1382
1376
|
// Inline function 'kotlin.Long.plus' call
|
|
1383
|
-
var this_4 = this_0.
|
|
1384
|
-
tmp_0.
|
|
1377
|
+
var this_4 = this_0.ro_1;
|
|
1378
|
+
tmp_0.ro_1 = add(this_4, fromInt(bytesWritten));
|
|
1385
1379
|
break $l$block_0;
|
|
1386
1380
|
}
|
|
1387
1381
|
if (isEmpty(tail)) {
|
|
1388
|
-
this_0.
|
|
1382
|
+
this_0.sq();
|
|
1389
1383
|
}
|
|
1390
1384
|
}
|
|
1391
1385
|
} else if (c < 2048) {
|
|
1392
1386
|
$l$block_2: {
|
|
1393
1387
|
// Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.writeToTail' call
|
|
1394
|
-
var tail_0 = this_0.
|
|
1395
|
-
get_SegmentWriteContextImpl().
|
|
1388
|
+
var tail_0 = this_0.yp(2);
|
|
1389
|
+
get_SegmentWriteContextImpl().pr(tail_0, 0, toByte(c >> 6 | 192), toByte(c & 63 | 128));
|
|
1396
1390
|
var bytesWritten_0 = 2;
|
|
1397
1391
|
if (bytesWritten_0 === 2) {
|
|
1398
|
-
tail_0.
|
|
1392
|
+
tail_0.zo_1 = tail_0.zo_1 + bytesWritten_0 | 0;
|
|
1399
1393
|
var tmp_1 = this_0;
|
|
1400
1394
|
// Inline function 'kotlin.Long.plus' call
|
|
1401
|
-
var this_5 = this_0.
|
|
1402
|
-
tmp_1.
|
|
1395
|
+
var this_5 = this_0.ro_1;
|
|
1396
|
+
tmp_1.ro_1 = add(this_5, fromInt(bytesWritten_0));
|
|
1403
1397
|
break $l$block_2;
|
|
1404
1398
|
}
|
|
1405
1399
|
// Inline function 'kotlin.check' call
|
|
1406
|
-
if (!(0 <= bytesWritten_0 ? bytesWritten_0 <= tail_0.
|
|
1407
|
-
var message_0 = 'Invalid number of bytes written: ' + bytesWritten_0 + '. Should be in 0..' + tail_0.
|
|
1400
|
+
if (!(0 <= bytesWritten_0 ? bytesWritten_0 <= tail_0.dq() : false)) {
|
|
1401
|
+
var message_0 = 'Invalid number of bytes written: ' + bytesWritten_0 + '. Should be in 0..' + tail_0.dq();
|
|
1408
1402
|
throw IllegalStateException_init_$Create$(toString(message_0));
|
|
1409
1403
|
}
|
|
1410
1404
|
if (!(bytesWritten_0 === 0)) {
|
|
1411
|
-
tail_0.
|
|
1405
|
+
tail_0.zo_1 = tail_0.zo_1 + bytesWritten_0 | 0;
|
|
1412
1406
|
var tmp_2 = this_0;
|
|
1413
1407
|
// Inline function 'kotlin.Long.plus' call
|
|
1414
|
-
var this_6 = this_0.
|
|
1415
|
-
tmp_2.
|
|
1408
|
+
var this_6 = this_0.ro_1;
|
|
1409
|
+
tmp_2.ro_1 = add(this_6, fromInt(bytesWritten_0));
|
|
1416
1410
|
break $l$block_2;
|
|
1417
1411
|
}
|
|
1418
1412
|
if (isEmpty(tail_0)) {
|
|
1419
|
-
this_0.
|
|
1413
|
+
this_0.sq();
|
|
1420
1414
|
}
|
|
1421
1415
|
}
|
|
1422
1416
|
i = i + 1 | 0;
|
|
1423
1417
|
} else if (c < 55296 || c > 57343) {
|
|
1424
1418
|
$l$block_4: {
|
|
1425
1419
|
// Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.writeToTail' call
|
|
1426
|
-
var tail_1 = this_0.
|
|
1427
|
-
get_SegmentWriteContextImpl().
|
|
1420
|
+
var tail_1 = this_0.yp(3);
|
|
1421
|
+
get_SegmentWriteContextImpl().or(tail_1, 0, toByte(c >> 12 | 224), toByte(c >> 6 & 63 | 128), toByte(c & 63 | 128));
|
|
1428
1422
|
var bytesWritten_1 = 3;
|
|
1429
1423
|
if (bytesWritten_1 === 3) {
|
|
1430
|
-
tail_1.
|
|
1424
|
+
tail_1.zo_1 = tail_1.zo_1 + bytesWritten_1 | 0;
|
|
1431
1425
|
var tmp_3 = this_0;
|
|
1432
1426
|
// Inline function 'kotlin.Long.plus' call
|
|
1433
|
-
var this_7 = this_0.
|
|
1434
|
-
tmp_3.
|
|
1427
|
+
var this_7 = this_0.ro_1;
|
|
1428
|
+
tmp_3.ro_1 = add(this_7, fromInt(bytesWritten_1));
|
|
1435
1429
|
break $l$block_4;
|
|
1436
1430
|
}
|
|
1437
1431
|
// Inline function 'kotlin.check' call
|
|
1438
|
-
if (!(0 <= bytesWritten_1 ? bytesWritten_1 <= tail_1.
|
|
1439
|
-
var message_1 = 'Invalid number of bytes written: ' + bytesWritten_1 + '. Should be in 0..' + tail_1.
|
|
1432
|
+
if (!(0 <= bytesWritten_1 ? bytesWritten_1 <= tail_1.dq() : false)) {
|
|
1433
|
+
var message_1 = 'Invalid number of bytes written: ' + bytesWritten_1 + '. Should be in 0..' + tail_1.dq();
|
|
1440
1434
|
throw IllegalStateException_init_$Create$(toString(message_1));
|
|
1441
1435
|
}
|
|
1442
1436
|
if (!(bytesWritten_1 === 0)) {
|
|
1443
|
-
tail_1.
|
|
1437
|
+
tail_1.zo_1 = tail_1.zo_1 + bytesWritten_1 | 0;
|
|
1444
1438
|
var tmp_4 = this_0;
|
|
1445
1439
|
// Inline function 'kotlin.Long.plus' call
|
|
1446
|
-
var this_8 = this_0.
|
|
1447
|
-
tmp_4.
|
|
1440
|
+
var this_8 = this_0.ro_1;
|
|
1441
|
+
tmp_4.ro_1 = add(this_8, fromInt(bytesWritten_1));
|
|
1448
1442
|
break $l$block_4;
|
|
1449
1443
|
}
|
|
1450
1444
|
if (isEmpty(tail_1)) {
|
|
1451
|
-
this_0.
|
|
1445
|
+
this_0.sq();
|
|
1452
1446
|
}
|
|
1453
1447
|
}
|
|
1454
1448
|
i = i + 1 | 0;
|
|
@@ -1467,64 +1461,64 @@
|
|
|
1467
1461
|
// Inline function 'kotlin.code' call
|
|
1468
1462
|
var this_10 = _Char___init__impl__6a9atx(63);
|
|
1469
1463
|
var tmp$ret$26 = Char__toInt_impl_vasixd(this_10);
|
|
1470
|
-
this_0.
|
|
1464
|
+
this_0.mq(toByte(tmp$ret$26));
|
|
1471
1465
|
i = i + 1 | 0;
|
|
1472
1466
|
} else {
|
|
1473
1467
|
var codePoint = 65536 + ((c & 1023) << 10 | low & 1023) | 0;
|
|
1474
1468
|
$l$block_6: {
|
|
1475
1469
|
// Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.writeToTail' call
|
|
1476
|
-
var tail_2 = this_0.
|
|
1477
|
-
get_SegmentWriteContextImpl().
|
|
1470
|
+
var tail_2 = this_0.yp(4);
|
|
1471
|
+
get_SegmentWriteContextImpl().nr(tail_2, 0, toByte(codePoint >> 18 | 240), toByte(codePoint >> 12 & 63 | 128), toByte(codePoint >> 6 & 63 | 128), toByte(codePoint & 63 | 128));
|
|
1478
1472
|
var bytesWritten_2 = 4;
|
|
1479
1473
|
if (bytesWritten_2 === 4) {
|
|
1480
|
-
tail_2.
|
|
1474
|
+
tail_2.zo_1 = tail_2.zo_1 + bytesWritten_2 | 0;
|
|
1481
1475
|
var tmp_6 = this_0;
|
|
1482
1476
|
// Inline function 'kotlin.Long.plus' call
|
|
1483
|
-
var this_11 = this_0.
|
|
1484
|
-
tmp_6.
|
|
1477
|
+
var this_11 = this_0.ro_1;
|
|
1478
|
+
tmp_6.ro_1 = add(this_11, fromInt(bytesWritten_2));
|
|
1485
1479
|
break $l$block_6;
|
|
1486
1480
|
}
|
|
1487
1481
|
// Inline function 'kotlin.check' call
|
|
1488
|
-
if (!(0 <= bytesWritten_2 ? bytesWritten_2 <= tail_2.
|
|
1489
|
-
var message_2 = 'Invalid number of bytes written: ' + bytesWritten_2 + '. Should be in 0..' + tail_2.
|
|
1482
|
+
if (!(0 <= bytesWritten_2 ? bytesWritten_2 <= tail_2.dq() : false)) {
|
|
1483
|
+
var message_2 = 'Invalid number of bytes written: ' + bytesWritten_2 + '. Should be in 0..' + tail_2.dq();
|
|
1490
1484
|
throw IllegalStateException_init_$Create$(toString(message_2));
|
|
1491
1485
|
}
|
|
1492
1486
|
if (!(bytesWritten_2 === 0)) {
|
|
1493
|
-
tail_2.
|
|
1487
|
+
tail_2.zo_1 = tail_2.zo_1 + bytesWritten_2 | 0;
|
|
1494
1488
|
var tmp_7 = this_0;
|
|
1495
1489
|
// Inline function 'kotlin.Long.plus' call
|
|
1496
|
-
var this_12 = this_0.
|
|
1497
|
-
tmp_7.
|
|
1490
|
+
var this_12 = this_0.ro_1;
|
|
1491
|
+
tmp_7.ro_1 = add(this_12, fromInt(bytesWritten_2));
|
|
1498
1492
|
break $l$block_6;
|
|
1499
1493
|
}
|
|
1500
1494
|
if (isEmpty(tail_2)) {
|
|
1501
|
-
this_0.
|
|
1495
|
+
this_0.sq();
|
|
1502
1496
|
}
|
|
1503
1497
|
}
|
|
1504
1498
|
i = i + 2 | 0;
|
|
1505
1499
|
}
|
|
1506
1500
|
}
|
|
1507
1501
|
}
|
|
1508
|
-
_this__u8e3s4.
|
|
1502
|
+
_this__u8e3s4.ip();
|
|
1509
1503
|
}
|
|
1510
1504
|
function commonReadUtf8(_this__u8e3s4, byteCount) {
|
|
1511
|
-
if (
|
|
1505
|
+
if (byteCount === 0n)
|
|
1512
1506
|
return '';
|
|
1513
1507
|
// Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.forEachSegment' call
|
|
1514
|
-
var curr = _this__u8e3s4.
|
|
1508
|
+
var curr = _this__u8e3s4.po_1;
|
|
1515
1509
|
while (!(curr == null)) {
|
|
1516
1510
|
get_SegmentReadContextImpl();
|
|
1517
|
-
if (
|
|
1511
|
+
if (fromInt(curr.l1()) >= byteCount) {
|
|
1518
1512
|
var result = '';
|
|
1519
1513
|
// Inline function 'kotlinx.io.unsafe.withData' call
|
|
1520
|
-
var tmp0 = curr.
|
|
1521
|
-
var tmp2 = curr.
|
|
1522
|
-
var tmp0_0 = curr.
|
|
1514
|
+
var tmp0 = curr.ir(true);
|
|
1515
|
+
var tmp2 = curr.yo_1;
|
|
1516
|
+
var tmp0_0 = curr.zo_1;
|
|
1523
1517
|
// Inline function 'kotlin.math.min' call
|
|
1524
1518
|
var b = tmp2 + convertToInt(byteCount) | 0;
|
|
1525
1519
|
var tmp$ret$0 = Math.min(tmp0_0, b);
|
|
1526
1520
|
result = commonToUtf8String(tmp0, tmp2, tmp$ret$0);
|
|
1527
|
-
_this__u8e3s4.
|
|
1521
|
+
_this__u8e3s4.qp(byteCount);
|
|
1528
1522
|
return result;
|
|
1529
1523
|
}
|
|
1530
1524
|
return commonToUtf8String(readByteArray_0(_this__u8e3s4, convertToInt(byteCount)));
|
|
@@ -1895,27 +1889,27 @@
|
|
|
1895
1889
|
}
|
|
1896
1890
|
function SegmentReadContextImpl$1() {
|
|
1897
1891
|
}
|
|
1898
|
-
protoOf(SegmentReadContextImpl$1).
|
|
1899
|
-
return segment.
|
|
1892
|
+
protoOf(SegmentReadContextImpl$1).qq = function (segment, offset) {
|
|
1893
|
+
return segment.pp(offset);
|
|
1900
1894
|
};
|
|
1901
1895
|
function SegmentWriteContextImpl$1() {
|
|
1902
1896
|
}
|
|
1903
|
-
protoOf(SegmentWriteContextImpl$1).
|
|
1904
|
-
segment.
|
|
1897
|
+
protoOf(SegmentWriteContextImpl$1).qr = function (segment, offset, value) {
|
|
1898
|
+
segment.jr(offset, value);
|
|
1905
1899
|
};
|
|
1906
|
-
protoOf(SegmentWriteContextImpl$1).
|
|
1907
|
-
segment.
|
|
1900
|
+
protoOf(SegmentWriteContextImpl$1).pr = function (segment, offset, b0, b1) {
|
|
1901
|
+
segment.kr(offset, b0, b1);
|
|
1908
1902
|
};
|
|
1909
|
-
protoOf(SegmentWriteContextImpl$1).
|
|
1910
|
-
segment.
|
|
1903
|
+
protoOf(SegmentWriteContextImpl$1).or = function (segment, offset, b0, b1, b2) {
|
|
1904
|
+
segment.lr(offset, b0, b1, b2);
|
|
1911
1905
|
};
|
|
1912
|
-
protoOf(SegmentWriteContextImpl$1).
|
|
1913
|
-
segment.
|
|
1906
|
+
protoOf(SegmentWriteContextImpl$1).nr = function (segment, offset, b0, b1, b2, b3) {
|
|
1907
|
+
segment.mr(offset, b0, b1, b2, b3);
|
|
1914
1908
|
};
|
|
1915
1909
|
function BufferIterationContextImpl$1() {
|
|
1916
1910
|
}
|
|
1917
|
-
protoOf(BufferIterationContextImpl$1).
|
|
1918
|
-
return get_SegmentReadContextImpl().
|
|
1911
|
+
protoOf(BufferIterationContextImpl$1).qq = function (segment, offset) {
|
|
1912
|
+
return get_SegmentReadContextImpl().qq(segment, offset);
|
|
1919
1913
|
};
|
|
1920
1914
|
var properties_initialized_UnsafeBufferOperations_kt_2xfgoc;
|
|
1921
1915
|
function _init_properties_UnsafeBufferOperations_kt__xw75gy() {
|
|
@@ -1983,15 +1977,15 @@
|
|
|
1983
1977
|
captureStack(this, EOFException);
|
|
1984
1978
|
}
|
|
1985
1979
|
function SegmentPool() {
|
|
1986
|
-
this.
|
|
1987
|
-
this.
|
|
1980
|
+
this.zp_1 = 0;
|
|
1981
|
+
this.aq_1 = 0;
|
|
1988
1982
|
}
|
|
1989
|
-
protoOf(SegmentPool).
|
|
1990
|
-
return Companion_instance.
|
|
1983
|
+
protoOf(SegmentPool).bq = function () {
|
|
1984
|
+
return Companion_instance.er();
|
|
1991
1985
|
};
|
|
1992
|
-
protoOf(SegmentPool).
|
|
1986
|
+
protoOf(SegmentPool).rq = function (segment) {
|
|
1993
1987
|
};
|
|
1994
|
-
protoOf(SegmentPool).
|
|
1988
|
+
protoOf(SegmentPool).gr = function () {
|
|
1995
1989
|
return AlwaysSharedCopyTracker_getInstance();
|
|
1996
1990
|
};
|
|
1997
1991
|
var SegmentPool_instance;
|
|
@@ -1999,7 +1993,7 @@
|
|
|
1999
1993
|
return SegmentPool_instance;
|
|
2000
1994
|
}
|
|
2001
1995
|
//region block: post-declaration
|
|
2002
|
-
protoOf(Buffer).
|
|
1996
|
+
protoOf(Buffer).fq = write$default;
|
|
2003
1997
|
//endregion
|
|
2004
1998
|
//region block: init
|
|
2005
1999
|
Companion_instance = new Companion();
|