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

/PHP_TRUNK/main/streams/
H A Dstreams.c685 size_t toread = 0, didread = 0; local
695 toread = stream->writepos - stream->readpos;
696 if (toread > size) {
697 toread = size;
700 memcpy(buf, stream->readbuf + stream->readpos, toread);
701 stream->readpos += toread;
702 size -= toread;
703 buf += toread;
704 didread += toread;
713 toread
944 size_t toread; local
[all...]
/PHP_TRUNK/ext/hash/
H A Dhash.c442 zend_long n, toread = 1024; local
444 if (length > 0 && toread > length) {
445 toread = length;
448 if ((n = php_stream_read(stream, buf, toread)) <= 0) {
/PHP_TRUNK/ext/zip/lib/
H A Dzip_fread.c39 zip_fread(zip_file_t *zf, void *outbuf, zip_uint64_t toread) argument
49 if (toread > ZIP_INT64_MAX) {
54 if ((zf->eof) || (toread == 0))
57 if ((n=zip_source_read(zf->src, outbuf, 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 29 milliseconds