Lines Matching refs:spoolbuf
87 static int php_iptc_put1(FILE *fp, int spool, unsigned char c, unsigned char **spoolbuf TSRMLS_DC) in php_iptc_put1()
92 if (spoolbuf) *(*spoolbuf)++ = c; in php_iptc_put1()
100 static int php_iptc_get1(FILE *fp, int spool, unsigned char **spoolbuf TSRMLS_DC) in php_iptc_get1()
114 if (spoolbuf) *(*spoolbuf)++ = c; in php_iptc_get1()
122 static int php_iptc_read_remaining(FILE *fp, int spool, unsigned char **spoolbuf TSRMLS_DC) in php_iptc_read_remaining()
124 while (php_iptc_get1(fp, spool, spoolbuf TSRMLS_CC) != EOF) continue; in php_iptc_read_remaining()
132 static int php_iptc_skip_variable(FILE *fp, int spool, unsigned char **spoolbuf TSRMLS_DC) in php_iptc_skip_variable()
137 if ((c1 = php_iptc_get1(fp, spool, spoolbuf TSRMLS_CC)) == EOF) return M_EOI; in php_iptc_skip_variable()
139 if ((c2 = php_iptc_get1(fp, spool, spoolbuf TSRMLS_CC)) == EOF) return M_EOI; in php_iptc_skip_variable()
146 if (php_iptc_get1(fp, spool, spoolbuf TSRMLS_CC) == EOF) return M_EOI; in php_iptc_skip_variable()
154 static int php_iptc_next_marker(FILE *fp, int spool, unsigned char **spoolbuf TSRMLS_DC) in php_iptc_next_marker()
160 c = php_iptc_get1(fp, spool, spoolbuf TSRMLS_CC); in php_iptc_next_marker()
165 if ((c = php_iptc_get1(fp, spool, spoolbuf TSRMLS_CC)) == EOF) in php_iptc_next_marker()
176 php_iptc_put1(fp, spool, (unsigned char)c, spoolbuf TSRMLS_CC); in php_iptc_next_marker()
195 unsigned char *spoolbuf = NULL, *poi = NULL; in PHP_FUNCTION() local
220 poi = spoolbuf = safe_emalloc(1, (size_t)iptcdata_len + sizeof(psheader) + 1024 + 1, sb.st_size); in PHP_FUNCTION()
226 if (spoolbuf) { in PHP_FUNCTION()
227 efree(spoolbuf); in PHP_FUNCTION()
234 if (spoolbuf) { in PHP_FUNCTION()
235 efree(spoolbuf); in PHP_FUNCTION()
303 RETVAL_STRINGL(spoolbuf, poi - spoolbuf, 0); in PHP_FUNCTION()