downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

xdiff_file_bdiff> <xdiff 関数
[edit] Last updated: Fri, 25 May 2012

view this page in

xdiff_file_bdiff_size

(PECL xdiff >= 1.5.0)

xdiff_file_bdiff_sizeバイナリ diff を適用して作成するファイルのサイズを読み込む

説明

int xdiff_file_bdiff_size ( string $file )

ファイル file のバイナリパッチを 元ファイルに適用して作成するファイルのサイズを返します。

パラメータ

file

xdiff_string_bdiff() 関数あるいは xdiff_string_rabdiff() 関数で作成したバイナリパッチファイルへのパス。

返り値

作成されるファイルのサイズを返します。

例1 xdiff_file_bdiff_size() の例

次のコードは、バイナリ diff を適用してできあがるファイルのサイズを読み込みます。

<?php
$length 
xdiff_string_bdiff_size('file.bdiff');
echo 
"Resulting file will be $length bytes long";
?>

参考

  • xdiff_file_bdiff() - 2 つのファイルのバイナリ diff を作成する
  • xdiff_file_rabdiff() - 2 つのファイルのバイナリ diff を、Rabin の polynomial fingerprinting アルゴリズムで作成する
  • xdiff_file_bpatch() - ファイルにバイナリ diff 形式のパッチを適用する



add a note add a note User Contributed Notes xdiff_file_bdiff_size
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites