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

search for in the

xdiff_string_bdiff> <xdiff_file_rabdiff
[edit] Last updated: Fri, 25 May 2012

view this page in

xdiff_string_bdiff_size

(PECL xdiff >= 1.5.0)

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

説明

int xdiff_string_bdiff_size ( string $patch )

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

パラメータ

patch

xdiff_string_bdiff() 関数あるいは xdiff_string_rabdiff() 関数で作成したバイナリパッチ。

返り値

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

例1 xdiff_string_bdiff_size() の例

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

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

参考



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

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