Lines Matching refs:offset
134 static int php_stream_memory_seek(php_stream *stream, off_t offset, int whence, off_t *newoffs TSRM… in php_stream_memory_seek() argument
141 if (offset < 0) { in php_stream_memory_seek()
142 if (ms->fpos < (size_t)(-offset)) { in php_stream_memory_seek()
147 ms->fpos = ms->fpos + offset; in php_stream_memory_seek()
153 if (ms->fpos + (size_t)(offset) > ms->fsize) { in php_stream_memory_seek()
158 ms->fpos = ms->fpos + offset; in php_stream_memory_seek()
165 if (ms->fsize < (size_t)(offset)) { in php_stream_memory_seek()
170 ms->fpos = offset; in php_stream_memory_seek()
176 if (offset > 0) { in php_stream_memory_seek()
180 } else if (ms->fsize < (size_t)(-offset)) { in php_stream_memory_seek()
185 ms->fpos = ms->fsize + offset; in php_stream_memory_seek()
450 static int php_stream_temp_seek(php_stream *stream, off_t offset, int whence, off_t *newoffs TSRMLS… in php_stream_temp_seek() argument
461 ret = php_stream_seek(ts->innerstream, offset, whence); in php_stream_temp_seek()