Skip to content

Commit 4ea67bf

Browse files
committed
docs: remove length argument for brotli_uncompress()
1 parent 09d2d09 commit 4ea67bf

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

README.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ The compressed string or FALSE if an error occurred.
138138
#### Description
139139

140140
``` php
141-
brotli_uncompress ( string $data, int $length = 0, string|null $dict = null ): string|false
141+
brotli_uncompress ( string $data, string|null $dict = null ): string|false
142142
```
143143

144144
This function uncompress a compressed string.
@@ -149,10 +149,6 @@ This function uncompress a compressed string.
149149

150150
The data compressed by brotli\_compress().
151151

152-
* _length_
153-
154-
The maximum length of data to decode.
155-
156152
* _dict_
157153

158154
The dictionary data.
@@ -289,7 +285,7 @@ Returns a chunk of uncompressed data, or FALSE on failure.
289285
Namespace Brotli;
290286

291287
function compress( string $data, int $level = \BROTLI_COMPRESS_LEVEL_DEFAULT, int $mode = \BROTLI_GENERIC, string|null $dict = null ): string|false {}
292-
function uncompress( string $data, int $length = 0, string|null $dict = null ): string|false {}
288+
function uncompress( string $data, string|null $dict = null ): string|false {}
293289
function compress_init( int $level = \BROTLI_COMPRESS_LEVEL_DEFAULT, int $mode = \BROTLI_GENERIC, string|null $dict = null ): \Brotli\Compress\Context|false {}
294290
function compress_add( \Brotli\Compress\Context $context, string $data, $mode = \BROTLI_FLUSH ): string|false {}
295291
function uncompress_init(string|null $dict = null): \Brotli\UnCompress\Context|false {}

0 commit comments

Comments
 (0)