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

/PHP_5_4/ext/hash/
H A Dhash.c422 long n, toread = 1024; local
424 if (length > 0 && toread > length) {
425 toread = length;
428 if ((n = php_stream_read(stream, buf, toread)) <= 0) {
/PHP_5_4/ext/session/
H A Dsession.c343 size_t toread = PS(entropy_length); local
345 if (php_win32_get_random_bytes(rbuf, MIN(toread, sizeof(rbuf))) == SUCCESS){
349 PHP_MD5Update(&md5_context, rbuf, toread);
352 PHP_SHA1Update(&sha1_context, rbuf, toread);
356 PS(hash_ops)->hash_update(hash_context, rbuf, toread);
/PHP_5_4/main/streams/
H A Dstreams.c710 size_t toread = 0, didread = 0; local
720 toread = stream->writepos - stream->readpos;
721 if (toread > size) {
722 toread = size;
725 memcpy(buf, stream->readbuf + stream->readpos, toread);
726 stream->readpos += toread;
727 size -= toread;
728 buf += toread;
729 didread += toread;
738 toread
969 size_t toread; local
[all...]

Completed in 21 milliseconds