Lines Matching refs:out

162 		output_context->out.size = PHP_ZLIB_BUFFER_SIZE_GUESS(output_context->in.used);  in php_zlib_output_handler_ex()
163 output_context->out.data = emalloc(output_context->out.size); in php_zlib_output_handler_ex()
164 output_context->out.free = 1; in php_zlib_output_handler_ex()
165 output_context->out.used = 0; in php_zlib_output_handler_ex()
169 ctx->Z.avail_out = output_context->out.size; in php_zlib_output_handler_ex()
170 ctx->Z.next_out = (Bytef *) output_context->out.data; in php_zlib_output_handler_ex()
190 output_context->out.used = output_context->out.size - ctx->Z.avail_out; in php_zlib_output_handler_ex()
340 zend_string *out; in php_zlib_encode() local
347 out = zend_string_alloc(PHP_ZLIB_BUFFER_SIZE_GUESS(in_len), 0); in php_zlib_encode()
350 Z.next_out = (Bytef *) ZSTR_VAL(out); in php_zlib_encode()
352 Z.avail_out = ZSTR_LEN(out); in php_zlib_encode()
359 out = zend_string_truncate(out, Z.total_out, 0); in php_zlib_encode()
360 ZSTR_VAL(out)[ZSTR_LEN(out)] = '\0'; in php_zlib_encode() local
361 return out; in php_zlib_encode()
363 zend_string_efree(out); in php_zlib_encode()
523 if (ctx.out.data && ctx.out.free) { in PHP_FUNCTION()
524 efree(ctx.out.data); in PHP_FUNCTION()
530 if (ctx.out.data) { in PHP_FUNCTION()
531 RETVAL_STRINGL(ctx.out.data, ctx.out.used); in PHP_FUNCTION()
532 if (ctx.out.free) { in PHP_FUNCTION()
533 efree(ctx.out.data); in PHP_FUNCTION()
661 zend_string *in, *out; \
686 if ((out = php_zlib_encode(ZSTR_VAL(in), ZSTR_LEN(in), encoding, level)) == NULL) { \
689 RETURN_STR(out); \
908 zend_string *out; in PHP_FUNCTION() local
951 out = zend_string_alloc((in_len > CHUNK_SIZE) ? in_len : CHUNK_SIZE, 0); in PHP_FUNCTION()
953 ctx->next_out = (Bytef *) ZSTR_VAL(out); in PHP_FUNCTION()
955 ctx->avail_out = ZSTR_LEN(out); in PHP_FUNCTION()
959 buffer_used = ZSTR_LEN(out) - ctx->avail_out; in PHP_FUNCTION()
967 out = zend_string_realloc(out, ZSTR_LEN(out) + CHUNK_SIZE, 0); in PHP_FUNCTION()
969 ctx->next_out = (Bytef *) ZSTR_VAL(out) + buffer_used; in PHP_FUNCTION()
979 out = zend_string_realloc(out, ZSTR_LEN(out) + CHUNK_SIZE, 0); in PHP_FUNCTION()
981 ctx->next_out = (Bytef *) ZSTR_VAL(out) + buffer_used; in PHP_FUNCTION()
998 zend_string_release_ex(out, 0); in PHP_FUNCTION()
1009 zend_string_release_ex(out, 0); in PHP_FUNCTION()
1016 out = zend_string_realloc(out, buffer_used, 0); in PHP_FUNCTION()
1017 ZSTR_VAL(out)[buffer_used] = 0; in PHP_FUNCTION() local
1018 RETURN_STR(out); in PHP_FUNCTION()
1164 zend_string *out; in PHP_FUNCTION() local
1207 out = zend_string_alloc(out_size, 0); in PHP_FUNCTION()
1210 ctx->next_out = (Bytef *) ZSTR_VAL(out); in PHP_FUNCTION()
1212 ctx->avail_out = ZSTR_LEN(out); in PHP_FUNCTION()
1220 out = zend_string_realloc(out, ZSTR_LEN(out) + 64, 0); in PHP_FUNCTION()
1222 ctx->next_out = (Bytef *) ZSTR_VAL(out) + buffer_used; in PHP_FUNCTION()
1225 buffer_used = ZSTR_LEN(out) - ctx->avail_out; in PHP_FUNCTION()
1230 ZSTR_LEN(out) = (char *) ctx->next_out - ZSTR_VAL(out); in PHP_FUNCTION()
1231 ZSTR_VAL(out)[ZSTR_LEN(out)] = 0; in PHP_FUNCTION() local
1232 RETURN_STR(out); in PHP_FUNCTION()
1235 ZSTR_LEN(out) = (char *) ctx->next_out - ZSTR_VAL(out); in PHP_FUNCTION()
1236 ZSTR_VAL(out)[ZSTR_LEN(out)] = 0; in PHP_FUNCTION() local
1238 RETURN_STR(out); in PHP_FUNCTION()
1241 zend_string_release_ex(out, 0); in PHP_FUNCTION()