Lines Matching refs:spoolbuf
76 static int php_iptc_put1(FILE *fp, int spool, unsigned char c, unsigned char **spoolbuf) in php_iptc_put1() argument
81 if (spoolbuf) *(*spoolbuf)++ = c; in php_iptc_put1()
88 static int php_iptc_get1(FILE *fp, int spool, unsigned char **spoolbuf) in php_iptc_get1() argument
102 if (spoolbuf) *(*spoolbuf)++ = c; in php_iptc_get1()
109 static int php_iptc_read_remaining(FILE *fp, int spool, unsigned char **spoolbuf) in php_iptc_read_remaining() argument
111 while (php_iptc_get1(fp, spool, spoolbuf) != EOF) continue; in php_iptc_read_remaining()
118 static int php_iptc_skip_variable(FILE *fp, int spool, unsigned char **spoolbuf) in php_iptc_skip_variable() argument
123 if ((c1 = php_iptc_get1(fp, spool, spoolbuf)) == EOF) return M_EOI; in php_iptc_skip_variable()
125 if ((c2 = php_iptc_get1(fp, spool, spoolbuf)) == EOF) return M_EOI; in php_iptc_skip_variable()
132 if (php_iptc_get1(fp, spool, spoolbuf) == EOF) return M_EOI; in php_iptc_skip_variable()
139 static int php_iptc_next_marker(FILE *fp, int spool, unsigned char **spoolbuf) in php_iptc_next_marker() argument
145 c = php_iptc_get1(fp, spool, spoolbuf); in php_iptc_next_marker()
150 if ((c = php_iptc_get1(fp, spool, spoolbuf)) == EOF) in php_iptc_next_marker()
161 php_iptc_put1(fp, spool, (unsigned char)c, spoolbuf); in php_iptc_next_marker()
179 zend_string *spoolbuf = NULL; in PHP_FUNCTION() local
210 spoolbuf = zend_string_safe_alloc(1, iptcdata_len + sizeof(psheader) + 1024 + 1, sb.st_size, 0); in PHP_FUNCTION()
211 poi = (unsigned char*)ZSTR_VAL(spoolbuf); in PHP_FUNCTION()
217 if (spoolbuf) { in PHP_FUNCTION()
218 zend_string_efree(spoolbuf); in PHP_FUNCTION()
225 if (spoolbuf) { in PHP_FUNCTION()
226 zend_string_efree(spoolbuf); in PHP_FUNCTION()
294 spoolbuf = zend_string_truncate(spoolbuf, poi - (unsigned char*)ZSTR_VAL(spoolbuf), 0); in PHP_FUNCTION()
295 RETURN_NEW_STR(spoolbuf); in PHP_FUNCTION()