Lines Matching refs:spoolbuf
87 static int php_iptc_put1(FILE *fp, int spool, unsigned char c, unsigned char **spoolbuf) in php_iptc_put1() argument
92 if (spoolbuf) *(*spoolbuf)++ = c; in php_iptc_put1()
100 static int php_iptc_get1(FILE *fp, int spool, unsigned char **spoolbuf) in php_iptc_get1() argument
114 if (spoolbuf) *(*spoolbuf)++ = c; in php_iptc_get1()
122 static int php_iptc_read_remaining(FILE *fp, int spool, unsigned char **spoolbuf) in php_iptc_read_remaining() argument
124 while (php_iptc_get1(fp, spool, spoolbuf) != EOF) continue; in php_iptc_read_remaining()
132 static int php_iptc_skip_variable(FILE *fp, int spool, unsigned char **spoolbuf) in php_iptc_skip_variable() argument
137 if ((c1 = php_iptc_get1(fp, spool, spoolbuf)) == EOF) return M_EOI; in php_iptc_skip_variable()
139 if ((c2 = php_iptc_get1(fp, spool, spoolbuf)) == EOF) return M_EOI; in php_iptc_skip_variable()
146 if (php_iptc_get1(fp, spool, spoolbuf) == EOF) return M_EOI; in php_iptc_skip_variable()
154 static int php_iptc_next_marker(FILE *fp, int spool, unsigned char **spoolbuf) in php_iptc_next_marker() argument
160 c = php_iptc_get1(fp, spool, spoolbuf); in php_iptc_next_marker()
165 if ((c = php_iptc_get1(fp, spool, spoolbuf)) == EOF) in php_iptc_next_marker()
176 php_iptc_put1(fp, spool, (unsigned char)c, spoolbuf); in php_iptc_next_marker()
195 zend_string *spoolbuf = NULL; in PHP_FUNCTION() local
221 spoolbuf = zend_string_safe_alloc(1, iptcdata_len + sizeof(psheader) + 1024 + 1, sb.st_size, 0); in PHP_FUNCTION()
222 poi = (unsigned char*)ZSTR_VAL(spoolbuf); in PHP_FUNCTION()
228 if (spoolbuf) { in PHP_FUNCTION()
229 zend_string_free(spoolbuf); in PHP_FUNCTION()
236 if (spoolbuf) { in PHP_FUNCTION()
237 zend_string_free(spoolbuf); in PHP_FUNCTION()
305 spoolbuf = zend_string_truncate(spoolbuf, poi - (unsigned char*)ZSTR_VAL(spoolbuf), 0); in PHP_FUNCTION()
306 RETURN_NEW_STR(spoolbuf); in PHP_FUNCTION()