update lock clucknut
All checks were successful
All checks were successful
This commit is contained in:
@@ -5,10 +5,7 @@
|
||||
use Safe\Exceptions\Bzip2Exception;
|
||||
|
||||
/**
|
||||
* Closes the given bzip2 file pointer.
|
||||
*
|
||||
* @param resource $bz The file pointer. It must be valid and must point to a file
|
||||
* successfully opened by bzopen.
|
||||
* @param resource $bz
|
||||
* @throws Bzip2Exception
|
||||
*
|
||||
*/
|
||||
@@ -23,12 +20,7 @@ function bzclose($bz): void
|
||||
|
||||
|
||||
/**
|
||||
* This function is supposed to force a write of all buffered bzip2 data for the file pointer
|
||||
* bz,
|
||||
* but is implemented as null function in libbz2, and as such does nothing.
|
||||
*
|
||||
* @param resource $bz The file pointer. It must be valid and must point to a file
|
||||
* successfully opened by bzopen.
|
||||
* @param resource $bz
|
||||
* @throws Bzip2Exception
|
||||
*
|
||||
*/
|
||||
@@ -43,14 +35,9 @@ function bzflush($bz): void
|
||||
|
||||
|
||||
/**
|
||||
* bzopen opens a bzip2 (.bz2) file for reading or
|
||||
* writing.
|
||||
*
|
||||
* @param resource|string $file The name of the file to open, or an existing stream resource.
|
||||
* @param string $mode The modes 'r' (read), and 'w' (write) are supported.
|
||||
* Everything else will cause bzopen to return FALSE.
|
||||
* @return resource If the open fails, bzopen returns FALSE, otherwise
|
||||
* it returns a pointer to the newly opened file.
|
||||
* @param resource|string $file
|
||||
* @param string $mode
|
||||
* @return resource
|
||||
* @throws Bzip2Exception
|
||||
*
|
||||
*/
|
||||
@@ -66,17 +53,9 @@ function bzopen($file, string $mode)
|
||||
|
||||
|
||||
/**
|
||||
* bzread reads from the given bzip2 file pointer.
|
||||
*
|
||||
* Reading stops when length (uncompressed) bytes have
|
||||
* been read or EOF is reached, whichever comes first.
|
||||
*
|
||||
* @param resource $bz The file pointer. It must be valid and must point to a file
|
||||
* successfully opened by bzopen.
|
||||
* @param int $length If not specified, bzread will read 1024
|
||||
* (uncompressed) bytes at a time. A maximum of 8192
|
||||
* uncompressed bytes will be read at a time.
|
||||
* @return string Returns the uncompressed data.
|
||||
* @param resource $bz
|
||||
* @param int $length
|
||||
* @return string
|
||||
* @throws Bzip2Exception
|
||||
*
|
||||
*/
|
||||
@@ -92,16 +71,10 @@ function bzread($bz, int $length = 1024): string
|
||||
|
||||
|
||||
/**
|
||||
* bzwrite writes a string into the given bzip2 file
|
||||
* stream.
|
||||
*
|
||||
* @param resource $bz The file pointer. It must be valid and must point to a file
|
||||
* successfully opened by bzopen.
|
||||
* @param string $data The written data.
|
||||
* @param int|null $length If supplied, writing will stop after length
|
||||
* (uncompressed) bytes have been written or the end of
|
||||
* data is reached, whichever comes first.
|
||||
* @return int Returns the number of bytes written.
|
||||
* @param resource $bz
|
||||
* @param string $data
|
||||
* @param int|null $length
|
||||
* @return int
|
||||
* @throws Bzip2Exception
|
||||
*
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user