<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.xdiff.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'zh',
  ),
  'this' => 
  array (
    0 => 'function.xdiff-file-bdiff-size.php',
    1 => 'xdiff_file_bdiff_size',
    2 => 'Read a size of file created by applying a binary diff',
  ),
  'up' => 
  array (
    0 => 'ref.xdiff.php',
    1 => 'xdiff 函数',
  ),
  'prev' => 
  array (
    0 => 'function.xdiff-file-bdiff.php',
    1 => 'xdiff_file_bdiff',
  ),
  'next' => 
  array (
    0 => 'function.xdiff-file-bpatch.php',
    1 => 'xdiff_file_bpatch',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/xdiff/functions/xdiff-file-bdiff-size.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.xdiff-file-bdiff-size" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">xdiff_file_bdiff_size</h1>
  <p class="verinfo">(PECL xdiff &gt;= 1.5.0)</p><p class="refpurpose"><span class="refname">xdiff_file_bdiff_size</span> &mdash; <span class="dc-title">Read a size of file created by applying a binary diff</span></p>

 </div>
 
 <div class="refsect1 description" id="refsect1-function.xdiff-file-bdiff-size-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>xdiff_file_bdiff_size</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$file</code></span>): <span class="type"><a href="language.types.integer.php" class="type int">int</a></span></div>

  <p class="para rdfs-comment">
   Returns a size of a result file that would be created after applying binary patch from file
   <code class="parameter">file</code> to the original file.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.xdiff-file-bdiff-size-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">file</code></dt>
     <dd>
      <p class="para">
       The path to the binary patch created by <span class="function"><a href="function.xdiff-string-bdiff.php" class="function">xdiff_string_bdiff()</a></span> or 
       <span class="function"><a href="function.xdiff-string-rabdiff.php" class="function">xdiff_string_rabdiff()</a></span> function.
      </p>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.xdiff-file-bdiff-size-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   Returns the size of file that would be created.
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-function.xdiff-file-bdiff-size-examples">
  <h3 class="title">示例</h3>
  <p class="para">
   <div class="example" id="example-1">
    <p><strong>示例 #1 <span class="function"><strong>xdiff_file_bdiff_size()</strong></span> example</strong></p>
    <div class="example-contents"><p>
     The following code applies reads a size of file that would be created
     after applying a binary diff.
    </p></div>
    <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />$length </span><span style="color: #007700">= </span><span style="color: #0000BB">xdiff_string_bdiff_size</span><span style="color: #007700">(</span><span style="color: #DD0000">'file.bdiff'</span><span style="color: #007700">);<br />echo </span><span style="color: #DD0000">"Resulting file will be </span><span style="color: #0000BB">$length</span><span style="color: #DD0000"> bytes long"</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
    </div>

   </div>
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.xdiff-file-bdiff-size-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.xdiff-file-bdiff.php" class="function" rel="rdfs-seeAlso">xdiff_file_bdiff()</a> - Make binary diff of two files</span></li>
    <li><span class="function"><a href="function.xdiff-file-rabdiff.php" class="function" rel="rdfs-seeAlso">xdiff_file_rabdiff()</a> - Make binary diff of two files using the Rabin's polynomial fingerprinting algorithm</span></li>
    <li><span class="function"><a href="function.xdiff-file-bpatch.php" class="function" rel="rdfs-seeAlso">xdiff_file_bpatch()</a> - Patch a file with a binary diff</span></li>
   </ul>
  </p>
 </div>

</div><?php manual_footer($setup); ?>