Lines Matching refs:fsize
42 size_t fsize; member
57 if (ms->fpos + count > ms->fsize) { in php_stream_memory_write()
66 count = ms->fsize - ms->fpos + 1; in php_stream_memory_write()
69 ms->fsize = ms->fpos + count; in php_stream_memory_write()
90 if (ms->fpos == ms->fsize) { in php_stream_memory_read()
94 if (ms->fpos + count >= ms->fsize) { in php_stream_memory_read()
95 count = ms->fsize - ms->fpos; in php_stream_memory_read()
153 if (ms->fpos + (size_t)(offset) > ms->fsize) { in php_stream_memory_seek()
154 ms->fpos = ms->fsize; in php_stream_memory_seek()
165 if (ms->fsize < (size_t)(offset)) { in php_stream_memory_seek()
166 ms->fpos = ms->fsize; in php_stream_memory_seek()
177 ms->fpos = ms->fsize; 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()
215 ssb->sb.st_size = ms->fsize; in php_stream_memory_stat()
263 if (newsize <= ms->fsize) { in php_stream_memory_set_option()
269 memset(ms->data+ms->fsize, 0, newsize - ms->fsize); in php_stream_memory_set_option()
270 ms->fsize = newsize; in php_stream_memory_set_option()
272 ms->fsize = newsize; in php_stream_memory_set_option()
301 self->fsize = 0; in _php_stream_memory_create()
324 ms->fsize = length; in _php_stream_memory_open()
345 *length = ms->fsize; in _php_stream_memory_get_buffer()