function Archive_Tar::_readBlock
7.x system.tar.inc | Archive_Tar::_readBlock() |
4 calls to Archive_Tar::_readBlock()
- Archive_Tar::_extractInString in drupal-7.x/
modules/ system/ system.tar.inc - This method extract from the archive one file identified by $p_filename. The return value is a string with the file content, or NULL on error.
- Archive_Tar::_extractList in drupal-7.x/
modules/ system/ system.tar.inc - Archive_Tar::_jumpBlock in drupal-7.x/
modules/ system/ system.tar.inc - Archive_Tar::_readLongHeader in drupal-7.x/
modules/ system/ system.tar.inc
File
- drupal-7.x/
modules/ system/ system.tar.inc, line 840
Class
- Archive_Tar
- Creates a (compressed) Tar archive *
Code
function _readBlock()
{
$v_block = null;
if (is_resource($this->_file)) {
if ($this->_compress_type == 'gz') {
$v_block = @gzread($this->_file, 512);
}
else if ($this->_compress_type == 'bz2') {
$v_block = @bzread($this->_file, 512);
}
else if ($this->_compress_type == 'none') {
$v_block = @fread($this->_file, 512);
}
else {
$this->_error('Unknown or missing compression type ('
. $this->_compress_type . ')');
}
}
return $v_block;
}