PclZip::privWriteCentralHeader() –

You appear to be a bot. Output may be restricted

Description

Usage

PclZip::privWriteCentralHeader( $p_nb_entries, $p_size, $p_offset, $p_comment );

Parameters

$p_nb_entries
( mixed ) required
$p_size
( mixed ) required
$p_offset
( mixed ) required
$p_comment
( mixed ) required

Returns

void

Source

File name: wordpress/wp-admin/includes/class-pclzip.php
Lines:

1 to 21 of 21
  function privWriteCentralHeader($p_nb_entries, $p_size, $p_offset, $p_comment)
  {
    $v_result=1;

    // ----- Packed data
    $v_binary_data = pack("VvvvvVVv", 0x06054b50, 0, 0, $p_nb_entries,
                        $p_nb_entries, $p_size,
              $p_offset, strlen($p_comment));

    // ----- Write the 22 bytes of the header in the zip file
    fputs($this->zip_fd, $v_binary_data, 22);

    // ----- Write the variable fields
    if (strlen($p_comment) != 0)
    {
      fputs($this->zip_fd, $p_comment, strlen($p_comment));
    }

    // ----- Return
    return $v_result;
  }
 

 View on GitHub View on Trac