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

/PHP_TRUNK/ext/zip/lib/
H A Dzip_fread.c41 zip_fread(struct zip_file *zf, void *outbuf, zip_uint64_t toread) argument
51 if (toread > ZIP_INT64_MAX) {
56 if ((zf->eof) || (toread == 0))
59 if ((n=zip_source_read(zf->src, outbuf, toread)) < 0) {
/PHP_TRUNK/main/streams/
H A Dstreams.c702 size_t toread = 0, didread = 0; local
712 toread = stream->writepos - stream->readpos;
713 if (toread > size) {
714 toread = size;
717 memcpy(buf, stream->readbuf + stream->readpos, toread);
718 stream->readpos += toread;
719 size -= toread;
720 buf += toread;
721 didread += toread;
730 toread
961 size_t toread; local
[all...]
/PHP_TRUNK/ext/hash/
H A Dhash.c437 zend_long n, toread = 1024; local
439 if (length > 0 && toread > length) {
440 toread = length;
443 if ((n = php_stream_read(stream, buf, toread)) <= 0) {
/PHP_TRUNK/ext/session/
H A Dsession.c362 size_t toread = PS(entropy_length); local
364 if (php_win32_get_random_bytes(rbuf, MIN(toread, sizeof(rbuf))) == SUCCESS){
368 PHP_MD5Update(&md5_context, rbuf, toread);
371 PHP_SHA1Update(&sha1_context, rbuf, toread);
375 PS(hash_ops)->hash_update(hash_context, rbuf, toread);

Completed in 23 milliseconds