-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathzstd.stub.php
More file actions
89 lines (58 loc) · 2.23 KB
/
zstd.stub.php
File metadata and controls
89 lines (58 loc) · 2.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<?php
namespace {
/**
* @var int
*/
const ZSTD_COMPRESS_LEVEL_MIN = 1;
/**
* @var int
*/
const ZSTD_COMPRESS_LEVEL_MAX = UNKNOWN;
/**
* @var int
* @cvalue ZSTD_CLEVEL_DEFAULT
*/
const ZSTD_COMPRESS_LEVEL_DEFAULT = UNKNOWN;
/**
* @var int
* @cvalue ZSTD_VERSION_NUMBER
*/
const ZSTD_VERSION_NUMBER = UNKNOWN;
/**
* @var string
* @cvalue ZSTD_VERSION_TEXT
*/
const ZSTD_VERSION_TEXT = UNKNOWN;
function zstd_compress(string $data, int $level = ZSTD_COMPRESS_LEVEL_DEFAULT, ?string $dict = null): string|false {}
function zstd_uncompress(string $data, ?string $dict = null): string|false {}
/** @deprecated */
function zstd_compress_dict(string $data, string $dict, int $level = ZSTD_COMPRESS_LEVEL_DEFAULT): string|false {}
/** @deprecated */
function zstd_uncompress_dict(string $data, string $dict): string|false {}
function zstd_compress_init(int $level = ZSTD_COMPRESS_LEVEL_DEFAULT, ?string $dict = null): Zstd\Compress\Context|false {}
function zstd_compress_add(Zstd\Compress\Context $context, string $data, bool $end = false): string|false {}
function zstd_uncompress_init(?string $dict = null): Zstd\UnCompress\Context|false {}
function zstd_uncompress_add(Zstd\UnCompress\Context $context, string $data): string|false {}
}
namespace Zstd {
function compress(string $data, int $level = ZSTD_COMPRESS_LEVEL_DEFAULT, ?string $dict = null): string|false {}
function uncompress(string $data, ?string $dict = null): string|false {}
/** @deprecated */
function compress_dict(string $data, string $dict, int $level = ZSTD_COMPRESS_LEVEL_DEFAULT): string|false {}
/** @deprecated */
function uncompress_dict(string $data, string $dict): string|false {}
function compress_init(int $level = ZSTD_COMPRESS_LEVEL_DEFAULT, ?string $dict = null): Compress\Context|false {}
function compress_add(Compress\Context $context, string $data, bool $end = false): string|false {}
function uncompress_init(?string $dict = null): UnCompress\Context|false {}
function uncompress_add(UnCompress\Context $context, string $data): string|false {}
}
namespace Zstd\Compress {
final class Context
{
}
}
namespace Zstd\UnCompress {
final class Context
{
}
}