• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/classes/general/zip.php
  • Класс: CZip
  • Вызов: CZip::_writeCentralHeader
private function _writeCentralHeader($entriesNumber, $blockSize, $offset, $comment)
{
	$res = 1;

	//packed data
	$binary_data = pack("VvvvvVVv", 0x06054b50, 0, 0, $entriesNumber, $entriesNumber, $blockSize, $offset, mb_strlen($comment));

	//22 bytes of the header in the zip file
	fputs($this->zipfile, $binary_data, 22);

	//variable fields
	if ($comment <> '')
	{
		fputs($this->zipfile, $comment, mb_strlen($comment));
	}

	return $res;
}