(no version information, might be only in CVS)
php_stream_copy_to_mem -- Copie des données depuis un flux dans un bufferphp_stream_copy_to_mem() alloue un buffer de taille maxlen+1 en utilisant la fonction pemalloc() (en passant persistent). Puis, elle lit maxlen octets depuis le flux from src and stores them in the allocated buffer.
The allocated buffer is returned in buf, and the number of bytes successfully read. You, the caller, are responsible for freeing the buffer by passing it and persistent to pefree().
If you want to copy all remaining data from the src stream, pass the constant PHP_STREAM_COPY_ALL as the value of maxlen.
Note : Cette fonction va essayer d'effectuer la copie de la manière la plus efficace, en utilise dans buffer mémoire lorsque c'est possible.
Précédent | Sommaire | Suivant |
php_stream_copy_to_stream | Niveau supérieur | php_stream_make_seekable |