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
Last updated: Fri, 14 Aug 2009

view this page in

xdiff_string_bdiff_size

(PECL xdiff >= 0.2.0)

xdiff_string_bdiff_sizeLit la taille d'un fichier créé en appliquant un diff binaire

Description

int xdiff_string_bdiff_size ( string $patch )

Retourne la taille d'un fichie résultat créé après l'application d'un patch binaure sur un fichier original.

Liste de paramètres

patch

Le patch binaire créé par la fonction xdiff_string_bdiff() ou la fonction xdiff_string_rabdiff().

Valeurs de retour

Retourne la taille du fichier créé.

Exemples

Exemple #1 Exemple avec xdiff_string_bdiff_size()

Le code suivant lit la taille d'un fichier créé après l'application d'un diff binaire.

<?php
$binary_patch 
file_get_contents('file.bdiff');
$length xdiff_string_bdiff_size($binary_patch);
echo 
"La taille du fichier résultant est de $length octets.";
?>

Voir aussi



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

xdiff_string_bdiff> <xdiff_file_rabdiff
Last updated: Fri, 14 Aug 2009
 
 
show source | credits | sitemap | contact | advertising | mirror sites