Lines Matching refs:spoolbuf

85 static int php_iptc_put1(FILE *fp, int spool, unsigned char c, unsigned char **spoolbuf)  in php_iptc_put1()  argument
90 if (spoolbuf) *(*spoolbuf)++ = c; in php_iptc_put1()
98 static int php_iptc_get1(FILE *fp, int spool, unsigned char **spoolbuf) in php_iptc_get1() argument
112 if (spoolbuf) *(*spoolbuf)++ = c; in php_iptc_get1()
120 static int php_iptc_read_remaining(FILE *fp, int spool, unsigned char **spoolbuf) in php_iptc_read_remaining() argument
122 while (php_iptc_get1(fp, spool, spoolbuf) != EOF) continue; in php_iptc_read_remaining()
130 static int php_iptc_skip_variable(FILE *fp, int spool, unsigned char **spoolbuf) in php_iptc_skip_variable() argument
135 if ((c1 = php_iptc_get1(fp, spool, spoolbuf)) == EOF) return M_EOI; in php_iptc_skip_variable()
137 if ((c2 = php_iptc_get1(fp, spool, spoolbuf)) == EOF) return M_EOI; in php_iptc_skip_variable()
144 if (php_iptc_get1(fp, spool, spoolbuf) == EOF) return M_EOI; in php_iptc_skip_variable()
152 static int php_iptc_next_marker(FILE *fp, int spool, unsigned char **spoolbuf) in php_iptc_next_marker() argument
158 c = php_iptc_get1(fp, spool, spoolbuf); in php_iptc_next_marker()
163 if ((c = php_iptc_get1(fp, spool, spoolbuf)) == EOF) in php_iptc_next_marker()
174 php_iptc_put1(fp, spool, (unsigned char)c, spoolbuf); in php_iptc_next_marker()
193 zend_string *spoolbuf = NULL; in PHP_FUNCTION() local
224 spoolbuf = zend_string_safe_alloc(1, iptcdata_len + sizeof(psheader) + 1024 + 1, sb.st_size, 0); in PHP_FUNCTION()
225 poi = (unsigned char*)ZSTR_VAL(spoolbuf); in PHP_FUNCTION()
231 if (spoolbuf) { in PHP_FUNCTION()
232 zend_string_efree(spoolbuf); in PHP_FUNCTION()
239 if (spoolbuf) { in PHP_FUNCTION()
240 zend_string_efree(spoolbuf); in PHP_FUNCTION()
308 spoolbuf = zend_string_truncate(spoolbuf, poi - (unsigned char*)ZSTR_VAL(spoolbuf), 0); in PHP_FUNCTION()
309 RETURN_NEW_STR(spoolbuf); in PHP_FUNCTION()