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

search for in the

xdiff_string_bdiff> <xdiff_file_rabdiff
[edit] Last updated: Fri, 24 May 2013

view this page in

xdiff_string_bdiff_size

(PECL xdiff >= 1.5.0)

xdiff_string_bdiff_sizeLee el tamaño de un archivo creado tras aplicar una diferencia binaria

Descripción

int xdiff_string_bdiff_size ( string $patch )

Devuelve el tamaño de un archivo resultante que será creado tras aplicar el patch binario a el archivo original.

Parámetros

patch

El parche binario creado por la función xdiff_string_bdiff() o xdiff_string_rabdiff().

Valores devueltos

Devuelve el tamaño del archivo que fue creado.

Ejemplos

Ejemplo #1 Ejemplo de xdiff_string_bdiff_size()

El siguiente código lee el tamaño de un archivo que fue creado tras aplicar una diferencia binaria.

<?php
$binary_patch 
file_get_contents('file.bdiff');
$length xdiff_string_bdiff_size($binary_patch);
echo 
"El archivo resultante tendrá $length bytes de longitud";
?>

Ver también



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

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