Lines Matching refs:out

212 		output_context->out.size = PHP_ZLIB_BUFFER_SIZE_GUESS(output_context->in.used);  in php_zlib_output_handler_ex()
213 output_context->out.data = emalloc(output_context->out.size); in php_zlib_output_handler_ex()
214 output_context->out.free = 1; in php_zlib_output_handler_ex()
215 output_context->out.used = 0; in php_zlib_output_handler_ex()
219 ctx->Z.avail_out = output_context->out.size; in php_zlib_output_handler_ex()
220 ctx->Z.next_out = (Bytef *) output_context->out.data; in php_zlib_output_handler_ex()
240 output_context->out.used = output_context->out.size - ctx->Z.avail_out; in php_zlib_output_handler_ex()
390 zend_string *out; in php_zlib_encode() local
397 out = zend_string_alloc(PHP_ZLIB_BUFFER_SIZE_GUESS(in_len), 0); in php_zlib_encode()
400 Z.next_out = (Bytef *) ZSTR_VAL(out); in php_zlib_encode()
402 Z.avail_out = ZSTR_LEN(out); in php_zlib_encode()
409 out = zend_string_truncate(out, Z.total_out, 0); in php_zlib_encode()
410 ZSTR_VAL(out)[ZSTR_LEN(out)] = '\0'; in php_zlib_encode() local
411 return out; in php_zlib_encode()
413 zend_string_efree(out); in php_zlib_encode()
572 if (ctx.out.data && ctx.out.free) { in PHP_FUNCTION()
573 efree(ctx.out.data); in PHP_FUNCTION()
579 if (ctx.out.data) { in PHP_FUNCTION()
580 RETVAL_STRINGL(ctx.out.data, ctx.out.used); in PHP_FUNCTION()
581 if (ctx.out.free) { in PHP_FUNCTION()
582 efree(ctx.out.data); in PHP_FUNCTION()
706 zend_string *in, *out; \
731 if ((out = php_zlib_encode(ZSTR_VAL(in), ZSTR_LEN(in), encoding, level)) == NULL) { \
734 RETURN_STR(out); \
942 zend_string *out; in PHP_FUNCTION() local
981 out = zend_string_alloc((in_len > CHUNK_SIZE) ? in_len : CHUNK_SIZE, 0); in PHP_FUNCTION()
983 ctx->Z.next_out = (Bytef *) ZSTR_VAL(out); in PHP_FUNCTION()
985 ctx->Z.avail_out = ZSTR_LEN(out); in PHP_FUNCTION()
989 buffer_used = ZSTR_LEN(out) - ctx->Z.avail_out; in PHP_FUNCTION()
997 out = zend_string_realloc(out, ZSTR_LEN(out) + CHUNK_SIZE, 0); in PHP_FUNCTION()
999 ctx->Z.next_out = (Bytef *) ZSTR_VAL(out) + buffer_used; in PHP_FUNCTION()
1009 out = zend_string_realloc(out, ZSTR_LEN(out) + CHUNK_SIZE, 0); in PHP_FUNCTION()
1011 ctx->Z.next_out = (Bytef *) ZSTR_VAL(out) + buffer_used; in PHP_FUNCTION()
1027 zend_string_release_ex(out, 0); in PHP_FUNCTION()
1038 zend_string_release_ex(out, 0); in PHP_FUNCTION()
1045 out = zend_string_realloc(out, buffer_used, 0); in PHP_FUNCTION()
1046 ZSTR_VAL(out)[buffer_used] = 0; in PHP_FUNCTION() local
1047 RETURN_STR(out); in PHP_FUNCTION()
1179 zend_string *out; in PHP_FUNCTION() local
1217 out = zend_string_alloc(out_size, 0); in PHP_FUNCTION()
1220 ctx->Z.next_out = (Bytef *) ZSTR_VAL(out); in PHP_FUNCTION()
1222 ctx->Z.avail_out = ZSTR_LEN(out); in PHP_FUNCTION()
1230 out = zend_string_realloc(out, ZSTR_LEN(out) + 64, 0); in PHP_FUNCTION()
1232 ctx->Z.next_out = (Bytef *) ZSTR_VAL(out) + buffer_used; in PHP_FUNCTION()
1235 buffer_used = ZSTR_LEN(out) - ctx->Z.avail_out; in PHP_FUNCTION()
1240 ZSTR_LEN(out) = (char *) ctx->Z.next_out - ZSTR_VAL(out); in PHP_FUNCTION()
1241 ZSTR_VAL(out)[ZSTR_LEN(out)] = 0; in PHP_FUNCTION() local
1242 RETURN_STR(out); in PHP_FUNCTION()
1245 ZSTR_LEN(out) = (char *) ctx->Z.next_out - ZSTR_VAL(out); in PHP_FUNCTION()
1246 ZSTR_VAL(out)[ZSTR_LEN(out)] = 0; in PHP_FUNCTION() local
1248 RETURN_STR(out); in PHP_FUNCTION()
1251 zend_string_release_ex(out, 0); in PHP_FUNCTION()