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

/PHP_5_3/ext/hash/
H A Dhash.c414 long n, toread = 1024; local
416 if (length > 0 && toread > length) {
417 toread = length;
420 if ((n = php_stream_read(stream, buf, toread)) <= 0) {
/PHP_5_3/main/streams/
H A Dstreams.c639 size_t toread = 0, didread = 0; local
649 toread = stream->writepos - stream->readpos;
650 if (toread > size) {
651 toread = size;
654 memcpy(buf, stream->readbuf + stream->readpos, toread);
655 stream->readpos += toread;
656 size -= toread;
657 buf += toread;
658 didread += toread;
667 toread
894 size_t toread; local
[all...]
/PHP_5_3/ext/session/
H A Dsession.c409 size_t toread = PS(entropy_length); local
411 if (php_win32_get_random_bytes(rbuf, (size_t) toread) == SUCCESS){
415 PHP_MD5Update(&md5_context, rbuf, toread);
418 PHP_SHA1Update(&sha1_context, rbuf, toread);
422 PS(hash_ops)->hash_update(hash_context, rbuf, toread);

Completed in 11 milliseconds