php_stream_copy_to_stream <<< |
php_stream_copy_to_mem | php_stream_make_seekable >>> |
9.1.4 Référence des API communes de flôts 9.1 API de flôts les auteurs d'extensions 9 PHP API: Interface pour les extensions Manuel PHP . php_stream_stat_path . php_stream_stat . php_stream_open_wrapper . php_stream_read . php_stream_write . php_stream_eof . php_stream_getc . php_stream_gets . php_stream_close . php_stream_flush . php_stream_seek . php_stream_tell . php_stream_copy_to_stream ->php_stream_copy_to_mem . php_stream_make_seekable . php_stream_cast . php_stream_can_cast . php_stream_is_persistent . php_stream_is . php_stream_passthru . php_register_url_stream_wrapper . php_unregister_url_stream_wrapper . php_stream_open_wrapper_ex . php_stream_open_wrapper_as_file . php_stream_filter_register_factory . php_stream_filter_unregister_factory |
9.1.4.14 php_stream_copy_to_mem()Copie des données depuis un flôt dans un buffer[ Exemples avec hp_stream_copy_to_mem ] CVS uniquement size_t php_stream_copy_to_mem ( php_stream * src , char ** buf , size_t maxlen , int persistent )php_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 flôt 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 .
|
<< | php_stream_copy_to_mem | >> |
php_stream_copy_to_stream | Référence des API communes de flôts | php_stream_make_seekable |