Lines Matching refs:fsize
38 size_t fsize; member
53 ms->fpos = ms->fsize; in php_stream_memory_write()
55 if (ms->fpos + count > ms->fsize) { in php_stream_memory_write()
63 ms->fsize = ms->fpos + count; in php_stream_memory_write()
83 if (ms->fpos == ms->fsize) { in php_stream_memory_read()
87 if (ms->fpos + count >= ms->fsize) { in php_stream_memory_read()
88 count = ms->fsize - ms->fpos; in php_stream_memory_read()
146 if (ms->fpos + (size_t)(offset) > ms->fsize) { in php_stream_memory_seek()
147 ms->fpos = ms->fsize; in php_stream_memory_seek()
158 if (ms->fsize < (size_t)(offset)) { in php_stream_memory_seek()
159 ms->fpos = ms->fsize; in php_stream_memory_seek()
170 ms->fpos = ms->fsize; in php_stream_memory_seek()
173 } else if (ms->fsize < (size_t)(-offset)) { in php_stream_memory_seek()
178 ms->fpos = ms->fsize + offset; in php_stream_memory_seek()
208 ssb->sb.st_size = ms->fsize; in php_stream_memory_stat()
245 if (newsize <= ms->fsize) { in php_stream_memory_set_option()
251 memset(ms->data+ms->fsize, 0, newsize - ms->fsize); in php_stream_memory_set_option()
252 ms->fsize = newsize; in php_stream_memory_set_option()
254 ms->fsize = newsize; in php_stream_memory_set_option()
306 self->fsize = 0; in _php_stream_memory_create()
329 ms->fsize = length; in _php_stream_memory_open()
350 *length = ms->fsize; in _php_stream_memory_get_buffer()