Lines Matching refs:spoolbuf
78 static int php_iptc_put1(FILE *fp, int spool, unsigned char c, unsigned char **spoolbuf TSRMLS_DC) in php_iptc_put1()
83 if (spoolbuf) *(*spoolbuf)++ = c; in php_iptc_put1()
91 static int php_iptc_get1(FILE *fp, int spool, unsigned char **spoolbuf TSRMLS_DC) in php_iptc_get1()
105 if (spoolbuf) *(*spoolbuf)++ = c; in php_iptc_get1()
113 static int php_iptc_read_remaining(FILE *fp, int spool, unsigned char **spoolbuf TSRMLS_DC) in php_iptc_read_remaining()
115 while (php_iptc_get1(fp, spool, spoolbuf TSRMLS_CC) != EOF) continue; in php_iptc_read_remaining()
123 static int php_iptc_skip_variable(FILE *fp, int spool, unsigned char **spoolbuf TSRMLS_DC) in php_iptc_skip_variable()
128 if ((c1 = php_iptc_get1(fp, spool, spoolbuf TSRMLS_CC)) == EOF) return M_EOI; in php_iptc_skip_variable()
130 if ((c2 = php_iptc_get1(fp, spool, spoolbuf TSRMLS_CC)) == EOF) return M_EOI; in php_iptc_skip_variable()
137 if (php_iptc_get1(fp, spool, spoolbuf TSRMLS_CC) == EOF) return M_EOI; in php_iptc_skip_variable()
145 static int php_iptc_next_marker(FILE *fp, int spool, unsigned char **spoolbuf TSRMLS_DC) in php_iptc_next_marker()
151 c = php_iptc_get1(fp, spool, spoolbuf TSRMLS_CC); in php_iptc_next_marker()
156 if ((c = php_iptc_get1(fp, spool, spoolbuf TSRMLS_CC)) == EOF) in php_iptc_next_marker()
167 php_iptc_put1(fp, spool, (unsigned char)c, spoolbuf TSRMLS_CC); in php_iptc_next_marker()
186 unsigned char *spoolbuf = NULL, *poi = NULL; in PHP_FUNCTION() local
206 poi = spoolbuf = safe_emalloc(1, iptcdata_len + sizeof(psheader) + sb.st_size + 1024, 1); in PHP_FUNCTION()
212 if (spoolbuf) { in PHP_FUNCTION()
213 efree(spoolbuf); in PHP_FUNCTION()
220 if (spoolbuf) { in PHP_FUNCTION()
221 efree(spoolbuf); in PHP_FUNCTION()
288 RETVAL_STRINGL(spoolbuf, poi - spoolbuf, 0); in PHP_FUNCTION()