Lines Matching refs:readbuf

323 	ret->readbuf          = NULL;  in _php_stream_alloc()
513 if (stream->readbuf) { in _php_stream_free()
514 pefree(stream->readbuf, stream->is_persistent); in _php_stream_free()
515 stream->readbuf = NULL; in _php_stream_free()
606 if (stream->readbuf && stream->readbuflen - stream->writepos < bucket->buflen) { in _php_stream_fill_read_buffer()
608 … memmove(stream->readbuf, stream->readbuf + stream->readpos, stream->writepos - stream->readpos); in _php_stream_fill_read_buffer()
616 stream->readbuf = perealloc(stream->readbuf, stream->readbuflen, in _php_stream_fill_read_buffer()
620 memcpy(stream->readbuf + stream->writepos, bucket->buf, bucket->buflen); in _php_stream_fill_read_buffer()
668 if (stream->readbuf && stream->readbuflen - stream->writepos < stream->chunk_size) { in _php_stream_fill_read_buffer()
670 … memmove(stream->readbuf, stream->readbuf + stream->readpos, stream->writepos - stream->readpos); in _php_stream_fill_read_buffer()
680 stream->readbuf = perealloc(stream->readbuf, stream->readbuflen, in _php_stream_fill_read_buffer()
684 justread = stream->ops->read(stream, (char*)stream->readbuf + stream->writepos, in _php_stream_fill_read_buffer()
723 memcpy(buf, stream->readbuf + stream->readpos, toread); in _php_stream_read()
760 memcpy(buf, stream->readbuf + stream->readpos, toread); in _php_stream_read()
886 readptr = (char*)stream->readbuf + stream->readpos; in php_stream_locate_eol()
958 readptr = (char*)stream->readbuf + stream->readpos; in _php_stream_get_line()
1053 return memchr(&stream->readbuf[stream->readpos + skiplen], in _php_stream_search_delim()
1056 return php_memnstr((char*)&stream->readbuf[stream->readpos + skiplen], in _php_stream_search_delim()
1058 (char*)&stream->readbuf[stream->readpos + seek_len]); in _php_stream_search_delim()
1118 tent_ret_len = found_delim - (char*)&stream->readbuf[stream->readpos]; in php_stream_get_record()