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

/PHP_5_5/ext/hash/
H A Dhash.c435 long n, toread = 1024; local
437 if (length > 0 && toread > length) {
438 toread = length;
441 if ((n = php_stream_read(stream, buf, toread)) <= 0) {
/PHP_5_5/ext/session/
H A Dsession.c348 size_t toread = PS(entropy_length); local
350 if (php_win32_get_random_bytes(rbuf, MIN(toread, sizeof(rbuf))) == SUCCESS){
354 PHP_MD5Update(&md5_context, rbuf, toread);
357 PHP_SHA1Update(&sha1_context, rbuf, toread);
361 PS(hash_ops)->hash_update(hash_context, rbuf, toread);
/PHP_5_5/main/streams/
H A Dstreams.c705 size_t toread = 0, didread = 0; local
715 toread = stream->writepos - stream->readpos;
716 if (toread > size) {
717 toread = size;
720 memcpy(buf, stream->readbuf + stream->readpos, toread);
721 stream->readpos += toread;
722 size -= toread;
723 buf += toread;
724 didread += toread;
733 toread
964 size_t toread; local
[all...]

Completed in 10 milliseconds