|
(no version information, might be only in CVS)
php_stream_copy_to_mem -- Copy data from stream and into an allocated bufferphp_stream_copy_to_mem() allocates a buffer maxlen+1 bytes in length using pemalloc() (passing persistent). It then reads maxlen bytes 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.
Anmerkung: This function will attempt to copy the data in the most efficient manner, using memory mapped files when possible.
Zurück | Zum Anfang | Weiter |
php_stream_copy_to_stream | Nach oben | php_stream_make_seekable |
Hosting by: Hurra Communications GmbH
Generated: 2007-01-26 17:57:25