-
Notifications
You must be signed in to change notification settings - Fork 28
Expand file tree
/
Copy pathbrotli.stub.php
More file actions
148 lines (114 loc) · 3.56 KB
/
brotli.stub.php
File metadata and controls
148 lines (114 loc) · 3.56 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
<?php
namespace {
/**
* @var int
* @cvalue BROTLI_MODE_GENERIC
*/
const BROTLI_GENERIC = UNKNOWN;
/**
* @var int
* @cvalue BROTLI_MODE_TEXT
*/
const BROTLI_TEXT = UNKNOWN;
/**
* @var int
* @cvalue BROTLI_MODE_FONT
*/
const BROTLI_FONT = UNKNOWN;
/**
* @var int
* @cvalue BROTLI_MIN_QUALITY
*/
const BROTLI_COMPRESS_LEVEL_MIN = UNKNOWN;
/**
* @var int
* @cvalue BROTLI_MAX_QUALITY
*/
const BROTLI_COMPRESS_LEVEL_MAX = UNKNOWN;
/**
* @var int
* @cvalue BROTLI_DEFAULT_QUALITY
*/
const BROTLI_COMPRESS_LEVEL_DEFAULT = UNKNOWN;
/**
* @var int
* @cvalue BROTLI_OPERATION_PROCESS
*/
const BROTLI_PROCESS = UNKNOWN;
/**
* @var int
* @cvalue BROTLI_OPERATION_FLUSH
*/
const BROTLI_FLUSH = UNKNOWN;
/**
* @var int
* @cvalue BROTLI_OPERATION_FINISH
*/
const BROTLI_FINISH = UNKNOWN;
/**
* @var bool
* @cvalue USE_BROTLI_DICTIONARY
* @note enabled when brotli library version is 1.1.0 or higher
*/
const BROTLI_DICTIONARY_SUPPORT = UNKNOWN;
/**
* @var string
* @cvalue BROTLI_VERSION_TEXT
*/
const BROTLI_VERSION_TEXT = UNKNOWN;
/**
* @var int
* @cvalue BROTLI_VERSION_NUMBER
*/
const BROTLI_VERSION_NUMBER = UNKNOWN;
/**
* @note dict parameter can be used when BROTLI_DICTIONARY_SUPPORT is enabled
*/
function brotli_compress(string $data, int $level = BROTLI_COMPRESS_LEVEL_DEFAULT, int $mode = BROTLI_GENERIC, ?string $dict = null): string|false {}
/**
* @note dict parameter can be used when BROTLI_DICTIONARY_SUPPORT is enabled
*/
function brotli_uncompress(string $data, ?string $dict = null): string|false {}
/**
* @note dict parameter can be used when BROTLI_DICTIONARY_SUPPORT is enabled
*/
function brotli_compress_init(int $level = BROTLI_COMPRESS_LEVEL_DEFAULT, int $mode = BROTLI_GENERIC, ?string $dict = null): Brotli\Compress\Context|false {}
function brotli_compress_add(Brotli\Compress\Context $context, string $data, int $mode = BROTLI_FLUSH): string|false {}
/**
* @note dict parameter can be used when BROTLI_DICTIONARY_SUPPORT is enabled
*/
function brotli_uncompress_init(?string $dict = null): Brotli\UnCompress\Context|false {}
function brotli_uncompress_add(Brotli\UnCompress\Context $context, string $data, int $mode = BROTLI_FLUSH): string|false {}
}
namespace Brotli {
/**
* @note dict parameter can be used when BROTLI_DICTIONARY_SUPPORT is enabled
*/
function compress(string $data, int $level = \BROTLI_COMPRESS_LEVEL_DEFAULT, int $mode = \BROTLI_GENERIC, ?string $dict = null): string|false {}
/**
* @note dict parameter can be used when BROTLI_DICTIONARY_SUPPORT is enabled
*/
function uncompress(string $data, ?string $dict = null): string|false {}
/**
* @note dict parameter can be used when BROTLI_DICTIONARY_SUPPORT is enabled
*/
function compress_init(int $level = \BROTLI_COMPRESS_LEVEL_DEFAULT, int $mode = \BROTLI_GENERIC, ?string $dict = null): Compress\Context|false {}
function compress_add(Compress\Context $context, string $data, int $mode = \BROTLI_FLUSH): string|false {}
/**
* @note dict parameter can be used when BROTLI_DICTIONARY_SUPPORT is enabled
*/
function uncompress_init(?string $dict = null): UnCompress\Context|false {}
function uncompress_add(UnCompress\Context $context, string $data, int $mode = \BROTLI_FLUSH): string|false {}
}
namespace Brotli\Compress {
final class Context
{
}
}
namespace Brotli\UnCompress {
final class Context
{
}
}
#if defined(PHP_WIN32) || defined(HAVE_DNS_SEARCH_FUNC)
#endif