Coverage Report

Created: 2025-11-27 06:27

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/minizip-ng/mz_strm.c
Line
Count
Source
1
/* mz_strm.c -- Stream interface
2
   part of the minizip-ng project
3
4
   Copyright (C) Nathan Moinvaziri
5
     https://github.com/zlib-ng/minizip-ng
6
7
   This program is distributed under the terms of the same license as zlib.
8
   See the accompanying LICENSE file for the full text of the license.
9
*/
10
11
#include "mz.h"
12
#include "mz_strm.h"
13
14
/***************************************************************************/
15
16
18.9M
#define MZ_STREAM_FIND_SIZE (1024)
17
18
/***************************************************************************/
19
20
48.5k
int32_t mz_stream_open(void *stream, const char *path, int32_t mode) {
21
48.5k
    mz_stream *strm = (mz_stream *)stream;
22
48.5k
    if (!strm || !strm->vtbl || !strm->vtbl->open)
23
0
        return MZ_STREAM_ERROR;
24
48.5k
    return strm->vtbl->open(strm, path, mode);
25
48.5k
}
26
27
16.1M
int32_t mz_stream_is_open(void *stream) {
28
16.1M
    mz_stream *strm = (mz_stream *)stream;
29
16.1M
    if (!strm || !strm->vtbl || !strm->vtbl->is_open)
30
0
        return MZ_STREAM_ERROR;
31
16.1M
    return strm->vtbl->is_open(strm);
32
16.1M
}
33
34
8.34M
int32_t mz_stream_read(void *stream, void *buf, int32_t size) {
35
8.34M
    mz_stream *strm = (mz_stream *)stream;
36
8.34M
    if (!strm || !strm->vtbl || !strm->vtbl->read)
37
0
        return MZ_PARAM_ERROR;
38
8.34M
    if (mz_stream_is_open(strm) != MZ_OK)
39
0
        return MZ_STREAM_ERROR;
40
8.34M
    return strm->vtbl->read(strm, buf, size);
41
8.34M
}
42
43
7.63M
static int32_t mz_stream_read_value(void *stream, uint64_t *value, int32_t len) {
44
7.63M
    uint8_t buf[8];
45
7.63M
    int32_t n = 0;
46
7.63M
    int32_t i = 0;
47
48
7.63M
    *value = 0;
49
7.63M
    if (mz_stream_read(stream, buf, len) == len) {
50
28.9M
        for (n = 0; n < len; n += 1, i += 8)
51
21.3M
            *value += ((uint64_t)buf[n]) << i;
52
7.61M
    } else if (mz_stream_error(stream))
53
0
        return MZ_STREAM_ERROR;
54
17.1k
    else
55
17.1k
        return MZ_END_OF_STREAM;
56
57
7.61M
    return MZ_OK;
58
7.63M
}
59
60
238k
int32_t mz_stream_read_uint8(void *stream, uint8_t *value) {
61
238k
    int32_t err = MZ_OK;
62
238k
    uint64_t value64 = 0;
63
64
238k
    *value = 0;
65
238k
    err = mz_stream_read_value(stream, &value64, sizeof(uint8_t));
66
238k
    if (err == MZ_OK)
67
238k
        *value = (uint8_t)value64;
68
238k
    return err;
69
238k
}
70
71
4.47M
int32_t mz_stream_read_uint16(void *stream, uint16_t *value) {
72
4.47M
    int32_t err = MZ_OK;
73
4.47M
    uint64_t value64 = 0;
74
75
4.47M
    *value = 0;
76
4.47M
    err = mz_stream_read_value(stream, &value64, sizeof(uint16_t));
77
4.47M
    if (err == MZ_OK)
78
4.47M
        *value = (uint16_t)value64;
79
4.47M
    return err;
80
4.47M
}
81
82
2.77M
int32_t mz_stream_read_uint32(void *stream, uint32_t *value) {
83
2.77M
    int32_t err = MZ_OK;
84
2.77M
    uint64_t value64 = 0;
85
86
2.77M
    *value = 0;
87
2.77M
    err = mz_stream_read_value(stream, &value64, sizeof(uint32_t));
88
2.77M
    if (err == MZ_OK)
89
2.76M
        *value = (uint32_t)value64;
90
2.77M
    return err;
91
2.77M
}
92
93
54.2k
int32_t mz_stream_read_int64(void *stream, int64_t *value) {
94
54.2k
    return mz_stream_read_value(stream, (uint64_t *)value, sizeof(uint64_t));
95
54.2k
}
96
97
85.1k
int32_t mz_stream_read_uint64(void *stream, uint64_t *value) {
98
85.1k
    return mz_stream_read_value(stream, value, sizeof(uint64_t));
99
85.1k
}
100
101
4.50M
int32_t mz_stream_write(void *stream, const void *buf, int32_t size) {
102
4.50M
    mz_stream *strm = (mz_stream *)stream;
103
4.50M
    if (size == 0)
104
119k
        return size;
105
4.38M
    if (!strm || !strm->vtbl || !strm->vtbl->write)
106
0
        return MZ_PARAM_ERROR;
107
4.38M
    if (mz_stream_is_open(strm) != MZ_OK)
108
0
        return MZ_STREAM_ERROR;
109
4.38M
    return strm->vtbl->write(strm, buf, size);
110
4.38M
}
111
112
3.91M
static int32_t mz_stream_write_value(void *stream, uint64_t value, int32_t len) {
113
3.91M
    mz_stream *strm = (mz_stream *)stream;
114
3.91M
    uint8_t buf[8];
115
3.91M
    int32_t n = 0;
116
117
3.91M
    if (!strm)
118
0
        return MZ_PARAM_ERROR;
119
12.0M
    for (n = 0; n < len; n += 1) {
120
8.11M
        buf[n] = (uint8_t)(value & 0xff);
121
8.11M
        value >>= 8;
122
8.11M
    }
123
124
3.91M
    if (value != 0) {
125
        /* Data overflow - hack for ZIP64 (X Roche) */
126
0
        for (n = 0; n < len; n += 1)
127
0
            buf[n] = 0xff;
128
0
    }
129
130
3.91M
    if (mz_stream_write(strm, buf, len) != len)
131
0
        return MZ_STREAM_ERROR;
132
133
3.91M
    return MZ_OK;
134
3.91M
}
135
136
1.75M
int32_t mz_stream_write_uint8(void *stream, uint8_t value) {
137
1.75M
    return mz_stream_write_value(stream, value, sizeof(uint8_t));
138
1.75M
}
139
140
1.24M
int32_t mz_stream_write_uint16(void *stream, uint16_t value) {
141
1.24M
    return mz_stream_write_value(stream, value, sizeof(uint16_t));
142
1.24M
}
143
144
864k
int32_t mz_stream_write_uint32(void *stream, uint32_t value) {
145
864k
    return mz_stream_write_value(stream, value, sizeof(uint32_t));
146
864k
}
147
148
46.9k
int32_t mz_stream_write_int64(void *stream, int64_t value) {
149
46.9k
    return mz_stream_write_value(stream, (uint64_t)value, sizeof(uint64_t));
150
46.9k
}
151
152
5.45k
int32_t mz_stream_write_uint64(void *stream, uint64_t value) {
153
5.45k
    return mz_stream_write_value(stream, value, sizeof(uint64_t));
154
5.45k
}
155
156
406k
int32_t mz_stream_copy(void *target, void *source, int32_t len) {
157
406k
    return mz_stream_copy_stream(target, NULL, source, NULL, len);
158
406k
}
159
160
0
int32_t mz_stream_copy_to_end(void *target, void *source) {
161
0
    return mz_stream_copy_stream_to_end(target, NULL, source, NULL);
162
0
}
163
164
int32_t mz_stream_copy_stream(void *target, mz_stream_write_cb write_cb, void *source, mz_stream_read_cb read_cb,
165
406k
                              int32_t len) {
166
406k
    uint8_t buf[16384];
167
406k
    int32_t bytes_to_copy = 0;
168
406k
    int32_t read = 0;
169
406k
    int32_t written = 0;
170
171
406k
    if (!write_cb)
172
406k
        write_cb = mz_stream_write;
173
406k
    if (!read_cb)
174
406k
        read_cb = mz_stream_read;
175
176
780k
    while (len > 0) {
177
378k
        bytes_to_copy = len;
178
378k
        if (bytes_to_copy > (int32_t)sizeof(buf))
179
7.29k
            bytes_to_copy = sizeof(buf);
180
378k
        read = read_cb(source, buf, bytes_to_copy);
181
378k
        if (read <= 0)
182
5.50k
            return MZ_STREAM_ERROR;
183
373k
        written = write_cb(target, buf, read);
184
373k
        if (written != read)
185
0
            return MZ_STREAM_ERROR;
186
373k
        len -= read;
187
373k
    }
188
189
401k
    return MZ_OK;
190
406k
}
191
192
int32_t mz_stream_copy_stream_to_end(void *target, mz_stream_write_cb write_cb, void *source,
193
0
                                     mz_stream_read_cb read_cb) {
194
0
    uint8_t buf[16384];
195
0
    int32_t read = 0;
196
0
    int32_t written = 0;
197
198
0
    if (!write_cb)
199
0
        write_cb = mz_stream_write;
200
0
    if (!read_cb)
201
0
        read_cb = mz_stream_read;
202
203
0
    read = read_cb(source, buf, sizeof(buf));
204
0
    while (read > 0) {
205
0
        written = write_cb(target, buf, read);
206
0
        if (written != read)
207
0
            return MZ_STREAM_ERROR;
208
0
        read = read_cb(source, buf, sizeof(buf));
209
0
    }
210
211
0
    if (read < 0)
212
0
        return MZ_STREAM_ERROR;
213
214
0
    return MZ_OK;
215
0
}
216
217
1.89M
int64_t mz_stream_tell(void *stream) {
218
1.89M
    mz_stream *strm = (mz_stream *)stream;
219
1.89M
    if (!strm || !strm->vtbl || !strm->vtbl->tell)
220
0
        return MZ_PARAM_ERROR;
221
1.89M
    if (mz_stream_is_open(strm) != MZ_OK)
222
0
        return MZ_STREAM_ERROR;
223
1.89M
    return strm->vtbl->tell(strm);
224
1.89M
}
225
226
1.44M
int32_t mz_stream_seek(void *stream, int64_t offset, int32_t origin) {
227
1.44M
    mz_stream *strm = (mz_stream *)stream;
228
1.44M
    if (!strm || !strm->vtbl || !strm->vtbl->seek)
229
0
        return MZ_PARAM_ERROR;
230
1.44M
    if (mz_stream_is_open(strm) != MZ_OK)
231
0
        return MZ_STREAM_ERROR;
232
1.44M
    if (origin == MZ_SEEK_SET && offset < 0)
233
496
        return MZ_SEEK_ERROR;
234
1.44M
    return strm->vtbl->seek(strm, offset, origin);
235
1.44M
}
236
237
143k
int32_t mz_stream_find(void *stream, const void *find, int32_t find_size, int64_t max_seek, int64_t *position) {
238
143k
    uint8_t buf[MZ_STREAM_FIND_SIZE];
239
143k
    int32_t buf_pos = 0;
240
143k
    int32_t read_size = sizeof(buf);
241
143k
    int32_t read = 0;
242
143k
    int64_t read_pos = 0;
243
143k
    int64_t start_pos = 0;
244
143k
    int64_t disk_pos = 0;
245
143k
    int32_t i = 0;
246
143k
    uint8_t first = 1;
247
143k
    int32_t err = MZ_OK;
248
249
143k
    if (!stream || !find || !position)
250
0
        return MZ_PARAM_ERROR;
251
143k
    if (find_size < 0 || find_size >= (int32_t)sizeof(buf))
252
0
        return MZ_PARAM_ERROR;
253
254
143k
    *position = -1;
255
256
143k
    start_pos = mz_stream_tell(stream);
257
258
156k
    while (read_pos < max_seek) {
259
156k
        if (read_size > (int32_t)(max_seek - read_pos - buf_pos) &&
260
156k
            (max_seek - read_pos - buf_pos) < (int64_t)sizeof(buf)) {
261
0
            read_size = (int32_t)(max_seek - read_pos - buf_pos);
262
0
        }
263
264
156k
        read = mz_stream_read(stream, buf + buf_pos, read_size);
265
156k
        if ((read <= 0) || (read + buf_pos < find_size))
266
953
            break;
267
268
14.5M
        for (i = 0; i <= read + buf_pos - find_size; i += 1) {
269
14.5M
            if (memcmp(&buf[i], find, find_size) != 0)
270
14.4M
                continue;
271
272
142k
            disk_pos = mz_stream_tell(stream);
273
274
            /* Seek to position on disk where the data was found */
275
142k
            err = mz_stream_seek(stream, disk_pos - ((int64_t)read + buf_pos - i), MZ_SEEK_SET);
276
142k
            if (err != MZ_OK)
277
0
                return MZ_EXIST_ERROR;
278
279
142k
            *position = start_pos + read_pos + i;
280
142k
            return MZ_OK;
281
142k
        }
282
283
13.2k
        if (first) {
284
1.21k
            read -= find_size;
285
1.21k
            read_size -= find_size;
286
1.21k
            buf_pos = find_size;
287
1.21k
            first = 0;
288
1.21k
        }
289
290
13.2k
        memmove(buf, buf + read, find_size);
291
13.2k
        read_pos += read;
292
13.2k
    }
293
294
953
    return MZ_EXIST_ERROR;
295
143k
}
296
297
32.8k
int32_t mz_stream_find_reverse(void *stream, const void *find, int32_t find_size, int64_t max_seek, int64_t *position) {
298
32.8k
    uint8_t buf[MZ_STREAM_FIND_SIZE];
299
32.8k
    int32_t buf_pos = 0;
300
32.8k
    int32_t read_size = MZ_STREAM_FIND_SIZE;
301
32.8k
    int64_t read_pos = 0;
302
32.8k
    int32_t read = 0;
303
32.8k
    int64_t start_pos = 0;
304
32.8k
    int64_t disk_pos = 0;
305
32.8k
    uint8_t first = 1;
306
32.8k
    int32_t i = 0;
307
32.8k
    int32_t err = MZ_OK;
308
309
32.8k
    if (!stream || !find || !position)
310
0
        return MZ_PARAM_ERROR;
311
32.8k
    if (find_size < 0 || find_size >= (int32_t)sizeof(buf))
312
0
        return MZ_PARAM_ERROR;
313
314
32.8k
    *position = -1;
315
316
32.8k
    start_pos = mz_stream_tell(stream);
317
318
94.5k
    while (read_pos < max_seek) {
319
72.4k
        if (read_size > (int32_t)(max_seek - read_pos) && (max_seek - read_pos) < (int64_t)sizeof(buf))
320
54.6k
            read_size = (int32_t)(max_seek - read_pos);
321
322
72.4k
        if (mz_stream_seek(stream, start_pos - (read_pos + read_size), MZ_SEEK_SET) != MZ_OK)
323
0
            break;
324
72.4k
        read = mz_stream_read(stream, buf, read_size);
325
72.4k
        if ((read <= 0) || (read + buf_pos < find_size))
326
3
            break;
327
72.4k
        if (read + buf_pos < MZ_STREAM_FIND_SIZE)
328
54.6k
            memmove(buf + MZ_STREAM_FIND_SIZE - (read + buf_pos), buf, read);
329
330
18.8M
        for (i = find_size; i <= (read + buf_pos); i += 1) {
331
18.7M
            if (memcmp(&buf[MZ_STREAM_FIND_SIZE - i], find, find_size) != 0)
332
18.7M
                continue;
333
334
10.7k
            disk_pos = mz_stream_tell(stream);
335
336
            /* Seek to position on disk where the data was found */
337
10.7k
            err = mz_stream_seek(stream, disk_pos + buf_pos - i, MZ_SEEK_SET);
338
10.7k
            if (err != MZ_OK)
339
0
                return MZ_EXIST_ERROR;
340
341
10.7k
            *position = start_pos - (read_pos - buf_pos + i);
342
10.7k
            return MZ_OK;
343
10.7k
        }
344
345
61.7k
        if (first) {
346
22.5k
            read -= find_size;
347
22.5k
            read_size -= find_size;
348
22.5k
            buf_pos = find_size;
349
22.5k
            first = 0;
350
22.5k
        }
351
352
61.7k
        if (read == 0)
353
32
            break;
354
355
61.7k
        memmove(buf + read_size, buf, find_size);
356
61.7k
        read_pos += read;
357
61.7k
    }
358
359
22.0k
    return MZ_EXIST_ERROR;
360
32.8k
}
361
362
28.2k
int32_t mz_stream_close(void *stream) {
363
28.2k
    mz_stream *strm = (mz_stream *)stream;
364
28.2k
    if (!strm || !strm->vtbl || !strm->vtbl->close)
365
0
        return MZ_PARAM_ERROR;
366
28.2k
    if (mz_stream_is_open(stream) != MZ_OK)
367
3.02k
        return MZ_STREAM_ERROR;
368
25.2k
    return strm->vtbl->close(strm);
369
28.2k
}
370
371
17.1k
int32_t mz_stream_error(void *stream) {
372
17.1k
    mz_stream *strm = (mz_stream *)stream;
373
17.1k
    if (!strm || !strm->vtbl || !strm->vtbl->error)
374
0
        return MZ_PARAM_ERROR;
375
17.1k
    return strm->vtbl->error(strm);
376
17.1k
}
377
378
48.5k
int32_t mz_stream_set_base(void *stream, void *base) {
379
48.5k
    mz_stream *strm = (mz_stream *)stream;
380
48.5k
    strm->base = (mz_stream *)base;
381
48.5k
    return MZ_OK;
382
48.5k
}
383
384
0
void *mz_stream_get_interface(void *stream) {
385
0
    mz_stream *strm = (mz_stream *)stream;
386
0
    if (!strm || !strm->vtbl)
387
0
        return NULL;
388
0
    return (void *)strm->vtbl;
389
0
}
390
391
203k
int32_t mz_stream_get_prop_int64(void *stream, int32_t prop, int64_t *value) {
392
203k
    mz_stream *strm = (mz_stream *)stream;
393
203k
    if (!strm || !strm->vtbl || !strm->vtbl->get_prop_int64)
394
131k
        return MZ_PARAM_ERROR;
395
72.5k
    return strm->vtbl->get_prop_int64(strm, prop, value);
396
203k
}
397
398
364k
int32_t mz_stream_set_prop_int64(void *stream, int32_t prop, int64_t value) {
399
364k
    mz_stream *strm = (mz_stream *)stream;
400
364k
    if (!strm || !strm->vtbl || !strm->vtbl->set_prop_int64)
401
315k
        return MZ_PARAM_ERROR;
402
48.3k
    return strm->vtbl->set_prop_int64(strm, prop, value);
403
364k
}
404
405
0
void *mz_stream_create(mz_stream_vtbl *vtbl) {
406
0
    if (!vtbl || !vtbl->create)
407
0
        return NULL;
408
0
    return vtbl->create();
409
0
}
410
411
52.6k
void mz_stream_delete(void **stream) {
412
52.6k
    mz_stream *strm = NULL;
413
52.6k
    if (!stream)
414
0
        return;
415
52.6k
    strm = (mz_stream *)*stream;
416
52.6k
    if (strm && strm->vtbl && strm->vtbl->destroy)
417
52.6k
        strm->vtbl->destroy(stream);
418
52.6k
    *stream = NULL;
419
52.6k
}
420
421
/***************************************************************************/
422
423
typedef struct mz_stream_raw_s {
424
    mz_stream stream;
425
    int64_t total_in;
426
    int64_t total_out;
427
    int64_t max_total_in;
428
} mz_stream_raw;
429
430
/***************************************************************************/
431
432
32.2k
int32_t mz_stream_raw_open(void *stream, const char *path, int32_t mode) {
433
32.2k
    MZ_UNUSED(stream);
434
32.2k
    MZ_UNUSED(path);
435
32.2k
    MZ_UNUSED(mode);
436
437
32.2k
    return MZ_OK;
438
32.2k
}
439
440
69.7k
int32_t mz_stream_raw_is_open(void *stream) {
441
69.7k
    mz_stream_raw *raw = (mz_stream_raw *)stream;
442
69.7k
    return mz_stream_is_open(raw->stream.base);
443
69.7k
}
444
445
30.0k
int32_t mz_stream_raw_read(void *stream, void *buf, int32_t size) {
446
30.0k
    mz_stream_raw *raw = (mz_stream_raw *)stream;
447
30.0k
    int32_t bytes_to_read = size;
448
30.0k
    int32_t read = 0;
449
450
30.0k
    if (raw->max_total_in > 0) {
451
23.0k
        if ((int64_t)bytes_to_read > (raw->max_total_in - raw->total_in))
452
4.22k
            bytes_to_read = (int32_t)(raw->max_total_in - raw->total_in);
453
23.0k
    }
454
455
30.0k
    read = mz_stream_read(raw->stream.base, buf, bytes_to_read);
456
457
30.0k
    if (read > 0) {
458
22.6k
        raw->total_in += read;
459
22.6k
        raw->total_out += read;
460
22.6k
    }
461
462
30.0k
    return read;
463
30.0k
}
464
465
0
int32_t mz_stream_raw_write(void *stream, const void *buf, int32_t size) {
466
0
    mz_stream_raw *raw = (mz_stream_raw *)stream;
467
0
    int32_t written = 0;
468
469
0
    written = mz_stream_write(raw->stream.base, buf, size);
470
471
0
    if (written > 0) {
472
0
        raw->total_out += written;
473
0
        raw->total_in += written;
474
0
    }
475
476
0
    return written;
477
0
}
478
479
0
int64_t mz_stream_raw_tell(void *stream) {
480
0
    mz_stream_raw *raw = (mz_stream_raw *)stream;
481
0
    return mz_stream_tell(raw->stream.base);
482
0
}
483
484
0
int32_t mz_stream_raw_seek(void *stream, int64_t offset, int32_t origin) {
485
0
    mz_stream_raw *raw = (mz_stream_raw *)stream;
486
0
    return mz_stream_seek(raw->stream.base, offset, origin);
487
0
}
488
489
24.1k
int32_t mz_stream_raw_close(void *stream) {
490
24.1k
    MZ_UNUSED(stream);
491
24.1k
    return MZ_OK;
492
24.1k
}
493
494
0
int32_t mz_stream_raw_error(void *stream) {
495
0
    mz_stream_raw *raw = (mz_stream_raw *)stream;
496
0
    return mz_stream_error(raw->stream.base);
497
0
}
498
499
40.3k
int32_t mz_stream_raw_get_prop_int64(void *stream, int32_t prop, int64_t *value) {
500
40.3k
    mz_stream_raw *raw = (mz_stream_raw *)stream;
501
40.3k
    switch (prop) {
502
24.1k
    case MZ_STREAM_PROP_TOTAL_IN:
503
24.1k
        *value = raw->total_in;
504
24.1k
        return MZ_OK;
505
0
    case MZ_STREAM_PROP_TOTAL_OUT:
506
0
        *value = raw->total_out;
507
0
        return MZ_OK;
508
40.3k
    }
509
16.2k
    return MZ_EXIST_ERROR;
510
40.3k
}
511
512
32.2k
int32_t mz_stream_raw_set_prop_int64(void *stream, int32_t prop, int64_t value) {
513
32.2k
    mz_stream_raw *raw = (mz_stream_raw *)stream;
514
32.2k
    switch (prop) {
515
32.2k
    case MZ_STREAM_PROP_TOTAL_IN_MAX:
516
32.2k
        raw->max_total_in = value;
517
32.2k
        return MZ_OK;
518
32.2k
    }
519
0
    return MZ_EXIST_ERROR;
520
32.2k
}
521
522
/***************************************************************************/
523
524
static mz_stream_vtbl mz_stream_raw_vtbl = {
525
    mz_stream_raw_open,   mz_stream_raw_is_open, mz_stream_raw_read,           mz_stream_raw_write,
526
    mz_stream_raw_tell,   mz_stream_raw_seek,    mz_stream_raw_close,          mz_stream_raw_error,
527
    mz_stream_raw_create, mz_stream_raw_delete,  mz_stream_raw_get_prop_int64, mz_stream_raw_set_prop_int64};
528
529
/***************************************************************************/
530
531
32.2k
void *mz_stream_raw_create(void) {
532
32.2k
    mz_stream_raw *raw = (mz_stream_raw *)calloc(1, sizeof(mz_stream_raw));
533
32.2k
    if (raw)
534
32.2k
        raw->stream.vtbl = &mz_stream_raw_vtbl;
535
32.2k
    return raw;
536
32.2k
}
537
538
32.2k
void mz_stream_raw_delete(void **stream) {
539
32.2k
    mz_stream_raw *raw = NULL;
540
32.2k
    if (!stream)
541
0
        return;
542
32.2k
    raw = (mz_stream_raw *)*stream;
543
32.2k
    free(raw);
544
    *stream = NULL;
545
32.2k
}