@doordeck/doordeck-headless-sdk 0.94.0 → 0.95.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/Kotlin-DateTime-library-kotlinx-datetime.js +1471 -1471
- package/kotlin/KotlinMultiplatformLibsodium-multiplatform-crypto-libsodium-bindings.js +27 -27
- package/kotlin/MultiplatformSettings-multiplatform-settings.js +13 -13
- package/kotlin/doordeck-sdk.js +9661 -9661
- package/kotlin/kotlin-kotlin-stdlib.js +866 -739
- package/kotlin/kotlinx-atomicfu.js +18 -18
- package/kotlin/kotlinx-coroutines-core.js +2595 -1845
- package/kotlin/kotlinx-io-kotlinx-io-bytestring.js +42 -42
- package/kotlin/kotlinx-io-kotlinx-io-core.js +447 -447
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +1818 -1818
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +1424 -1424
- package/kotlin/ktor-ktor-client-ktor-client-core.js +1898 -1898
- package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-auth.js +411 -323
- package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-content-negotiation.js +156 -156
- package/kotlin/ktor-ktor-http-ktor-http-cio.js +603 -363
- package/kotlin/ktor-ktor-http.js +754 -754
- package/kotlin/ktor-ktor-io.js +629 -629
- package/kotlin/ktor-ktor-shared-ktor-events.js +12 -12
- package/kotlin/ktor-ktor-shared-ktor-serialization-ktor-serialization-kotlinx-ktor-serialization-kotlinx-json.js +7 -7
- package/kotlin/ktor-ktor-shared-ktor-serialization-ktor-serialization-kotlinx.js +158 -158
- package/kotlin/ktor-ktor-shared-ktor-serialization.js +78 -78
- package/kotlin/ktor-ktor-shared-ktor-websockets.js +52 -52
- package/kotlin/ktor-ktor-utils.js +627 -603
- package/package.json +4 -4
|
@@ -3,39 +3,39 @@
|
|
|
3
3
|
//region block: imports
|
|
4
4
|
var imul = Math.imul;
|
|
5
5
|
var IndexOutOfBoundsException_init_$Create$ = kotlin_kotlin.$_$.d2;
|
|
6
|
-
var Long = kotlin_kotlin.$_$.
|
|
6
|
+
var Long = kotlin_kotlin.$_$.mf;
|
|
7
7
|
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.w1;
|
|
8
8
|
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.t2;
|
|
9
|
-
var charArrayOf = kotlin_kotlin.$_$.
|
|
10
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
11
|
-
var toString = kotlin_kotlin.$_$.
|
|
9
|
+
var charArrayOf = kotlin_kotlin.$_$.ea;
|
|
10
|
+
var protoOf = kotlin_kotlin.$_$.ub;
|
|
11
|
+
var toString = kotlin_kotlin.$_$.yb;
|
|
12
12
|
var Unit_instance = kotlin_kotlin.$_$.k5;
|
|
13
|
-
var toShort = kotlin_kotlin.$_$.
|
|
14
|
-
var ensureNotNull = kotlin_kotlin.$_$.
|
|
15
|
-
var toLong = kotlin_kotlin.$_$.
|
|
13
|
+
var toShort = kotlin_kotlin.$_$.xb;
|
|
14
|
+
var ensureNotNull = kotlin_kotlin.$_$.kg;
|
|
15
|
+
var toLong = kotlin_kotlin.$_$.wb;
|
|
16
16
|
var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.i1;
|
|
17
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
17
|
+
var initMetadataForClass = kotlin_kotlin.$_$.sa;
|
|
18
18
|
var VOID = kotlin_kotlin.$_$.h;
|
|
19
19
|
var UnsafeByteStringOperations_instance = kotlin_org_jetbrains_kotlinx_kotlinx_io_bytestring.$_$.b;
|
|
20
20
|
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.a2;
|
|
21
|
-
var AutoCloseable = kotlin_kotlin.$_$.
|
|
22
|
-
var objectCreate = kotlin_kotlin.$_$.
|
|
23
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.
|
|
21
|
+
var AutoCloseable = kotlin_kotlin.$_$.af;
|
|
22
|
+
var objectCreate = kotlin_kotlin.$_$.tb;
|
|
23
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.ta;
|
|
24
24
|
var arrayCopy = kotlin_kotlin.$_$.a6;
|
|
25
|
-
var toByte = kotlin_kotlin.$_$.
|
|
25
|
+
var toByte = kotlin_kotlin.$_$.vb;
|
|
26
26
|
var IllegalArgumentException_init_$Create$_0 = kotlin_kotlin.$_$.u1;
|
|
27
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
28
|
-
var initMetadataForInterface = kotlin_kotlin.$_$.
|
|
29
|
-
var charSequenceGet = kotlin_kotlin.$_$.
|
|
27
|
+
var initMetadataForObject = kotlin_kotlin.$_$.ya;
|
|
28
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.wa;
|
|
29
|
+
var charSequenceGet = kotlin_kotlin.$_$.ga;
|
|
30
30
|
var Char__toInt_impl_vasixd = kotlin_kotlin.$_$.z2;
|
|
31
|
-
var charArray = kotlin_kotlin.$_$.
|
|
32
|
-
var numberToChar = kotlin_kotlin.$_$.
|
|
33
|
-
var concatToString = kotlin_kotlin.$_$.
|
|
31
|
+
var charArray = kotlin_kotlin.$_$.fa;
|
|
32
|
+
var numberToChar = kotlin_kotlin.$_$.pb;
|
|
33
|
+
var concatToString = kotlin_kotlin.$_$.rc;
|
|
34
34
|
var Exception_init_$Init$ = kotlin_kotlin.$_$.n1;
|
|
35
|
-
var captureStack = kotlin_kotlin.$_$.
|
|
35
|
+
var captureStack = kotlin_kotlin.$_$.da;
|
|
36
36
|
var Exception_init_$Init$_0 = kotlin_kotlin.$_$.o1;
|
|
37
37
|
var Exception_init_$Init$_1 = kotlin_kotlin.$_$.q1;
|
|
38
|
-
var Exception = kotlin_kotlin.$_$.
|
|
38
|
+
var Exception = kotlin_kotlin.$_$.jf;
|
|
39
39
|
//endregion
|
|
40
40
|
//region block: pre-declaration
|
|
41
41
|
initMetadataForInterface(Source, 'Source', VOID, VOID, [AutoCloseable]);
|
|
@@ -44,10 +44,10 @@
|
|
|
44
44
|
endIndex = endIndex === VOID ? source.length : endIndex;
|
|
45
45
|
var tmp;
|
|
46
46
|
if ($super === VOID) {
|
|
47
|
-
this.
|
|
47
|
+
this.t1h(source, startIndex, endIndex);
|
|
48
48
|
tmp = Unit_instance;
|
|
49
49
|
} else {
|
|
50
|
-
tmp = $super.
|
|
50
|
+
tmp = $super.t1h.call(this, source, startIndex, endIndex);
|
|
51
51
|
}
|
|
52
52
|
return tmp;
|
|
53
53
|
}
|
|
@@ -99,20 +99,20 @@
|
|
|
99
99
|
throw EOFException_init_$Create$_0("Buffer doesn't contain required number of bytes (size: " + $this.s().toString() + ', required: ' + byteCount.toString() + ')');
|
|
100
100
|
}
|
|
101
101
|
function Buffer() {
|
|
102
|
-
this.
|
|
103
|
-
this.
|
|
104
|
-
this.
|
|
102
|
+
this.g1g_1 = null;
|
|
103
|
+
this.h1g_1 = null;
|
|
104
|
+
this.i1g_1 = new Long(0, 0);
|
|
105
105
|
}
|
|
106
106
|
protoOf(Buffer).s = function () {
|
|
107
|
-
return this.
|
|
107
|
+
return this.i1g_1;
|
|
108
108
|
};
|
|
109
|
-
protoOf(Buffer).
|
|
109
|
+
protoOf(Buffer).j1g = function () {
|
|
110
110
|
return this;
|
|
111
111
|
};
|
|
112
|
-
protoOf(Buffer).
|
|
112
|
+
protoOf(Buffer).k1g = function () {
|
|
113
113
|
return this.s().equals(new Long(0, 0));
|
|
114
114
|
};
|
|
115
|
-
protoOf(Buffer).
|
|
115
|
+
protoOf(Buffer).l1g = function (byteCount) {
|
|
116
116
|
// Inline function 'kotlin.require' call
|
|
117
117
|
if (!(byteCount.e1(new Long(0, 0)) >= 0)) {
|
|
118
118
|
var message = 'byteCount: ' + byteCount.toString();
|
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
throw EOFException_init_$Create$_0("Buffer doesn't contain required number of bytes (size: " + this.s().toString() + ', required: ' + byteCount.toString() + ')');
|
|
123
123
|
}
|
|
124
124
|
};
|
|
125
|
-
protoOf(Buffer).
|
|
125
|
+
protoOf(Buffer).m1g = function (byteCount) {
|
|
126
126
|
// Inline function 'kotlin.require' call
|
|
127
127
|
if (!(byteCount.e1(new Long(0, 0)) >= 0)) {
|
|
128
128
|
var message = 'byteCount: ' + byteCount.toString() + ' < 0';
|
|
@@ -130,8 +130,8 @@
|
|
|
130
130
|
}
|
|
131
131
|
return this.s().e1(byteCount) >= 0;
|
|
132
132
|
};
|
|
133
|
-
protoOf(Buffer).
|
|
134
|
-
var tmp0_elvis_lhs = this.
|
|
133
|
+
protoOf(Buffer).n1g = function () {
|
|
134
|
+
var tmp0_elvis_lhs = this.g1g_1;
|
|
135
135
|
var tmp;
|
|
136
136
|
if (tmp0_elvis_lhs == null) {
|
|
137
137
|
throwEof(this, new Long(1, 0));
|
|
@@ -141,18 +141,18 @@
|
|
|
141
141
|
var segment = tmp;
|
|
142
142
|
var segmentSize = segment.s();
|
|
143
143
|
if (segmentSize === 0) {
|
|
144
|
-
this.
|
|
145
|
-
return this.
|
|
144
|
+
this.v1g();
|
|
145
|
+
return this.n1g();
|
|
146
146
|
}
|
|
147
|
-
var v = segment.
|
|
148
|
-
this.
|
|
147
|
+
var v = segment.w1g();
|
|
148
|
+
this.i1g_1 = this.i1g_1.a3(new Long(1, 0));
|
|
149
149
|
if (segmentSize === 1) {
|
|
150
|
-
this.
|
|
150
|
+
this.v1g();
|
|
151
151
|
}
|
|
152
152
|
return v;
|
|
153
153
|
};
|
|
154
|
-
protoOf(Buffer).
|
|
155
|
-
var tmp0_elvis_lhs = this.
|
|
154
|
+
protoOf(Buffer).x1g = function () {
|
|
155
|
+
var tmp0_elvis_lhs = this.g1g_1;
|
|
156
156
|
var tmp;
|
|
157
157
|
if (tmp0_elvis_lhs == null) {
|
|
158
158
|
throwEof(this, new Long(2, 0));
|
|
@@ -162,120 +162,120 @@
|
|
|
162
162
|
var segment = tmp;
|
|
163
163
|
var segmentSize = segment.s();
|
|
164
164
|
if (segmentSize < 2) {
|
|
165
|
-
this.
|
|
165
|
+
this.l1g(new Long(2, 0));
|
|
166
166
|
if (segmentSize === 0) {
|
|
167
|
-
this.
|
|
168
|
-
return this.
|
|
167
|
+
this.v1g();
|
|
168
|
+
return this.x1g();
|
|
169
169
|
}
|
|
170
170
|
// Inline function 'kotlinx.io.and' call
|
|
171
|
-
var tmp_0 = (this.
|
|
171
|
+
var tmp_0 = (this.n1g() & 255) << 8;
|
|
172
172
|
// Inline function 'kotlinx.io.and' call
|
|
173
|
-
var tmp$ret$1 = this.
|
|
173
|
+
var tmp$ret$1 = this.n1g() & 255;
|
|
174
174
|
return toShort(tmp_0 | tmp$ret$1);
|
|
175
175
|
}
|
|
176
|
-
var v = segment.
|
|
177
|
-
this.
|
|
176
|
+
var v = segment.y1g();
|
|
177
|
+
this.i1g_1 = this.i1g_1.a3(new Long(2, 0));
|
|
178
178
|
if (segmentSize === 2) {
|
|
179
|
-
this.
|
|
179
|
+
this.v1g();
|
|
180
180
|
}
|
|
181
181
|
return v;
|
|
182
182
|
};
|
|
183
|
-
protoOf(Buffer).
|
|
183
|
+
protoOf(Buffer).z1g = function () {
|
|
184
184
|
return Unit_instance;
|
|
185
185
|
};
|
|
186
|
-
protoOf(Buffer).
|
|
186
|
+
protoOf(Buffer).a1h = function (out, startIndex, endIndex) {
|
|
187
187
|
checkBounds(this.s(), startIndex, endIndex);
|
|
188
188
|
if (startIndex.equals(endIndex))
|
|
189
189
|
return Unit_instance;
|
|
190
190
|
var currentOffset = startIndex;
|
|
191
191
|
var remainingByteCount = endIndex.a3(startIndex);
|
|
192
|
-
out.
|
|
193
|
-
var s = this.
|
|
194
|
-
while (currentOffset.e1(toLong(ensureNotNull(s).
|
|
195
|
-
currentOffset = currentOffset.a3(toLong(s.
|
|
196
|
-
s = s.
|
|
192
|
+
out.i1g_1 = out.i1g_1.z2(remainingByteCount);
|
|
193
|
+
var s = this.g1g_1;
|
|
194
|
+
while (currentOffset.e1(toLong(ensureNotNull(s).q1g_1 - s.p1g_1 | 0)) >= 0) {
|
|
195
|
+
currentOffset = currentOffset.a3(toLong(s.q1g_1 - s.p1g_1 | 0));
|
|
196
|
+
s = s.t1g_1;
|
|
197
197
|
}
|
|
198
198
|
while (remainingByteCount.e1(new Long(0, 0)) > 0) {
|
|
199
|
-
var copy = ensureNotNull(s).
|
|
200
|
-
copy.
|
|
199
|
+
var copy = ensureNotNull(s).b1h();
|
|
200
|
+
copy.p1g_1 = copy.p1g_1 + currentOffset.j1() | 0;
|
|
201
201
|
var tmp = copy;
|
|
202
|
-
var tmp0 = copy.
|
|
202
|
+
var tmp0 = copy.p1g_1 + remainingByteCount.j1() | 0;
|
|
203
203
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
204
|
-
var b = copy.
|
|
205
|
-
tmp.
|
|
204
|
+
var b = copy.q1g_1;
|
|
205
|
+
tmp.q1g_1 = Math.min(tmp0, b);
|
|
206
206
|
// Inline function 'kotlinx.io.Buffer.pushSegment' call
|
|
207
|
-
if (out.
|
|
208
|
-
out.
|
|
209
|
-
out.
|
|
207
|
+
if (out.g1g_1 == null) {
|
|
208
|
+
out.g1g_1 = copy;
|
|
209
|
+
out.h1g_1 = copy;
|
|
210
210
|
} else if (false) {
|
|
211
|
-
out.
|
|
212
|
-
if (ensureNotNull(out.
|
|
213
|
-
out.
|
|
211
|
+
out.h1g_1 = ensureNotNull(out.h1g_1).c1h(copy).d1h();
|
|
212
|
+
if (ensureNotNull(out.h1g_1).u1g_1 == null) {
|
|
213
|
+
out.g1g_1 = out.h1g_1;
|
|
214
214
|
}
|
|
215
215
|
} else {
|
|
216
|
-
out.
|
|
216
|
+
out.h1g_1 = ensureNotNull(out.h1g_1).c1h(copy);
|
|
217
217
|
}
|
|
218
|
-
remainingByteCount = remainingByteCount.a3(toLong(copy.
|
|
218
|
+
remainingByteCount = remainingByteCount.a3(toLong(copy.q1g_1 - copy.p1g_1 | 0));
|
|
219
219
|
currentOffset = new Long(0, 0);
|
|
220
|
-
s = s.
|
|
220
|
+
s = s.t1g_1;
|
|
221
221
|
}
|
|
222
222
|
};
|
|
223
|
-
protoOf(Buffer).
|
|
223
|
+
protoOf(Buffer).e1h = function () {
|
|
224
224
|
var result = this.s();
|
|
225
225
|
if (result.equals(new Long(0, 0)))
|
|
226
226
|
return new Long(0, 0);
|
|
227
|
-
var tail = ensureNotNull(this.
|
|
228
|
-
if (tail.
|
|
229
|
-
result = result.a3(toLong(tail.
|
|
227
|
+
var tail = ensureNotNull(this.h1g_1);
|
|
228
|
+
if (tail.q1g_1 < 8192 && tail.s1g_1) {
|
|
229
|
+
result = result.a3(toLong(tail.q1g_1 - tail.p1g_1 | 0));
|
|
230
230
|
}
|
|
231
231
|
return result;
|
|
232
232
|
};
|
|
233
|
-
protoOf(Buffer).
|
|
233
|
+
protoOf(Buffer).f1h = function (position) {
|
|
234
234
|
if (position.e1(new Long(0, 0)) < 0 || position.e1(this.s()) >= 0) {
|
|
235
235
|
throw IndexOutOfBoundsException_init_$Create$('position (' + position.toString() + ') is not within the range [0..size(' + this.s().toString() + '))');
|
|
236
236
|
}
|
|
237
237
|
if (position.equals(new Long(0, 0))) {
|
|
238
|
-
return ensureNotNull(this.
|
|
238
|
+
return ensureNotNull(this.g1g_1).g1h(0);
|
|
239
239
|
}
|
|
240
240
|
// Inline function 'kotlinx.io.seek' call
|
|
241
|
-
if (this.
|
|
241
|
+
if (this.g1g_1 == null) {
|
|
242
242
|
var offset = new Long(-1, -1);
|
|
243
|
-
return ensureNotNull(null).
|
|
243
|
+
return ensureNotNull(null).g1h(position.a3(offset).j1());
|
|
244
244
|
}
|
|
245
245
|
if (this.s().a3(position).e1(position) < 0) {
|
|
246
|
-
var s = this.
|
|
246
|
+
var s = this.h1g_1;
|
|
247
247
|
var offset_0 = this.s();
|
|
248
248
|
$l$loop: while (!(s == null) && offset_0.e1(position) > 0) {
|
|
249
|
-
offset_0 = offset_0.a3(toLong(s.
|
|
249
|
+
offset_0 = offset_0.a3(toLong(s.q1g_1 - s.p1g_1 | 0));
|
|
250
250
|
if (offset_0.e1(position) <= 0)
|
|
251
251
|
break $l$loop;
|
|
252
|
-
s = s.
|
|
252
|
+
s = s.u1g_1;
|
|
253
253
|
}
|
|
254
254
|
var tmp4 = s;
|
|
255
255
|
var offset_1 = offset_0;
|
|
256
|
-
return ensureNotNull(tmp4).
|
|
256
|
+
return ensureNotNull(tmp4).g1h(position.a3(offset_1).j1());
|
|
257
257
|
} else {
|
|
258
|
-
var s_0 = this.
|
|
258
|
+
var s_0 = this.g1g_1;
|
|
259
259
|
var offset_2 = new Long(0, 0);
|
|
260
260
|
$l$loop_0: while (!(s_0 == null)) {
|
|
261
261
|
var tmp0 = offset_2;
|
|
262
262
|
// Inline function 'kotlin.Long.plus' call
|
|
263
|
-
var other = s_0.
|
|
263
|
+
var other = s_0.q1g_1 - s_0.p1g_1 | 0;
|
|
264
264
|
var nextOffset = tmp0.z2(toLong(other));
|
|
265
265
|
if (nextOffset.e1(position) > 0)
|
|
266
266
|
break $l$loop_0;
|
|
267
|
-
s_0 = s_0.
|
|
267
|
+
s_0 = s_0.t1g_1;
|
|
268
268
|
offset_2 = nextOffset;
|
|
269
269
|
}
|
|
270
270
|
var tmp6 = s_0;
|
|
271
271
|
var offset_3 = offset_2;
|
|
272
|
-
return ensureNotNull(tmp6).
|
|
272
|
+
return ensureNotNull(tmp6).g1h(position.a3(offset_3).j1());
|
|
273
273
|
}
|
|
274
274
|
};
|
|
275
275
|
protoOf(Buffer).e2 = function () {
|
|
276
|
-
return this.
|
|
276
|
+
return this.h1h(this.s());
|
|
277
277
|
};
|
|
278
|
-
protoOf(Buffer).
|
|
278
|
+
protoOf(Buffer).h1h = function (byteCount) {
|
|
279
279
|
// Inline function 'kotlinx.io.checkByteCount' call
|
|
280
280
|
// Inline function 'kotlin.require' call
|
|
281
281
|
if (!(byteCount.e1(new Long(0, 0)) >= 0)) {
|
|
@@ -284,7 +284,7 @@
|
|
|
284
284
|
}
|
|
285
285
|
var remainingByteCount = byteCount;
|
|
286
286
|
while (remainingByteCount.e1(new Long(0, 0)) > 0) {
|
|
287
|
-
var tmp0_elvis_lhs = this.
|
|
287
|
+
var tmp0_elvis_lhs = this.g1g_1;
|
|
288
288
|
var tmp;
|
|
289
289
|
if (tmp0_elvis_lhs == null) {
|
|
290
290
|
throw EOFException_init_$Create$_0('Buffer exhausted before skipping ' + byteCount.toString() + ' bytes.');
|
|
@@ -294,23 +294,23 @@
|
|
|
294
294
|
var head = tmp;
|
|
295
295
|
var tmp1 = remainingByteCount;
|
|
296
296
|
// Inline function 'kotlinx.io.minOf' call
|
|
297
|
-
var b = head.
|
|
297
|
+
var b = head.q1g_1 - head.p1g_1 | 0;
|
|
298
298
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
299
299
|
var b_0 = toLong(b);
|
|
300
300
|
var toSkip = (tmp1.e1(b_0) <= 0 ? tmp1 : b_0).j1();
|
|
301
|
-
this.
|
|
301
|
+
this.i1g_1 = this.i1g_1.a3(toLong(toSkip));
|
|
302
302
|
remainingByteCount = remainingByteCount.a3(toLong(toSkip));
|
|
303
|
-
head.
|
|
304
|
-
if (head.
|
|
305
|
-
this.
|
|
303
|
+
head.p1g_1 = head.p1g_1 + toSkip | 0;
|
|
304
|
+
if (head.p1g_1 === head.q1g_1) {
|
|
305
|
+
this.v1g();
|
|
306
306
|
}
|
|
307
307
|
}
|
|
308
308
|
};
|
|
309
|
-
protoOf(Buffer).
|
|
309
|
+
protoOf(Buffer).i1h = function (sink, startIndex, endIndex) {
|
|
310
310
|
// Inline function 'kotlinx.io.checkBounds' call
|
|
311
311
|
var size = sink.length;
|
|
312
312
|
checkBounds(toLong(size), toLong(startIndex), toLong(endIndex));
|
|
313
|
-
var tmp0_elvis_lhs = this.
|
|
313
|
+
var tmp0_elvis_lhs = this.g1g_1;
|
|
314
314
|
var tmp;
|
|
315
315
|
if (tmp0_elvis_lhs == null) {
|
|
316
316
|
return -1;
|
|
@@ -322,14 +322,14 @@
|
|
|
322
322
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
323
323
|
var b = s.s();
|
|
324
324
|
var toCopy = Math.min(tmp3, b);
|
|
325
|
-
s.
|
|
326
|
-
this.
|
|
325
|
+
s.j1h(sink, startIndex, startIndex + toCopy | 0);
|
|
326
|
+
this.i1g_1 = this.i1g_1.a3(toLong(toCopy));
|
|
327
327
|
if (isEmpty(s)) {
|
|
328
|
-
this.
|
|
328
|
+
this.v1g();
|
|
329
329
|
}
|
|
330
330
|
return toCopy;
|
|
331
331
|
};
|
|
332
|
-
protoOf(Buffer).
|
|
332
|
+
protoOf(Buffer).k1h = function (sink, byteCount) {
|
|
333
333
|
// Inline function 'kotlinx.io.checkByteCount' call
|
|
334
334
|
// Inline function 'kotlin.require' call
|
|
335
335
|
if (!(byteCount.e1(new Long(0, 0)) >= 0)) {
|
|
@@ -339,10 +339,10 @@
|
|
|
339
339
|
if (this.s().equals(new Long(0, 0)))
|
|
340
340
|
return new Long(-1, -1);
|
|
341
341
|
var bytesWritten = byteCount.e1(this.s()) > 0 ? this.s() : byteCount;
|
|
342
|
-
sink.
|
|
342
|
+
sink.l1h(this, bytesWritten);
|
|
343
343
|
return bytesWritten;
|
|
344
344
|
};
|
|
345
|
-
protoOf(Buffer).
|
|
345
|
+
protoOf(Buffer).m1h = function (sink, byteCount) {
|
|
346
346
|
// Inline function 'kotlinx.io.checkByteCount' call
|
|
347
347
|
// Inline function 'kotlin.require' call
|
|
348
348
|
if (!(byteCount.e1(new Long(0, 0)) >= 0)) {
|
|
@@ -350,62 +350,62 @@
|
|
|
350
350
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
351
351
|
}
|
|
352
352
|
if (this.s().e1(byteCount) < 0) {
|
|
353
|
-
sink.
|
|
353
|
+
sink.l1h(this, this.s());
|
|
354
354
|
throw EOFException_init_$Create$_0('Buffer exhausted before writing ' + byteCount.toString() + ' bytes. Only ' + this.s().toString() + ' bytes were written.');
|
|
355
355
|
}
|
|
356
|
-
sink.
|
|
356
|
+
sink.l1h(this, byteCount);
|
|
357
357
|
};
|
|
358
|
-
protoOf(Buffer).
|
|
358
|
+
protoOf(Buffer).n1h = function (sink) {
|
|
359
359
|
var byteCount = this.s();
|
|
360
360
|
if (byteCount.e1(new Long(0, 0)) > 0) {
|
|
361
|
-
sink.
|
|
361
|
+
sink.l1h(this, byteCount);
|
|
362
362
|
}
|
|
363
363
|
return byteCount;
|
|
364
364
|
};
|
|
365
|
-
protoOf(Buffer).
|
|
365
|
+
protoOf(Buffer).o1h = function () {
|
|
366
366
|
return buffered(new PeekSource(this));
|
|
367
367
|
};
|
|
368
|
-
protoOf(Buffer).
|
|
368
|
+
protoOf(Buffer).p1h = function (minimumCapacity) {
|
|
369
369
|
// Inline function 'kotlin.require' call
|
|
370
370
|
if (!(minimumCapacity >= 1 && minimumCapacity <= 8192)) {
|
|
371
371
|
var message = 'unexpected capacity (' + minimumCapacity + '), should be in range [1, 8192]';
|
|
372
372
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
373
373
|
}
|
|
374
|
-
if (this.
|
|
375
|
-
var result = SegmentPool_instance.
|
|
376
|
-
this.
|
|
377
|
-
this.
|
|
374
|
+
if (this.h1g_1 == null) {
|
|
375
|
+
var result = SegmentPool_instance.s1h();
|
|
376
|
+
this.g1g_1 = result;
|
|
377
|
+
this.h1g_1 = result;
|
|
378
378
|
return result;
|
|
379
379
|
}
|
|
380
|
-
var t = ensureNotNull(this.
|
|
381
|
-
if ((t.
|
|
382
|
-
var newTail = t.
|
|
383
|
-
this.
|
|
380
|
+
var t = ensureNotNull(this.h1g_1);
|
|
381
|
+
if ((t.q1g_1 + minimumCapacity | 0) > 8192 || !t.s1g_1) {
|
|
382
|
+
var newTail = t.c1h(SegmentPool_instance.s1h());
|
|
383
|
+
this.h1g_1 = newTail;
|
|
384
384
|
return newTail;
|
|
385
385
|
}
|
|
386
386
|
return t;
|
|
387
387
|
};
|
|
388
|
-
protoOf(Buffer).
|
|
388
|
+
protoOf(Buffer).t1h = function (source, startIndex, endIndex) {
|
|
389
389
|
// Inline function 'kotlinx.io.checkBounds' call
|
|
390
390
|
var size = source.length;
|
|
391
391
|
checkBounds(toLong(size), toLong(startIndex), toLong(endIndex));
|
|
392
392
|
var currentOffset = startIndex;
|
|
393
393
|
while (currentOffset < endIndex) {
|
|
394
|
-
var tail = this.
|
|
394
|
+
var tail = this.p1h(1);
|
|
395
395
|
var tmp3 = endIndex - currentOffset | 0;
|
|
396
396
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
397
|
-
var b = tail.
|
|
397
|
+
var b = tail.u1h();
|
|
398
398
|
var toCopy = Math.min(tmp3, b);
|
|
399
|
-
tail.
|
|
399
|
+
tail.v1h(source, currentOffset, currentOffset + toCopy | 0);
|
|
400
400
|
currentOffset = currentOffset + toCopy | 0;
|
|
401
401
|
}
|
|
402
402
|
var tmp = this;
|
|
403
|
-
var tmp5 = this.
|
|
403
|
+
var tmp5 = this.i1g_1;
|
|
404
404
|
// Inline function 'kotlin.Long.plus' call
|
|
405
405
|
var other = endIndex - startIndex | 0;
|
|
406
|
-
tmp.
|
|
406
|
+
tmp.i1g_1 = tmp5.z2(toLong(other));
|
|
407
407
|
};
|
|
408
|
-
protoOf(Buffer).
|
|
408
|
+
protoOf(Buffer).x1h = function (source, byteCount) {
|
|
409
409
|
// Inline function 'kotlinx.io.checkByteCount' call
|
|
410
410
|
// Inline function 'kotlin.require' call
|
|
411
411
|
if (!(byteCount.e1(new Long(0, 0)) >= 0)) {
|
|
@@ -414,85 +414,85 @@
|
|
|
414
414
|
}
|
|
415
415
|
var remainingByteCount = byteCount;
|
|
416
416
|
while (remainingByteCount.e1(new Long(0, 0)) > 0) {
|
|
417
|
-
var read = source.
|
|
417
|
+
var read = source.k1h(this, remainingByteCount);
|
|
418
418
|
if (read.equals(new Long(-1, -1))) {
|
|
419
419
|
throw EOFException_init_$Create$_0('Source exhausted before reading ' + byteCount.toString() + ' bytes. ' + ('Only ' + byteCount.a3(remainingByteCount).toString() + ' were read.'));
|
|
420
420
|
}
|
|
421
421
|
remainingByteCount = remainingByteCount.a3(read);
|
|
422
422
|
}
|
|
423
423
|
};
|
|
424
|
-
protoOf(Buffer).
|
|
424
|
+
protoOf(Buffer).l1h = function (source, byteCount) {
|
|
425
425
|
// Inline function 'kotlin.require' call
|
|
426
426
|
if (!!(source === this)) {
|
|
427
427
|
var message = 'source == this';
|
|
428
428
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
429
429
|
}
|
|
430
|
-
checkOffsetAndCount(source.
|
|
430
|
+
checkOffsetAndCount(source.i1g_1, new Long(0, 0), byteCount);
|
|
431
431
|
var remainingByteCount = byteCount;
|
|
432
432
|
while (remainingByteCount.e1(new Long(0, 0)) > 0) {
|
|
433
|
-
if (remainingByteCount.e1(toLong(ensureNotNull(source.
|
|
434
|
-
var tail = this.
|
|
433
|
+
if (remainingByteCount.e1(toLong(ensureNotNull(source.g1g_1).s())) < 0) {
|
|
434
|
+
var tail = this.h1g_1;
|
|
435
435
|
var tmp;
|
|
436
|
-
if (!(tail == null) && tail.
|
|
436
|
+
if (!(tail == null) && tail.s1g_1) {
|
|
437
437
|
var tmp1 = remainingByteCount;
|
|
438
438
|
// Inline function 'kotlin.Long.plus' call
|
|
439
|
-
var other = tail.
|
|
439
|
+
var other = tail.q1g_1;
|
|
440
440
|
var tmp3 = tmp1.z2(toLong(other));
|
|
441
441
|
// Inline function 'kotlin.Long.minus' call
|
|
442
|
-
var other_0 = tail.
|
|
442
|
+
var other_0 = tail.y1h() ? 0 : tail.p1g_1;
|
|
443
443
|
tmp = tmp3.a3(toLong(other_0)).e1(new Long(8192, 0)) <= 0;
|
|
444
444
|
} else {
|
|
445
445
|
tmp = false;
|
|
446
446
|
}
|
|
447
447
|
if (tmp) {
|
|
448
|
-
ensureNotNull(source.
|
|
449
|
-
source.
|
|
450
|
-
this.
|
|
448
|
+
ensureNotNull(source.g1g_1).a1i(tail, remainingByteCount.j1());
|
|
449
|
+
source.i1g_1 = source.i1g_1.a3(remainingByteCount);
|
|
450
|
+
this.i1g_1 = this.i1g_1.z2(remainingByteCount);
|
|
451
451
|
return Unit_instance;
|
|
452
452
|
} else {
|
|
453
|
-
source.
|
|
453
|
+
source.g1g_1 = ensureNotNull(source.g1g_1).z1h(remainingByteCount.j1());
|
|
454
454
|
}
|
|
455
455
|
}
|
|
456
|
-
var segmentToMove = ensureNotNull(source.
|
|
456
|
+
var segmentToMove = ensureNotNull(source.g1g_1);
|
|
457
457
|
var movedByteCount = toLong(segmentToMove.s());
|
|
458
|
-
source.
|
|
459
|
-
if (source.
|
|
460
|
-
source.
|
|
458
|
+
source.g1g_1 = segmentToMove.b1i();
|
|
459
|
+
if (source.g1g_1 == null) {
|
|
460
|
+
source.h1g_1 = null;
|
|
461
461
|
}
|
|
462
462
|
// Inline function 'kotlinx.io.Buffer.pushSegment' call
|
|
463
|
-
if (this.
|
|
464
|
-
this.
|
|
465
|
-
this.
|
|
463
|
+
if (this.g1g_1 == null) {
|
|
464
|
+
this.g1g_1 = segmentToMove;
|
|
465
|
+
this.h1g_1 = segmentToMove;
|
|
466
466
|
} else if (true) {
|
|
467
|
-
this.
|
|
468
|
-
if (ensureNotNull(this.
|
|
469
|
-
this.
|
|
467
|
+
this.h1g_1 = ensureNotNull(this.h1g_1).c1h(segmentToMove).d1h();
|
|
468
|
+
if (ensureNotNull(this.h1g_1).u1g_1 == null) {
|
|
469
|
+
this.g1g_1 = this.h1g_1;
|
|
470
470
|
}
|
|
471
471
|
} else {
|
|
472
|
-
this.
|
|
472
|
+
this.h1g_1 = ensureNotNull(this.h1g_1).c1h(segmentToMove);
|
|
473
473
|
}
|
|
474
|
-
source.
|
|
475
|
-
this.
|
|
474
|
+
source.i1g_1 = source.i1g_1.a3(movedByteCount);
|
|
475
|
+
this.i1g_1 = this.i1g_1.z2(movedByteCount);
|
|
476
476
|
remainingByteCount = remainingByteCount.a3(movedByteCount);
|
|
477
477
|
}
|
|
478
478
|
};
|
|
479
|
-
protoOf(Buffer).
|
|
479
|
+
protoOf(Buffer).c1i = function (source) {
|
|
480
480
|
var totalBytesRead = new Long(0, 0);
|
|
481
481
|
$l$loop: while (true) {
|
|
482
|
-
var readCount = source.
|
|
482
|
+
var readCount = source.k1h(this, new Long(8192, 0));
|
|
483
483
|
if (readCount.equals(new Long(-1, -1)))
|
|
484
484
|
break $l$loop;
|
|
485
485
|
totalBytesRead = totalBytesRead.z2(readCount);
|
|
486
486
|
}
|
|
487
487
|
return totalBytesRead;
|
|
488
488
|
};
|
|
489
|
-
protoOf(Buffer).
|
|
490
|
-
this.
|
|
491
|
-
this.
|
|
489
|
+
protoOf(Buffer).d1i = function (byte) {
|
|
490
|
+
this.p1h(1).e1i(byte);
|
|
491
|
+
this.i1g_1 = this.i1g_1.z2(new Long(1, 0));
|
|
492
492
|
};
|
|
493
|
-
protoOf(Buffer).
|
|
494
|
-
this.
|
|
495
|
-
this.
|
|
493
|
+
protoOf(Buffer).f1i = function (short) {
|
|
494
|
+
this.p1h(2).g1i(short);
|
|
495
|
+
this.i1g_1 = this.i1g_1.z2(new Long(2, 0));
|
|
496
496
|
};
|
|
497
497
|
protoOf(Buffer).p4 = function () {
|
|
498
498
|
return Unit_instance;
|
|
@@ -509,7 +509,7 @@
|
|
|
509
509
|
var builder = StringBuilder_init_$Create$(imul(len, 2) + (this.s().e1(toLong(maxPrintableBytes)) > 0 ? 1 : 0) | 0);
|
|
510
510
|
var bytesWritten = 0;
|
|
511
511
|
// Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.forEachSegment' call
|
|
512
|
-
var curr = this.
|
|
512
|
+
var curr = this.g1g_1;
|
|
513
513
|
while (!(curr == null)) {
|
|
514
514
|
var tmp4 = get_SegmentReadContextImpl();
|
|
515
515
|
var segment = curr;
|
|
@@ -517,7 +517,7 @@
|
|
|
517
517
|
while (bytesWritten < len && idx < segment.s()) {
|
|
518
518
|
var _unary__edvuaz = idx;
|
|
519
519
|
idx = _unary__edvuaz + 1 | 0;
|
|
520
|
-
var b_0 = tmp4.
|
|
520
|
+
var b_0 = tmp4.h1i(segment, _unary__edvuaz);
|
|
521
521
|
bytesWritten = bytesWritten + 1 | 0;
|
|
522
522
|
var tmp = get_HEX_DIGIT_CHARS();
|
|
523
523
|
// Inline function 'kotlinx.io.shr' call
|
|
@@ -528,57 +528,57 @@
|
|
|
528
528
|
var tmp$ret$3 = b_0 & 15;
|
|
529
529
|
tmp_0.s8(tmp_1[tmp$ret$3]);
|
|
530
530
|
}
|
|
531
|
-
curr = curr.
|
|
531
|
+
curr = curr.t1g_1;
|
|
532
532
|
}
|
|
533
533
|
if (this.s().e1(toLong(maxPrintableBytes)) > 0) {
|
|
534
534
|
builder.s8(_Char___init__impl__6a9atx(8230));
|
|
535
535
|
}
|
|
536
536
|
return 'Buffer(size=' + this.s().toString() + ' hex=' + builder.toString() + ')';
|
|
537
537
|
};
|
|
538
|
-
protoOf(Buffer).
|
|
539
|
-
var oldHead = ensureNotNull(this.
|
|
540
|
-
var nextHead = oldHead.
|
|
541
|
-
this.
|
|
538
|
+
protoOf(Buffer).v1g = function () {
|
|
539
|
+
var oldHead = ensureNotNull(this.g1g_1);
|
|
540
|
+
var nextHead = oldHead.t1g_1;
|
|
541
|
+
this.g1g_1 = nextHead;
|
|
542
542
|
if (nextHead == null) {
|
|
543
|
-
this.
|
|
543
|
+
this.h1g_1 = null;
|
|
544
544
|
} else {
|
|
545
|
-
nextHead.
|
|
545
|
+
nextHead.u1g_1 = null;
|
|
546
546
|
}
|
|
547
|
-
oldHead.
|
|
548
|
-
SegmentPool_instance.
|
|
547
|
+
oldHead.t1g_1 = null;
|
|
548
|
+
SegmentPool_instance.i1i(oldHead);
|
|
549
549
|
};
|
|
550
|
-
protoOf(Buffer).
|
|
551
|
-
var oldTail = ensureNotNull(this.
|
|
552
|
-
var newTail = oldTail.
|
|
553
|
-
this.
|
|
550
|
+
protoOf(Buffer).j1i = function () {
|
|
551
|
+
var oldTail = ensureNotNull(this.h1g_1);
|
|
552
|
+
var newTail = oldTail.u1g_1;
|
|
553
|
+
this.h1g_1 = newTail;
|
|
554
554
|
if (newTail == null) {
|
|
555
|
-
this.
|
|
555
|
+
this.g1g_1 = null;
|
|
556
556
|
} else {
|
|
557
|
-
newTail.
|
|
557
|
+
newTail.t1g_1 = null;
|
|
558
558
|
}
|
|
559
|
-
oldTail.
|
|
560
|
-
SegmentPool_instance.
|
|
559
|
+
oldTail.u1g_1 = null;
|
|
560
|
+
SegmentPool_instance.i1i(oldTail);
|
|
561
561
|
};
|
|
562
562
|
function readByteString(_this__u8e3s4, byteCount) {
|
|
563
|
-
return UnsafeByteStringOperations_instance.
|
|
563
|
+
return UnsafeByteStringOperations_instance.f1g(readByteArray_0(_this__u8e3s4, byteCount));
|
|
564
564
|
}
|
|
565
565
|
function buffered(_this__u8e3s4) {
|
|
566
566
|
return new RealSource(_this__u8e3s4);
|
|
567
567
|
}
|
|
568
568
|
function PeekSource(upstream) {
|
|
569
|
-
this.
|
|
570
|
-
this.
|
|
571
|
-
this.
|
|
569
|
+
this.k1i_1 = upstream;
|
|
570
|
+
this.l1i_1 = this.k1i_1.j1g();
|
|
571
|
+
this.m1i_1 = this.l1i_1.g1g_1;
|
|
572
572
|
var tmp = this;
|
|
573
|
-
var tmp0_safe_receiver = this.
|
|
574
|
-
var tmp0_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
575
|
-
tmp.
|
|
576
|
-
this.
|
|
577
|
-
this.
|
|
573
|
+
var tmp0_safe_receiver = this.l1i_1.g1g_1;
|
|
574
|
+
var tmp0_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.p1g_1;
|
|
575
|
+
tmp.n1i_1 = tmp0_elvis_lhs == null ? -1 : tmp0_elvis_lhs;
|
|
576
|
+
this.o1i_1 = false;
|
|
577
|
+
this.p1i_1 = new Long(0, 0);
|
|
578
578
|
}
|
|
579
|
-
protoOf(PeekSource).
|
|
579
|
+
protoOf(PeekSource).k1h = function (sink, byteCount) {
|
|
580
580
|
// Inline function 'kotlin.check' call
|
|
581
|
-
if (!!this.
|
|
581
|
+
if (!!this.o1i_1) {
|
|
582
582
|
var message = 'Source is closed.';
|
|
583
583
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
584
584
|
}
|
|
@@ -589,42 +589,42 @@
|
|
|
589
589
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
590
590
|
}
|
|
591
591
|
// Inline function 'kotlin.check' call
|
|
592
|
-
if (!(this.
|
|
592
|
+
if (!(this.m1i_1 == null || (this.m1i_1 === this.l1i_1.g1g_1 && this.n1i_1 === ensureNotNull(this.l1i_1.g1g_1).p1g_1))) {
|
|
593
593
|
var message_1 = 'Peek source is invalid because upstream source was used';
|
|
594
594
|
throw IllegalStateException_init_$Create$(toString(message_1));
|
|
595
595
|
}
|
|
596
596
|
if (byteCount.equals(new Long(0, 0)))
|
|
597
597
|
return new Long(0, 0);
|
|
598
598
|
// Inline function 'kotlin.Long.plus' call
|
|
599
|
-
var tmp$ret$7 = this.
|
|
600
|
-
if (!this.
|
|
599
|
+
var tmp$ret$7 = this.p1i_1.z2(toLong(1));
|
|
600
|
+
if (!this.k1i_1.m1g(tmp$ret$7))
|
|
601
601
|
return new Long(-1, -1);
|
|
602
|
-
if (this.
|
|
603
|
-
this.
|
|
604
|
-
this.
|
|
602
|
+
if (this.m1i_1 == null && !(this.l1i_1.g1g_1 == null)) {
|
|
603
|
+
this.m1i_1 = this.l1i_1.g1g_1;
|
|
604
|
+
this.n1i_1 = ensureNotNull(this.l1i_1.g1g_1).p1g_1;
|
|
605
605
|
}
|
|
606
606
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
607
|
-
var b = this.
|
|
607
|
+
var b = this.l1i_1.s().a3(this.p1i_1);
|
|
608
608
|
var toCopy = byteCount.e1(b) <= 0 ? byteCount : b;
|
|
609
|
-
this.
|
|
610
|
-
this.
|
|
609
|
+
this.l1i_1.a1h(sink, this.p1i_1, this.p1i_1.z2(toCopy));
|
|
610
|
+
this.p1i_1 = this.p1i_1.z2(toCopy);
|
|
611
611
|
return toCopy;
|
|
612
612
|
};
|
|
613
613
|
protoOf(PeekSource).p4 = function () {
|
|
614
|
-
this.
|
|
614
|
+
this.o1i_1 = true;
|
|
615
615
|
};
|
|
616
616
|
function RealSource(source) {
|
|
617
|
-
this.
|
|
618
|
-
this.
|
|
619
|
-
this.
|
|
617
|
+
this.q1i_1 = source;
|
|
618
|
+
this.r1i_1 = false;
|
|
619
|
+
this.s1i_1 = new Buffer();
|
|
620
620
|
}
|
|
621
|
-
protoOf(RealSource).
|
|
622
|
-
return this.
|
|
621
|
+
protoOf(RealSource).j1g = function () {
|
|
622
|
+
return this.s1i_1;
|
|
623
623
|
};
|
|
624
|
-
protoOf(RealSource).
|
|
624
|
+
protoOf(RealSource).k1h = function (sink, byteCount) {
|
|
625
625
|
// Inline function 'kotlinx.io.RealSource.checkNotClosed' call
|
|
626
626
|
// Inline function 'kotlin.check' call
|
|
627
|
-
if (!!this.
|
|
627
|
+
if (!!this.r1i_1) {
|
|
628
628
|
var message = 'Source is closed.';
|
|
629
629
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
630
630
|
}
|
|
@@ -633,33 +633,33 @@
|
|
|
633
633
|
var message_0 = 'byteCount: ' + byteCount.toString();
|
|
634
634
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
635
635
|
}
|
|
636
|
-
if (this.
|
|
637
|
-
var read = this.
|
|
636
|
+
if (this.s1i_1.s().equals(new Long(0, 0))) {
|
|
637
|
+
var read = this.q1i_1.k1h(this.s1i_1, new Long(8192, 0));
|
|
638
638
|
if (read.equals(new Long(-1, -1)))
|
|
639
639
|
return new Long(-1, -1);
|
|
640
640
|
}
|
|
641
641
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
642
|
-
var b = this.
|
|
642
|
+
var b = this.s1i_1.s();
|
|
643
643
|
var toRead = byteCount.e1(b) <= 0 ? byteCount : b;
|
|
644
|
-
return this.
|
|
644
|
+
return this.s1i_1.k1h(sink, toRead);
|
|
645
645
|
};
|
|
646
|
-
protoOf(RealSource).
|
|
646
|
+
protoOf(RealSource).k1g = function () {
|
|
647
647
|
// Inline function 'kotlinx.io.RealSource.checkNotClosed' call
|
|
648
648
|
// Inline function 'kotlin.check' call
|
|
649
|
-
if (!!this.
|
|
649
|
+
if (!!this.r1i_1) {
|
|
650
650
|
var message = 'Source is closed.';
|
|
651
651
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
652
652
|
}
|
|
653
|
-
return this.
|
|
653
|
+
return this.s1i_1.k1g() && this.q1i_1.k1h(this.s1i_1, new Long(8192, 0)).equals(new Long(-1, -1));
|
|
654
654
|
};
|
|
655
|
-
protoOf(RealSource).
|
|
656
|
-
if (!this.
|
|
655
|
+
protoOf(RealSource).l1g = function (byteCount) {
|
|
656
|
+
if (!this.m1g(byteCount))
|
|
657
657
|
throw EOFException_init_$Create$_0("Source doesn't contain required number of bytes (" + byteCount.toString() + ').');
|
|
658
658
|
};
|
|
659
|
-
protoOf(RealSource).
|
|
659
|
+
protoOf(RealSource).m1g = function (byteCount) {
|
|
660
660
|
// Inline function 'kotlinx.io.RealSource.checkNotClosed' call
|
|
661
661
|
// Inline function 'kotlin.check' call
|
|
662
|
-
if (!!this.
|
|
662
|
+
if (!!this.r1i_1) {
|
|
663
663
|
var message = 'Source is closed.';
|
|
664
664
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
665
665
|
}
|
|
@@ -668,90 +668,90 @@
|
|
|
668
668
|
var message_0 = 'byteCount: ' + byteCount.toString();
|
|
669
669
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
670
670
|
}
|
|
671
|
-
while (this.
|
|
672
|
-
if (this.
|
|
671
|
+
while (this.s1i_1.s().e1(byteCount) < 0) {
|
|
672
|
+
if (this.q1i_1.k1h(this.s1i_1, new Long(8192, 0)).equals(new Long(-1, -1)))
|
|
673
673
|
return false;
|
|
674
674
|
}
|
|
675
675
|
return true;
|
|
676
676
|
};
|
|
677
|
-
protoOf(RealSource).
|
|
678
|
-
this.
|
|
679
|
-
return this.
|
|
677
|
+
protoOf(RealSource).n1g = function () {
|
|
678
|
+
this.l1g(new Long(1, 0));
|
|
679
|
+
return this.s1i_1.n1g();
|
|
680
680
|
};
|
|
681
|
-
protoOf(RealSource).
|
|
681
|
+
protoOf(RealSource).i1h = function (sink, startIndex, endIndex) {
|
|
682
682
|
// Inline function 'kotlinx.io.checkBounds' call
|
|
683
683
|
var size = sink.length;
|
|
684
684
|
checkBounds(toLong(size), toLong(startIndex), toLong(endIndex));
|
|
685
|
-
if (this.
|
|
686
|
-
var read = this.
|
|
685
|
+
if (this.s1i_1.s().equals(new Long(0, 0))) {
|
|
686
|
+
var read = this.q1i_1.k1h(this.s1i_1, new Long(8192, 0));
|
|
687
687
|
if (read.equals(new Long(-1, -1)))
|
|
688
688
|
return -1;
|
|
689
689
|
}
|
|
690
690
|
var tmp3 = endIndex - startIndex | 0;
|
|
691
691
|
// Inline function 'kotlinx.io.minOf' call
|
|
692
|
-
var b = this.
|
|
692
|
+
var b = this.s1i_1.s();
|
|
693
693
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
694
694
|
var a = toLong(tmp3);
|
|
695
695
|
var toRead = (a.e1(b) <= 0 ? a : b).j1();
|
|
696
|
-
return this.
|
|
696
|
+
return this.s1i_1.i1h(sink, startIndex, startIndex + toRead | 0);
|
|
697
697
|
};
|
|
698
|
-
protoOf(RealSource).
|
|
698
|
+
protoOf(RealSource).m1h = function (sink, byteCount) {
|
|
699
699
|
try {
|
|
700
|
-
this.
|
|
700
|
+
this.l1g(byteCount);
|
|
701
701
|
} catch ($p) {
|
|
702
702
|
if ($p instanceof EOFException) {
|
|
703
703
|
var e = $p;
|
|
704
|
-
sink.
|
|
704
|
+
sink.l1h(this.s1i_1, this.s1i_1.s());
|
|
705
705
|
throw e;
|
|
706
706
|
} else {
|
|
707
707
|
throw $p;
|
|
708
708
|
}
|
|
709
709
|
}
|
|
710
|
-
this.
|
|
710
|
+
this.s1i_1.m1h(sink, byteCount);
|
|
711
711
|
};
|
|
712
|
-
protoOf(RealSource).
|
|
712
|
+
protoOf(RealSource).n1h = function (sink) {
|
|
713
713
|
var totalBytesWritten = new Long(0, 0);
|
|
714
|
-
while (!this.
|
|
715
|
-
var emitByteCount = this.
|
|
714
|
+
while (!this.q1i_1.k1h(this.s1i_1, new Long(8192, 0)).equals(new Long(-1, -1))) {
|
|
715
|
+
var emitByteCount = this.s1i_1.e1h();
|
|
716
716
|
if (emitByteCount.e1(new Long(0, 0)) > 0) {
|
|
717
717
|
totalBytesWritten = totalBytesWritten.z2(emitByteCount);
|
|
718
|
-
sink.
|
|
718
|
+
sink.l1h(this.s1i_1, emitByteCount);
|
|
719
719
|
}
|
|
720
720
|
}
|
|
721
|
-
if (this.
|
|
722
|
-
totalBytesWritten = totalBytesWritten.z2(this.
|
|
723
|
-
sink.
|
|
721
|
+
if (this.s1i_1.s().e1(new Long(0, 0)) > 0) {
|
|
722
|
+
totalBytesWritten = totalBytesWritten.z2(this.s1i_1.s());
|
|
723
|
+
sink.l1h(this.s1i_1, this.s1i_1.s());
|
|
724
724
|
}
|
|
725
725
|
return totalBytesWritten;
|
|
726
726
|
};
|
|
727
|
-
protoOf(RealSource).
|
|
728
|
-
this.
|
|
729
|
-
return this.
|
|
727
|
+
protoOf(RealSource).x1g = function () {
|
|
728
|
+
this.l1g(new Long(2, 0));
|
|
729
|
+
return this.s1i_1.x1g();
|
|
730
730
|
};
|
|
731
|
-
protoOf(RealSource).
|
|
731
|
+
protoOf(RealSource).o1h = function () {
|
|
732
732
|
// Inline function 'kotlinx.io.RealSource.checkNotClosed' call
|
|
733
733
|
// Inline function 'kotlin.check' call
|
|
734
|
-
if (!!this.
|
|
734
|
+
if (!!this.r1i_1) {
|
|
735
735
|
var message = 'Source is closed.';
|
|
736
736
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
737
737
|
}
|
|
738
738
|
return buffered(new PeekSource(this));
|
|
739
739
|
};
|
|
740
740
|
protoOf(RealSource).p4 = function () {
|
|
741
|
-
if (this.
|
|
741
|
+
if (this.r1i_1)
|
|
742
742
|
return Unit_instance;
|
|
743
|
-
this.
|
|
744
|
-
this.
|
|
745
|
-
this.
|
|
743
|
+
this.r1i_1 = true;
|
|
744
|
+
this.q1i_1.p4();
|
|
745
|
+
this.s1i_1.e2();
|
|
746
746
|
};
|
|
747
747
|
protoOf(RealSource).toString = function () {
|
|
748
|
-
return 'buffered(' + toString(this.
|
|
748
|
+
return 'buffered(' + toString(this.q1i_1) + ')';
|
|
749
749
|
};
|
|
750
750
|
function Segment_init_$Init$($this) {
|
|
751
751
|
Segment.call($this);
|
|
752
|
-
$this.
|
|
753
|
-
$this.
|
|
754
|
-
$this.
|
|
752
|
+
$this.o1g_1 = new Int8Array(8192);
|
|
753
|
+
$this.s1g_1 = true;
|
|
754
|
+
$this.r1g_1 = null;
|
|
755
755
|
return $this;
|
|
756
756
|
}
|
|
757
757
|
function Segment_init_$Create$() {
|
|
@@ -759,87 +759,87 @@
|
|
|
759
759
|
}
|
|
760
760
|
function Segment_init_$Init$_0(data, pos, limit, shareToken, owner, $this) {
|
|
761
761
|
Segment.call($this);
|
|
762
|
-
$this.
|
|
763
|
-
$this.
|
|
764
|
-
$this.
|
|
765
|
-
$this.
|
|
766
|
-
$this.
|
|
762
|
+
$this.o1g_1 = data;
|
|
763
|
+
$this.p1g_1 = pos;
|
|
764
|
+
$this.q1g_1 = limit;
|
|
765
|
+
$this.r1g_1 = shareToken;
|
|
766
|
+
$this.s1g_1 = owner;
|
|
767
767
|
return $this;
|
|
768
768
|
}
|
|
769
769
|
function Segment_init_$Create$_0(data, pos, limit, shareToken, owner) {
|
|
770
770
|
return Segment_init_$Init$_0(data, pos, limit, shareToken, owner, objectCreate(protoOf(Segment)));
|
|
771
771
|
}
|
|
772
772
|
function Companion() {
|
|
773
|
-
this.
|
|
774
|
-
this.
|
|
773
|
+
this.t1i_1 = 8192;
|
|
774
|
+
this.u1i_1 = 1024;
|
|
775
775
|
}
|
|
776
|
-
protoOf(Companion).
|
|
776
|
+
protoOf(Companion).v1i = function () {
|
|
777
777
|
return Segment_init_$Create$();
|
|
778
778
|
};
|
|
779
779
|
var Companion_instance;
|
|
780
780
|
function Companion_getInstance() {
|
|
781
781
|
return Companion_instance;
|
|
782
782
|
}
|
|
783
|
-
protoOf(Segment).
|
|
784
|
-
var tmp1_safe_receiver = this.
|
|
785
|
-
var tmp0_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
783
|
+
protoOf(Segment).y1h = function () {
|
|
784
|
+
var tmp1_safe_receiver = this.r1g_1;
|
|
785
|
+
var tmp0_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.w1i();
|
|
786
786
|
return tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs;
|
|
787
787
|
};
|
|
788
|
-
protoOf(Segment).
|
|
789
|
-
var tmp0_elvis_lhs = this.
|
|
788
|
+
protoOf(Segment).b1h = function () {
|
|
789
|
+
var tmp0_elvis_lhs = this.r1g_1;
|
|
790
790
|
var tmp;
|
|
791
791
|
if (tmp0_elvis_lhs == null) {
|
|
792
792
|
// Inline function 'kotlin.also' call
|
|
793
|
-
var this_0 = SegmentPool_instance.
|
|
794
|
-
this.
|
|
793
|
+
var this_0 = SegmentPool_instance.x1i();
|
|
794
|
+
this.r1g_1 = this_0;
|
|
795
795
|
tmp = this_0;
|
|
796
796
|
} else {
|
|
797
797
|
tmp = tmp0_elvis_lhs;
|
|
798
798
|
}
|
|
799
799
|
var t = tmp;
|
|
800
|
-
var tmp_0 = this.
|
|
801
|
-
var tmp_1 = this.
|
|
800
|
+
var tmp_0 = this.p1g_1;
|
|
801
|
+
var tmp_1 = this.q1g_1;
|
|
802
802
|
// Inline function 'kotlin.also' call
|
|
803
|
-
t.
|
|
804
|
-
return Segment_init_$Create$_0(this.
|
|
803
|
+
t.y1i();
|
|
804
|
+
return Segment_init_$Create$_0(this.o1g_1, tmp_0, tmp_1, t, false);
|
|
805
805
|
};
|
|
806
|
-
protoOf(Segment).
|
|
807
|
-
var result = this.
|
|
808
|
-
if (!(this.
|
|
809
|
-
ensureNotNull(this.
|
|
806
|
+
protoOf(Segment).b1i = function () {
|
|
807
|
+
var result = this.t1g_1;
|
|
808
|
+
if (!(this.u1g_1 == null)) {
|
|
809
|
+
ensureNotNull(this.u1g_1).t1g_1 = this.t1g_1;
|
|
810
810
|
}
|
|
811
|
-
if (!(this.
|
|
812
|
-
ensureNotNull(this.
|
|
811
|
+
if (!(this.t1g_1 == null)) {
|
|
812
|
+
ensureNotNull(this.t1g_1).u1g_1 = this.u1g_1;
|
|
813
813
|
}
|
|
814
|
-
this.
|
|
815
|
-
this.
|
|
814
|
+
this.t1g_1 = null;
|
|
815
|
+
this.u1g_1 = null;
|
|
816
816
|
return result;
|
|
817
817
|
};
|
|
818
|
-
protoOf(Segment).
|
|
819
|
-
segment.
|
|
820
|
-
segment.
|
|
821
|
-
if (!(this.
|
|
822
|
-
ensureNotNull(this.
|
|
818
|
+
protoOf(Segment).c1h = function (segment) {
|
|
819
|
+
segment.u1g_1 = this;
|
|
820
|
+
segment.t1g_1 = this.t1g_1;
|
|
821
|
+
if (!(this.t1g_1 == null)) {
|
|
822
|
+
ensureNotNull(this.t1g_1).u1g_1 = segment;
|
|
823
823
|
}
|
|
824
|
-
this.
|
|
824
|
+
this.t1g_1 = segment;
|
|
825
825
|
return segment;
|
|
826
826
|
};
|
|
827
|
-
protoOf(Segment).
|
|
827
|
+
protoOf(Segment).z1h = function (byteCount) {
|
|
828
828
|
// Inline function 'kotlin.require' call
|
|
829
|
-
if (!(byteCount > 0 && byteCount <= (this.
|
|
829
|
+
if (!(byteCount > 0 && byteCount <= (this.q1g_1 - this.p1g_1 | 0))) {
|
|
830
830
|
var message = 'byteCount out of range';
|
|
831
831
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
832
832
|
}
|
|
833
833
|
var prefix;
|
|
834
834
|
if (byteCount >= 1024) {
|
|
835
|
-
prefix = this.
|
|
835
|
+
prefix = this.b1h();
|
|
836
836
|
} else {
|
|
837
|
-
prefix = SegmentPool_instance.
|
|
838
|
-
var tmp1 = this.
|
|
839
|
-
var tmp2 = prefix.
|
|
840
|
-
var tmp3 = this.
|
|
837
|
+
prefix = SegmentPool_instance.s1h();
|
|
838
|
+
var tmp1 = this.o1g_1;
|
|
839
|
+
var tmp2 = prefix.o1g_1;
|
|
840
|
+
var tmp3 = this.p1g_1;
|
|
841
841
|
// Inline function 'kotlin.collections.copyInto' call
|
|
842
|
-
var endIndex = this.
|
|
842
|
+
var endIndex = this.p1g_1 + byteCount | 0;
|
|
843
843
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
844
844
|
// Inline function 'kotlin.js.asDynamic' call
|
|
845
845
|
var tmp = tmp1;
|
|
@@ -847,62 +847,62 @@
|
|
|
847
847
|
// Inline function 'kotlin.js.asDynamic' call
|
|
848
848
|
arrayCopy(tmp, tmp2, 0, tmp3, endIndex);
|
|
849
849
|
}
|
|
850
|
-
prefix.
|
|
851
|
-
this.
|
|
852
|
-
if (!(this.
|
|
853
|
-
ensureNotNull(this.
|
|
850
|
+
prefix.q1g_1 = prefix.p1g_1 + byteCount | 0;
|
|
851
|
+
this.p1g_1 = this.p1g_1 + byteCount | 0;
|
|
852
|
+
if (!(this.u1g_1 == null)) {
|
|
853
|
+
ensureNotNull(this.u1g_1).c1h(prefix);
|
|
854
854
|
} else {
|
|
855
|
-
prefix.
|
|
856
|
-
this.
|
|
855
|
+
prefix.t1g_1 = this;
|
|
856
|
+
this.u1g_1 = prefix;
|
|
857
857
|
}
|
|
858
858
|
return prefix;
|
|
859
859
|
};
|
|
860
|
-
protoOf(Segment).
|
|
860
|
+
protoOf(Segment).d1h = function () {
|
|
861
861
|
// Inline function 'kotlin.check' call
|
|
862
|
-
if (!!(this.
|
|
862
|
+
if (!!(this.u1g_1 == null)) {
|
|
863
863
|
var message = 'cannot compact';
|
|
864
864
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
865
865
|
}
|
|
866
|
-
if (!ensureNotNull(this.
|
|
866
|
+
if (!ensureNotNull(this.u1g_1).s1g_1)
|
|
867
867
|
return this;
|
|
868
|
-
var byteCount = this.
|
|
869
|
-
var availableByteCount = (8192 - ensureNotNull(this.
|
|
868
|
+
var byteCount = this.q1g_1 - this.p1g_1 | 0;
|
|
869
|
+
var availableByteCount = (8192 - ensureNotNull(this.u1g_1).q1g_1 | 0) + (ensureNotNull(this.u1g_1).y1h() ? 0 : ensureNotNull(this.u1g_1).p1g_1) | 0;
|
|
870
870
|
if (byteCount > availableByteCount)
|
|
871
871
|
return this;
|
|
872
|
-
var predecessor = this.
|
|
873
|
-
this.
|
|
874
|
-
var successor = this.
|
|
872
|
+
var predecessor = this.u1g_1;
|
|
873
|
+
this.a1i(ensureNotNull(predecessor), byteCount);
|
|
874
|
+
var successor = this.b1i();
|
|
875
875
|
// Inline function 'kotlin.check' call
|
|
876
876
|
if (!(successor == null)) {
|
|
877
877
|
throw IllegalStateException_init_$Create$('Check failed.');
|
|
878
878
|
}
|
|
879
|
-
SegmentPool_instance.
|
|
879
|
+
SegmentPool_instance.i1i(this);
|
|
880
880
|
return predecessor;
|
|
881
881
|
};
|
|
882
|
-
protoOf(Segment).
|
|
883
|
-
var _unary__edvuaz = this.
|
|
884
|
-
this.
|
|
885
|
-
this.
|
|
882
|
+
protoOf(Segment).e1i = function (byte) {
|
|
883
|
+
var _unary__edvuaz = this.q1g_1;
|
|
884
|
+
this.q1g_1 = _unary__edvuaz + 1 | 0;
|
|
885
|
+
this.o1g_1[_unary__edvuaz] = byte;
|
|
886
886
|
};
|
|
887
|
-
protoOf(Segment).
|
|
888
|
-
var data = this.
|
|
889
|
-
var limit = this.
|
|
887
|
+
protoOf(Segment).g1i = function (short) {
|
|
888
|
+
var data = this.o1g_1;
|
|
889
|
+
var limit = this.q1g_1;
|
|
890
890
|
var _unary__edvuaz = limit;
|
|
891
891
|
limit = _unary__edvuaz + 1 | 0;
|
|
892
892
|
data[_unary__edvuaz] = toByte((short >>> 8 | 0) & 255);
|
|
893
893
|
var _unary__edvuaz_0 = limit;
|
|
894
894
|
limit = _unary__edvuaz_0 + 1 | 0;
|
|
895
895
|
data[_unary__edvuaz_0] = toByte(short & 255);
|
|
896
|
-
this.
|
|
896
|
+
this.q1g_1 = limit;
|
|
897
897
|
};
|
|
898
|
-
protoOf(Segment).
|
|
899
|
-
var _unary__edvuaz = this.
|
|
900
|
-
this.
|
|
901
|
-
return this.
|
|
898
|
+
protoOf(Segment).w1g = function () {
|
|
899
|
+
var _unary__edvuaz = this.p1g_1;
|
|
900
|
+
this.p1g_1 = _unary__edvuaz + 1 | 0;
|
|
901
|
+
return this.o1g_1[_unary__edvuaz];
|
|
902
902
|
};
|
|
903
|
-
protoOf(Segment).
|
|
904
|
-
var data = this.
|
|
905
|
-
var pos = this.
|
|
903
|
+
protoOf(Segment).y1g = function () {
|
|
904
|
+
var data = this.o1g_1;
|
|
905
|
+
var pos = this.p1g_1;
|
|
906
906
|
var _unary__edvuaz = pos;
|
|
907
907
|
pos = _unary__edvuaz + 1 | 0;
|
|
908
908
|
// Inline function 'kotlinx.io.and' call
|
|
@@ -912,118 +912,118 @@
|
|
|
912
912
|
// Inline function 'kotlinx.io.and' call
|
|
913
913
|
var tmp$ret$1 = data[_unary__edvuaz_0] & 255;
|
|
914
914
|
var s = toShort(tmp | tmp$ret$1);
|
|
915
|
-
this.
|
|
915
|
+
this.p1g_1 = pos;
|
|
916
916
|
return s;
|
|
917
917
|
};
|
|
918
|
-
protoOf(Segment).
|
|
918
|
+
protoOf(Segment).a1i = function (sink, byteCount) {
|
|
919
919
|
// Inline function 'kotlin.check' call
|
|
920
|
-
if (!sink.
|
|
920
|
+
if (!sink.s1g_1) {
|
|
921
921
|
var message = 'only owner can write';
|
|
922
922
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
923
923
|
}
|
|
924
|
-
if ((sink.
|
|
925
|
-
if (sink.
|
|
924
|
+
if ((sink.q1g_1 + byteCount | 0) > 8192) {
|
|
925
|
+
if (sink.y1h())
|
|
926
926
|
throw IllegalArgumentException_init_$Create$_0();
|
|
927
|
-
if (((sink.
|
|
927
|
+
if (((sink.q1g_1 + byteCount | 0) - sink.p1g_1 | 0) > 8192)
|
|
928
928
|
throw IllegalArgumentException_init_$Create$_0();
|
|
929
|
-
var tmp1 = sink.
|
|
930
|
-
var tmp2 = sink.
|
|
931
|
-
var tmp3 = sink.
|
|
929
|
+
var tmp1 = sink.o1g_1;
|
|
930
|
+
var tmp2 = sink.o1g_1;
|
|
931
|
+
var tmp3 = sink.p1g_1;
|
|
932
932
|
// Inline function 'kotlin.collections.copyInto' call
|
|
933
|
-
var endIndex = sink.
|
|
933
|
+
var endIndex = sink.q1g_1;
|
|
934
934
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
935
935
|
// Inline function 'kotlin.js.asDynamic' call
|
|
936
936
|
var tmp = tmp1;
|
|
937
937
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
938
938
|
// Inline function 'kotlin.js.asDynamic' call
|
|
939
939
|
arrayCopy(tmp, tmp2, 0, tmp3, endIndex);
|
|
940
|
-
sink.
|
|
941
|
-
sink.
|
|
940
|
+
sink.q1g_1 = sink.q1g_1 - sink.p1g_1 | 0;
|
|
941
|
+
sink.p1g_1 = 0;
|
|
942
942
|
}
|
|
943
|
-
var tmp6 = this.
|
|
944
|
-
var tmp7 = sink.
|
|
945
|
-
var tmp8 = sink.
|
|
946
|
-
var tmp9 = this.
|
|
943
|
+
var tmp6 = this.o1g_1;
|
|
944
|
+
var tmp7 = sink.o1g_1;
|
|
945
|
+
var tmp8 = sink.q1g_1;
|
|
946
|
+
var tmp9 = this.p1g_1;
|
|
947
947
|
// Inline function 'kotlin.collections.copyInto' call
|
|
948
|
-
var endIndex_0 = this.
|
|
948
|
+
var endIndex_0 = this.p1g_1 + byteCount | 0;
|
|
949
949
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
950
950
|
// Inline function 'kotlin.js.asDynamic' call
|
|
951
951
|
var tmp_0 = tmp6;
|
|
952
952
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
953
953
|
// Inline function 'kotlin.js.asDynamic' call
|
|
954
954
|
arrayCopy(tmp_0, tmp7, tmp8, tmp9, endIndex_0);
|
|
955
|
-
sink.
|
|
956
|
-
this.
|
|
955
|
+
sink.q1g_1 = sink.q1g_1 + byteCount | 0;
|
|
956
|
+
this.p1g_1 = this.p1g_1 + byteCount | 0;
|
|
957
957
|
};
|
|
958
|
-
protoOf(Segment).
|
|
958
|
+
protoOf(Segment).j1h = function (dst, dstStartOffset, dstEndOffset) {
|
|
959
959
|
var len = dstEndOffset - dstStartOffset | 0;
|
|
960
|
-
var tmp0 = this.
|
|
961
|
-
var tmp3 = this.
|
|
960
|
+
var tmp0 = this.o1g_1;
|
|
961
|
+
var tmp3 = this.p1g_1;
|
|
962
962
|
// Inline function 'kotlin.collections.copyInto' call
|
|
963
|
-
var endIndex = this.
|
|
963
|
+
var endIndex = this.p1g_1 + len | 0;
|
|
964
964
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
965
965
|
// Inline function 'kotlin.js.asDynamic' call
|
|
966
966
|
var tmp = tmp0;
|
|
967
967
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
968
968
|
// Inline function 'kotlin.js.asDynamic' call
|
|
969
969
|
arrayCopy(tmp, dst, dstStartOffset, tmp3, endIndex);
|
|
970
|
-
this.
|
|
970
|
+
this.p1g_1 = this.p1g_1 + len | 0;
|
|
971
971
|
};
|
|
972
|
-
protoOf(Segment).
|
|
973
|
-
var tmp1 = this.
|
|
972
|
+
protoOf(Segment).v1h = function (src, srcStartOffset, srcEndOffset) {
|
|
973
|
+
var tmp1 = this.o1g_1;
|
|
974
974
|
// Inline function 'kotlin.collections.copyInto' call
|
|
975
|
-
var destinationOffset = this.
|
|
975
|
+
var destinationOffset = this.q1g_1;
|
|
976
976
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
977
977
|
// Inline function 'kotlin.js.asDynamic' call
|
|
978
978
|
var tmp = src;
|
|
979
979
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
980
980
|
// Inline function 'kotlin.js.asDynamic' call
|
|
981
981
|
arrayCopy(tmp, tmp1, destinationOffset, srcStartOffset, srcEndOffset);
|
|
982
|
-
this.
|
|
982
|
+
this.q1g_1 = this.q1g_1 + (srcEndOffset - srcStartOffset | 0) | 0;
|
|
983
983
|
};
|
|
984
984
|
protoOf(Segment).s = function () {
|
|
985
|
-
return this.
|
|
985
|
+
return this.q1g_1 - this.p1g_1 | 0;
|
|
986
986
|
};
|
|
987
|
-
protoOf(Segment).
|
|
988
|
-
return this.
|
|
987
|
+
protoOf(Segment).u1h = function () {
|
|
988
|
+
return this.o1g_1.length - this.q1g_1 | 0;
|
|
989
989
|
};
|
|
990
|
-
protoOf(Segment).
|
|
991
|
-
return this.
|
|
990
|
+
protoOf(Segment).z1i = function (readOnly) {
|
|
991
|
+
return this.o1g_1;
|
|
992
992
|
};
|
|
993
|
-
protoOf(Segment).
|
|
994
|
-
return this.
|
|
993
|
+
protoOf(Segment).g1h = function (index) {
|
|
994
|
+
return this.o1g_1[this.p1g_1 + index | 0];
|
|
995
995
|
};
|
|
996
|
-
protoOf(Segment).
|
|
997
|
-
this.
|
|
996
|
+
protoOf(Segment).a1j = function (index, value) {
|
|
997
|
+
this.o1g_1[this.q1g_1 + index | 0] = value;
|
|
998
998
|
};
|
|
999
|
-
protoOf(Segment).
|
|
1000
|
-
var d = this.
|
|
1001
|
-
var l = this.
|
|
999
|
+
protoOf(Segment).b1j = function (index, b0, b1) {
|
|
1000
|
+
var d = this.o1g_1;
|
|
1001
|
+
var l = this.q1g_1;
|
|
1002
1002
|
d[l + index | 0] = b0;
|
|
1003
1003
|
d[(l + index | 0) + 1 | 0] = b1;
|
|
1004
1004
|
};
|
|
1005
|
-
protoOf(Segment).
|
|
1006
|
-
var d = this.
|
|
1007
|
-
var l = this.
|
|
1005
|
+
protoOf(Segment).c1j = function (index, b0, b1, b2) {
|
|
1006
|
+
var d = this.o1g_1;
|
|
1007
|
+
var l = this.q1g_1;
|
|
1008
1008
|
d[l + index | 0] = b0;
|
|
1009
1009
|
d[(l + index | 0) + 1 | 0] = b1;
|
|
1010
1010
|
d[(l + index | 0) + 2 | 0] = b2;
|
|
1011
1011
|
};
|
|
1012
|
-
protoOf(Segment).
|
|
1013
|
-
var d = this.
|
|
1014
|
-
var l = this.
|
|
1012
|
+
protoOf(Segment).d1j = function (index, b0, b1, b2, b3) {
|
|
1013
|
+
var d = this.o1g_1;
|
|
1014
|
+
var l = this.q1g_1;
|
|
1015
1015
|
d[l + index | 0] = b0;
|
|
1016
1016
|
d[(l + index | 0) + 1 | 0] = b1;
|
|
1017
1017
|
d[(l + index | 0) + 2 | 0] = b2;
|
|
1018
1018
|
d[(l + index | 0) + 3 | 0] = b3;
|
|
1019
1019
|
};
|
|
1020
1020
|
function Segment() {
|
|
1021
|
-
this.
|
|
1022
|
-
this.
|
|
1023
|
-
this.
|
|
1024
|
-
this.
|
|
1025
|
-
this.
|
|
1026
|
-
this.
|
|
1021
|
+
this.p1g_1 = 0;
|
|
1022
|
+
this.q1g_1 = 0;
|
|
1023
|
+
this.r1g_1 = null;
|
|
1024
|
+
this.s1g_1 = false;
|
|
1025
|
+
this.t1g_1 = null;
|
|
1026
|
+
this.u1g_1 = null;
|
|
1027
1027
|
}
|
|
1028
1028
|
function SegmentCopyTracker() {
|
|
1029
1029
|
}
|
|
@@ -1034,10 +1034,10 @@
|
|
|
1034
1034
|
AlwaysSharedCopyTracker_instance = this;
|
|
1035
1035
|
SegmentCopyTracker.call(this);
|
|
1036
1036
|
}
|
|
1037
|
-
protoOf(AlwaysSharedCopyTracker).
|
|
1037
|
+
protoOf(AlwaysSharedCopyTracker).w1i = function () {
|
|
1038
1038
|
return true;
|
|
1039
1039
|
};
|
|
1040
|
-
protoOf(AlwaysSharedCopyTracker).
|
|
1040
|
+
protoOf(AlwaysSharedCopyTracker).y1i = function () {
|
|
1041
1041
|
return Unit_instance;
|
|
1042
1042
|
};
|
|
1043
1043
|
var AlwaysSharedCopyTracker_instance;
|
|
@@ -1057,21 +1057,21 @@
|
|
|
1057
1057
|
var arraySize = size;
|
|
1058
1058
|
if (size === -1) {
|
|
1059
1059
|
var fetchSize = new Long(2147483647, 0);
|
|
1060
|
-
while (_this__u8e3s4.
|
|
1060
|
+
while (_this__u8e3s4.j1g().s().e1(new Long(2147483647, 0)) < 0 && _this__u8e3s4.m1g(fetchSize)) {
|
|
1061
1061
|
// Inline function 'kotlin.Long.times' call
|
|
1062
1062
|
fetchSize = fetchSize.b3(toLong(2));
|
|
1063
1063
|
}
|
|
1064
1064
|
// Inline function 'kotlin.check' call
|
|
1065
|
-
if (!(_this__u8e3s4.
|
|
1066
|
-
var message = "Can't create an array of size " + _this__u8e3s4.
|
|
1065
|
+
if (!(_this__u8e3s4.j1g().s().e1(new Long(2147483647, 0)) < 0)) {
|
|
1066
|
+
var message = "Can't create an array of size " + _this__u8e3s4.j1g().s().toString();
|
|
1067
1067
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
1068
1068
|
}
|
|
1069
|
-
arraySize = _this__u8e3s4.
|
|
1069
|
+
arraySize = _this__u8e3s4.j1g().s().j1();
|
|
1070
1070
|
} else {
|
|
1071
|
-
_this__u8e3s4.
|
|
1071
|
+
_this__u8e3s4.l1g(toLong(size));
|
|
1072
1072
|
}
|
|
1073
1073
|
var array = new Int8Array(arraySize);
|
|
1074
|
-
readTo(_this__u8e3s4.
|
|
1074
|
+
readTo(_this__u8e3s4.j1g(), array);
|
|
1075
1075
|
return array;
|
|
1076
1076
|
}
|
|
1077
1077
|
function readTo(_this__u8e3s4, sink, startIndex, endIndex) {
|
|
@@ -1082,7 +1082,7 @@
|
|
|
1082
1082
|
checkBounds(toLong(size), toLong(startIndex), toLong(endIndex));
|
|
1083
1083
|
var offset = startIndex;
|
|
1084
1084
|
while (offset < endIndex) {
|
|
1085
|
-
var bytesRead = _this__u8e3s4.
|
|
1085
|
+
var bytesRead = _this__u8e3s4.i1h(sink, offset, endIndex);
|
|
1086
1086
|
if (bytesRead === -1) {
|
|
1087
1087
|
throw EOFException_init_$Create$_0('Source exhausted before reading ' + (endIndex - startIndex | 0) + ' bytes. ' + ('Only ' + bytesRead + ' bytes were read.'));
|
|
1088
1088
|
}
|
|
@@ -1100,12 +1100,12 @@
|
|
|
1100
1100
|
return readByteArrayImpl(_this__u8e3s4, byteCount);
|
|
1101
1101
|
}
|
|
1102
1102
|
function readString(_this__u8e3s4) {
|
|
1103
|
-
_this__u8e3s4.
|
|
1104
|
-
return commonReadUtf8(_this__u8e3s4.
|
|
1103
|
+
_this__u8e3s4.m1g(new Long(-1, 2147483647));
|
|
1104
|
+
return commonReadUtf8(_this__u8e3s4.j1g(), _this__u8e3s4.j1g().s());
|
|
1105
1105
|
}
|
|
1106
1106
|
function readString_0(_this__u8e3s4, byteCount) {
|
|
1107
|
-
_this__u8e3s4.
|
|
1108
|
-
return commonReadUtf8(_this__u8e3s4.
|
|
1107
|
+
_this__u8e3s4.l1g(byteCount);
|
|
1108
|
+
return commonReadUtf8(_this__u8e3s4.j1g(), byteCount);
|
|
1109
1109
|
}
|
|
1110
1110
|
function readString_1(_this__u8e3s4) {
|
|
1111
1111
|
return commonReadUtf8(_this__u8e3s4, _this__u8e3s4.s());
|
|
@@ -1114,20 +1114,20 @@
|
|
|
1114
1114
|
if (byteCount.equals(new Long(0, 0)))
|
|
1115
1115
|
return '';
|
|
1116
1116
|
// Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.forEachSegment' call
|
|
1117
|
-
var curr = _this__u8e3s4.
|
|
1117
|
+
var curr = _this__u8e3s4.g1g_1;
|
|
1118
1118
|
while (!(curr == null)) {
|
|
1119
1119
|
get_SegmentReadContextImpl();
|
|
1120
1120
|
if (toLong(curr.s()).e1(byteCount) >= 0) {
|
|
1121
1121
|
var result = '';
|
|
1122
1122
|
// Inline function 'kotlinx.io.unsafe.withData' call
|
|
1123
|
-
var tmp2 = curr.
|
|
1124
|
-
var tmp3 = curr.
|
|
1125
|
-
var tmp0 = curr.
|
|
1123
|
+
var tmp2 = curr.z1i(true);
|
|
1124
|
+
var tmp3 = curr.p1g_1;
|
|
1125
|
+
var tmp0 = curr.q1g_1;
|
|
1126
1126
|
// Inline function 'kotlin.math.min' call
|
|
1127
1127
|
var b = tmp3 + byteCount.j1() | 0;
|
|
1128
1128
|
var tmp$ret$0 = Math.min(tmp0, b);
|
|
1129
1129
|
result = commonToUtf8String(tmp2, tmp3, tmp$ret$0);
|
|
1130
|
-
_this__u8e3s4.
|
|
1130
|
+
_this__u8e3s4.h1h(byteCount);
|
|
1131
1131
|
return result;
|
|
1132
1132
|
}
|
|
1133
1133
|
return commonToUtf8String(readByteArray_0(_this__u8e3s4, byteCount.j1()));
|
|
@@ -1144,7 +1144,7 @@
|
|
|
1144
1144
|
checkBounds(toLong(size), toLong(startIndex), toLong(endIndex));
|
|
1145
1145
|
// Inline function 'kotlinx.io.writeToInternalBuffer' call
|
|
1146
1146
|
// Inline function 'kotlinx.io.commonWriteUtf8' call
|
|
1147
|
-
var this_0 = _this__u8e3s4.
|
|
1147
|
+
var this_0 = _this__u8e3s4.j1g();
|
|
1148
1148
|
var i = startIndex;
|
|
1149
1149
|
while (i < endIndex) {
|
|
1150
1150
|
var p0 = i;
|
|
@@ -1154,15 +1154,15 @@
|
|
|
1154
1154
|
if (c < 128) {
|
|
1155
1155
|
$l$block_0: {
|
|
1156
1156
|
// Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.writeToTail' call
|
|
1157
|
-
var tail = this_0.
|
|
1157
|
+
var tail = this_0.p1h(1);
|
|
1158
1158
|
var ctx = get_SegmentWriteContextImpl();
|
|
1159
1159
|
var segmentOffset = -i | 0;
|
|
1160
1160
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
1161
|
-
var b = i + tail.
|
|
1161
|
+
var b = i + tail.u1h() | 0;
|
|
1162
1162
|
var runLimit = Math.min(endIndex, b);
|
|
1163
1163
|
var _unary__edvuaz = i;
|
|
1164
1164
|
i = _unary__edvuaz + 1 | 0;
|
|
1165
|
-
ctx.
|
|
1165
|
+
ctx.h1j(tail, segmentOffset + _unary__edvuaz | 0, toByte(c));
|
|
1166
1166
|
$l$loop: while (i < runLimit) {
|
|
1167
1167
|
var p0_0 = i;
|
|
1168
1168
|
// Inline function 'kotlin.code' call
|
|
@@ -1172,89 +1172,89 @@
|
|
|
1172
1172
|
break $l$loop;
|
|
1173
1173
|
var _unary__edvuaz_0 = i;
|
|
1174
1174
|
i = _unary__edvuaz_0 + 1 | 0;
|
|
1175
|
-
ctx.
|
|
1175
|
+
ctx.h1j(tail, segmentOffset + _unary__edvuaz_0 | 0, toByte(c));
|
|
1176
1176
|
}
|
|
1177
1177
|
var bytesWritten = i + segmentOffset | 0;
|
|
1178
1178
|
if (bytesWritten === 1) {
|
|
1179
|
-
tail.
|
|
1179
|
+
tail.q1g_1 = tail.q1g_1 + bytesWritten | 0;
|
|
1180
1180
|
var tmp = this_0;
|
|
1181
1181
|
// Inline function 'kotlin.Long.plus' call
|
|
1182
|
-
tmp.
|
|
1182
|
+
tmp.i1g_1 = this_0.i1g_1.z2(toLong(bytesWritten));
|
|
1183
1183
|
break $l$block_0;
|
|
1184
1184
|
}
|
|
1185
1185
|
// Inline function 'kotlin.check' call
|
|
1186
|
-
if (!(0 <= bytesWritten ? bytesWritten <= tail.
|
|
1187
|
-
var message = 'Invalid number of bytes written: ' + bytesWritten + '. Should be in 0..' + tail.
|
|
1186
|
+
if (!(0 <= bytesWritten ? bytesWritten <= tail.u1h() : false)) {
|
|
1187
|
+
var message = 'Invalid number of bytes written: ' + bytesWritten + '. Should be in 0..' + tail.u1h();
|
|
1188
1188
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
1189
1189
|
}
|
|
1190
1190
|
if (!(bytesWritten === 0)) {
|
|
1191
|
-
tail.
|
|
1191
|
+
tail.q1g_1 = tail.q1g_1 + bytesWritten | 0;
|
|
1192
1192
|
var tmp_0 = this_0;
|
|
1193
1193
|
// Inline function 'kotlin.Long.plus' call
|
|
1194
|
-
tmp_0.
|
|
1194
|
+
tmp_0.i1g_1 = this_0.i1g_1.z2(toLong(bytesWritten));
|
|
1195
1195
|
break $l$block_0;
|
|
1196
1196
|
}
|
|
1197
1197
|
if (isEmpty(tail)) {
|
|
1198
|
-
this_0.
|
|
1198
|
+
this_0.j1i();
|
|
1199
1199
|
}
|
|
1200
1200
|
}
|
|
1201
1201
|
} else if (c < 2048) {
|
|
1202
1202
|
$l$block_2: {
|
|
1203
1203
|
// Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.writeToTail' call
|
|
1204
|
-
var tail_0 = this_0.
|
|
1205
|
-
get_SegmentWriteContextImpl().
|
|
1204
|
+
var tail_0 = this_0.p1h(2);
|
|
1205
|
+
get_SegmentWriteContextImpl().g1j(tail_0, 0, toByte(c >> 6 | 192), toByte(c & 63 | 128));
|
|
1206
1206
|
var bytesWritten_0 = 2;
|
|
1207
1207
|
if (bytesWritten_0 === 2) {
|
|
1208
|
-
tail_0.
|
|
1208
|
+
tail_0.q1g_1 = tail_0.q1g_1 + bytesWritten_0 | 0;
|
|
1209
1209
|
var tmp_1 = this_0;
|
|
1210
1210
|
// Inline function 'kotlin.Long.plus' call
|
|
1211
|
-
tmp_1.
|
|
1211
|
+
tmp_1.i1g_1 = this_0.i1g_1.z2(toLong(bytesWritten_0));
|
|
1212
1212
|
break $l$block_2;
|
|
1213
1213
|
}
|
|
1214
1214
|
// Inline function 'kotlin.check' call
|
|
1215
|
-
if (!(0 <= bytesWritten_0 ? bytesWritten_0 <= tail_0.
|
|
1216
|
-
var message_0 = 'Invalid number of bytes written: ' + bytesWritten_0 + '. Should be in 0..' + tail_0.
|
|
1215
|
+
if (!(0 <= bytesWritten_0 ? bytesWritten_0 <= tail_0.u1h() : false)) {
|
|
1216
|
+
var message_0 = 'Invalid number of bytes written: ' + bytesWritten_0 + '. Should be in 0..' + tail_0.u1h();
|
|
1217
1217
|
throw IllegalStateException_init_$Create$(toString(message_0));
|
|
1218
1218
|
}
|
|
1219
1219
|
if (!(bytesWritten_0 === 0)) {
|
|
1220
|
-
tail_0.
|
|
1220
|
+
tail_0.q1g_1 = tail_0.q1g_1 + bytesWritten_0 | 0;
|
|
1221
1221
|
var tmp_2 = this_0;
|
|
1222
1222
|
// Inline function 'kotlin.Long.plus' call
|
|
1223
|
-
tmp_2.
|
|
1223
|
+
tmp_2.i1g_1 = this_0.i1g_1.z2(toLong(bytesWritten_0));
|
|
1224
1224
|
break $l$block_2;
|
|
1225
1225
|
}
|
|
1226
1226
|
if (isEmpty(tail_0)) {
|
|
1227
|
-
this_0.
|
|
1227
|
+
this_0.j1i();
|
|
1228
1228
|
}
|
|
1229
1229
|
}
|
|
1230
1230
|
i = i + 1 | 0;
|
|
1231
1231
|
} else if (c < 55296 || c > 57343) {
|
|
1232
1232
|
$l$block_4: {
|
|
1233
1233
|
// Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.writeToTail' call
|
|
1234
|
-
var tail_1 = this_0.
|
|
1235
|
-
get_SegmentWriteContextImpl().
|
|
1234
|
+
var tail_1 = this_0.p1h(3);
|
|
1235
|
+
get_SegmentWriteContextImpl().f1j(tail_1, 0, toByte(c >> 12 | 224), toByte(c >> 6 & 63 | 128), toByte(c & 63 | 128));
|
|
1236
1236
|
var bytesWritten_1 = 3;
|
|
1237
1237
|
if (bytesWritten_1 === 3) {
|
|
1238
|
-
tail_1.
|
|
1238
|
+
tail_1.q1g_1 = tail_1.q1g_1 + bytesWritten_1 | 0;
|
|
1239
1239
|
var tmp_3 = this_0;
|
|
1240
1240
|
// Inline function 'kotlin.Long.plus' call
|
|
1241
|
-
tmp_3.
|
|
1241
|
+
tmp_3.i1g_1 = this_0.i1g_1.z2(toLong(bytesWritten_1));
|
|
1242
1242
|
break $l$block_4;
|
|
1243
1243
|
}
|
|
1244
1244
|
// Inline function 'kotlin.check' call
|
|
1245
|
-
if (!(0 <= bytesWritten_1 ? bytesWritten_1 <= tail_1.
|
|
1246
|
-
var message_1 = 'Invalid number of bytes written: ' + bytesWritten_1 + '. Should be in 0..' + tail_1.
|
|
1245
|
+
if (!(0 <= bytesWritten_1 ? bytesWritten_1 <= tail_1.u1h() : false)) {
|
|
1246
|
+
var message_1 = 'Invalid number of bytes written: ' + bytesWritten_1 + '. Should be in 0..' + tail_1.u1h();
|
|
1247
1247
|
throw IllegalStateException_init_$Create$(toString(message_1));
|
|
1248
1248
|
}
|
|
1249
1249
|
if (!(bytesWritten_1 === 0)) {
|
|
1250
|
-
tail_1.
|
|
1250
|
+
tail_1.q1g_1 = tail_1.q1g_1 + bytesWritten_1 | 0;
|
|
1251
1251
|
var tmp_4 = this_0;
|
|
1252
1252
|
// Inline function 'kotlin.Long.plus' call
|
|
1253
|
-
tmp_4.
|
|
1253
|
+
tmp_4.i1g_1 = this_0.i1g_1.z2(toLong(bytesWritten_1));
|
|
1254
1254
|
break $l$block_4;
|
|
1255
1255
|
}
|
|
1256
1256
|
if (isEmpty(tail_1)) {
|
|
1257
|
-
this_0.
|
|
1257
|
+
this_0.j1i();
|
|
1258
1258
|
}
|
|
1259
1259
|
}
|
|
1260
1260
|
i = i + 1 | 0;
|
|
@@ -1273,43 +1273,43 @@
|
|
|
1273
1273
|
// Inline function 'kotlin.code' call
|
|
1274
1274
|
var this_4 = _Char___init__impl__6a9atx(63);
|
|
1275
1275
|
var tmp$ret$26 = Char__toInt_impl_vasixd(this_4);
|
|
1276
|
-
this_0.
|
|
1276
|
+
this_0.d1i(toByte(tmp$ret$26));
|
|
1277
1277
|
i = i + 1 | 0;
|
|
1278
1278
|
} else {
|
|
1279
1279
|
var codePoint = 65536 + ((c & 1023) << 10 | low & 1023) | 0;
|
|
1280
1280
|
$l$block_6: {
|
|
1281
1281
|
// Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.writeToTail' call
|
|
1282
|
-
var tail_2 = this_0.
|
|
1283
|
-
get_SegmentWriteContextImpl().
|
|
1282
|
+
var tail_2 = this_0.p1h(4);
|
|
1283
|
+
get_SegmentWriteContextImpl().e1j(tail_2, 0, toByte(codePoint >> 18 | 240), toByte(codePoint >> 12 & 63 | 128), toByte(codePoint >> 6 & 63 | 128), toByte(codePoint & 63 | 128));
|
|
1284
1284
|
var bytesWritten_2 = 4;
|
|
1285
1285
|
if (bytesWritten_2 === 4) {
|
|
1286
|
-
tail_2.
|
|
1286
|
+
tail_2.q1g_1 = tail_2.q1g_1 + bytesWritten_2 | 0;
|
|
1287
1287
|
var tmp_6 = this_0;
|
|
1288
1288
|
// Inline function 'kotlin.Long.plus' call
|
|
1289
|
-
tmp_6.
|
|
1289
|
+
tmp_6.i1g_1 = this_0.i1g_1.z2(toLong(bytesWritten_2));
|
|
1290
1290
|
break $l$block_6;
|
|
1291
1291
|
}
|
|
1292
1292
|
// Inline function 'kotlin.check' call
|
|
1293
|
-
if (!(0 <= bytesWritten_2 ? bytesWritten_2 <= tail_2.
|
|
1294
|
-
var message_2 = 'Invalid number of bytes written: ' + bytesWritten_2 + '. Should be in 0..' + tail_2.
|
|
1293
|
+
if (!(0 <= bytesWritten_2 ? bytesWritten_2 <= tail_2.u1h() : false)) {
|
|
1294
|
+
var message_2 = 'Invalid number of bytes written: ' + bytesWritten_2 + '. Should be in 0..' + tail_2.u1h();
|
|
1295
1295
|
throw IllegalStateException_init_$Create$(toString(message_2));
|
|
1296
1296
|
}
|
|
1297
1297
|
if (!(bytesWritten_2 === 0)) {
|
|
1298
|
-
tail_2.
|
|
1298
|
+
tail_2.q1g_1 = tail_2.q1g_1 + bytesWritten_2 | 0;
|
|
1299
1299
|
var tmp_7 = this_0;
|
|
1300
1300
|
// Inline function 'kotlin.Long.plus' call
|
|
1301
|
-
tmp_7.
|
|
1301
|
+
tmp_7.i1g_1 = this_0.i1g_1.z2(toLong(bytesWritten_2));
|
|
1302
1302
|
break $l$block_6;
|
|
1303
1303
|
}
|
|
1304
1304
|
if (isEmpty(tail_2)) {
|
|
1305
|
-
this_0.
|
|
1305
|
+
this_0.j1i();
|
|
1306
1306
|
}
|
|
1307
1307
|
}
|
|
1308
1308
|
i = i + 2 | 0;
|
|
1309
1309
|
}
|
|
1310
1310
|
}
|
|
1311
1311
|
}
|
|
1312
|
-
_this__u8e3s4.
|
|
1312
|
+
_this__u8e3s4.z1g();
|
|
1313
1313
|
}
|
|
1314
1314
|
function commonToUtf8String(_this__u8e3s4, beginIndex, endIndex) {
|
|
1315
1315
|
beginIndex = beginIndex === VOID ? 0 : beginIndex;
|
|
@@ -1673,27 +1673,27 @@
|
|
|
1673
1673
|
}
|
|
1674
1674
|
function SegmentReadContextImpl$1() {
|
|
1675
1675
|
}
|
|
1676
|
-
protoOf(SegmentReadContextImpl$1).
|
|
1677
|
-
return segment.
|
|
1676
|
+
protoOf(SegmentReadContextImpl$1).h1i = function (segment, offset) {
|
|
1677
|
+
return segment.g1h(offset);
|
|
1678
1678
|
};
|
|
1679
1679
|
function SegmentWriteContextImpl$1() {
|
|
1680
1680
|
}
|
|
1681
|
-
protoOf(SegmentWriteContextImpl$1).
|
|
1682
|
-
segment.
|
|
1681
|
+
protoOf(SegmentWriteContextImpl$1).h1j = function (segment, offset, value) {
|
|
1682
|
+
segment.a1j(offset, value);
|
|
1683
1683
|
};
|
|
1684
|
-
protoOf(SegmentWriteContextImpl$1).
|
|
1685
|
-
segment.
|
|
1684
|
+
protoOf(SegmentWriteContextImpl$1).g1j = function (segment, offset, b0, b1) {
|
|
1685
|
+
segment.b1j(offset, b0, b1);
|
|
1686
1686
|
};
|
|
1687
|
-
protoOf(SegmentWriteContextImpl$1).
|
|
1688
|
-
segment.
|
|
1687
|
+
protoOf(SegmentWriteContextImpl$1).f1j = function (segment, offset, b0, b1, b2) {
|
|
1688
|
+
segment.c1j(offset, b0, b1, b2);
|
|
1689
1689
|
};
|
|
1690
|
-
protoOf(SegmentWriteContextImpl$1).
|
|
1691
|
-
segment.
|
|
1690
|
+
protoOf(SegmentWriteContextImpl$1).e1j = function (segment, offset, b0, b1, b2, b3) {
|
|
1691
|
+
segment.d1j(offset, b0, b1, b2, b3);
|
|
1692
1692
|
};
|
|
1693
1693
|
function BufferIterationContextImpl$1() {
|
|
1694
1694
|
}
|
|
1695
|
-
protoOf(BufferIterationContextImpl$1).
|
|
1696
|
-
return get_SegmentReadContextImpl().
|
|
1695
|
+
protoOf(BufferIterationContextImpl$1).h1i = function (segment, offset) {
|
|
1696
|
+
return get_SegmentReadContextImpl().h1i(segment, offset);
|
|
1697
1697
|
};
|
|
1698
1698
|
var properties_initialized_UnsafeBufferOperations_kt_2xfgoc;
|
|
1699
1699
|
function _init_properties_UnsafeBufferOperations_kt__xw75gy() {
|
|
@@ -1761,15 +1761,15 @@
|
|
|
1761
1761
|
captureStack(this, EOFException);
|
|
1762
1762
|
}
|
|
1763
1763
|
function SegmentPool() {
|
|
1764
|
-
this.
|
|
1765
|
-
this.
|
|
1764
|
+
this.q1h_1 = 0;
|
|
1765
|
+
this.r1h_1 = 0;
|
|
1766
1766
|
}
|
|
1767
|
-
protoOf(SegmentPool).
|
|
1768
|
-
return Companion_instance.
|
|
1767
|
+
protoOf(SegmentPool).s1h = function () {
|
|
1768
|
+
return Companion_instance.v1i();
|
|
1769
1769
|
};
|
|
1770
|
-
protoOf(SegmentPool).
|
|
1770
|
+
protoOf(SegmentPool).i1i = function (segment) {
|
|
1771
1771
|
};
|
|
1772
|
-
protoOf(SegmentPool).
|
|
1772
|
+
protoOf(SegmentPool).x1i = function () {
|
|
1773
1773
|
return AlwaysSharedCopyTracker_getInstance();
|
|
1774
1774
|
};
|
|
1775
1775
|
var SegmentPool_instance;
|
|
@@ -1777,7 +1777,7 @@
|
|
|
1777
1777
|
return SegmentPool_instance;
|
|
1778
1778
|
}
|
|
1779
1779
|
//region block: post-declaration
|
|
1780
|
-
protoOf(Buffer).
|
|
1780
|
+
protoOf(Buffer).w1h = write$default;
|
|
1781
1781
|
//endregion
|
|
1782
1782
|
//region block: init
|
|
1783
1783
|
Companion_instance = new Companion();
|