Home
last modified time | relevance | path

Searched refs:toread (Results 1 – 4 of 4) sorted by relevance

/PHP-5.5/ext/zip/lib/
H A Dzip_fread.c41 zip_fread(struct zip_file *zf, void *outbuf, zip_uint64_t toread) in zip_fread() argument
51 if (toread > ZIP_INT64_MAX) { in zip_fread()
56 if ((zf->eof) || (toread == 0)) in zip_fread()
59 if ((n=zip_source_read(zf->src, outbuf, toread)) < 0) { in zip_fread()
/PHP-5.5/main/streams/
H A Dstreams.c717 toread = size; in _php_stream_read()
722 size -= toread; in _php_stream_read()
723 buf += toread; in _php_stream_read()
724 didread += toread; in _php_stream_read()
743 toread = size; in _php_stream_read()
746 if (toread > 0) { in _php_stream_read()
751 if (toread > 0) { in _php_stream_read()
752 didread += toread; in _php_stream_read()
753 buf += toread; in _php_stream_read()
754 size -= toread; in _php_stream_read()
[all …]
/PHP-5.5/ext/hash/
H A Dhash.c440 long n, toread = 1024; in PHP_FUNCTION() local
442 if (length > 0 && toread > length) { in PHP_FUNCTION()
443 toread = length; in PHP_FUNCTION()
446 if ((n = php_stream_read(stream, buf, toread)) <= 0) { in PHP_FUNCTION()
/PHP-5.5/ext/session/
H A Dsession.c351 size_t toread = PS(entropy_length); in php_session_create_id() local
353 if (php_win32_get_random_bytes(rbuf, MIN(toread, sizeof(rbuf))) == SUCCESS){ in php_session_create_id()
357 PHP_MD5Update(&md5_context, rbuf, toread); in php_session_create_id()
360 PHP_SHA1Update(&sha1_context, rbuf, toread); in php_session_create_id()
364 PS(hash_ops)->hash_update(hash_context, rbuf, toread); in php_session_create_id()

Completed in 24 milliseconds