PluginProbe
Defender Security – Malware Scanner, Login Security & Firewall / 5.4.0
Defender Security – Malware Scanner, Login Security & Firewall v5.4.0
6.3.0 6.2.3 6.2.4 6.2.0 6.2.1 6.2.2 6.1.0 5.3.1 5.4.0 5.4.1 5.5.0 5.5.1 5.6.0 5.6.1 5.6.2 5.7.0 5.7.1 5.7.2 5.8.0 5.8.1 5.9.0 6.0.0 6.0.1 3.0.1 3.1.0 All 141 releases
defender-security / vendor / thecodingmachine / safe / generated / lzf.php

lzf.php in Defender Security – Malware Scanner, Login Security & Firewall 5.4.0, at vendor/thecodingmachine/safe/generated/lzf.php

45 lines 911 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace Safe;
4
5 use Safe\Exceptions\LzfException;
6
7 /**
8 * lzf_compress compresses the given
9 * data string using LZF encoding.
10 *
11 * @param string $data The string to compress.
12 * @return string Returns the compressed data.
13 * @throws LzfException
14 *
15 */
16 function lzf_compress(string $data): string
17 {
18 error_clear_last();
19 $result = \lzf_compress($data);
20 if ($result === false) {
21 throw LzfException::createFromPhpError();
22 }
23 return $result;
24 }
25
26
27 /**
28 * lzf_compress decompresses the given
29 * data string containing lzf encoded data.
30 *
31 * @param string $data The compressed string.
32 * @return string Returns the decompressed data.
33 * @throws LzfException
34 *
35 */
36 function lzf_decompress(string $data): string
37 {
38 error_clear_last();
39 $result = \lzf_decompress($data);
40 if ($result === false) {
41 throw LzfException::createFromPhpError();
42 }
43 return $result;
44 }
45