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

/PHP_TRUNK/ext/zip/lib/
H A Dzip_fread.c43 zip_fread(struct zip_file *zf, void *outbuf, zip_uint64_t toread)
53 if (toread > ZIP_INT64_MAX) {
58 if ((zf->eof) || (toread == 0))
61 if ((n=zip_source_read(zf->src, outbuf, toread)) < 0) {
41 zip_fread(struct zip_file *zf, void *outbuf, zip_uint64_t toread) argument
/PHP_TRUNK/ext/hash/
H A Dhash.c432 zend_long n, toread = 1024; local
434 if (length > 0 && toread > length) {
435 toread = length;
438 if ((n = php_stream_read(stream, buf, toread)) <= 0) {
/PHP_TRUNK/main/streams/
H A Dstreams.c709 size_t toread = 0, didread = 0; local
719 toread = stream->writepos - stream->readpos;
720 if (toread > size) {
721 toread = size;
724 memcpy(buf, stream->readbuf + stream->readpos, toread);
725 stream->readpos += toread;
726 size -= toread;
727 buf += toread;
728 didread += toread;
737 toread
968 size_t toread; local
[all...]
/PHP_TRUNK/ext/session/
H A Dsession.c345 size_t toread = PS(entropy_length); local
347 if (php_win32_get_random_bytes(rbuf, MIN(toread, sizeof(rbuf))) == SUCCESS){
351 PHP_MD5Update(&md5_context, rbuf, toread);
354 PHP_SHA1Update(&sha1_context, rbuf, toread);
358 PS(hash_ops)->hash_update(hash_context, rbuf, toread);

Completed in 11 milliseconds