Lines Matching refs:in_len
383 static zend_string *php_zlib_encode(const char *in_buf, size_t in_len, int encoding, int level) in php_zlib_encode() argument
394 out = zend_string_alloc(PHP_ZLIB_BUFFER_SIZE_GUESS(in_len), 0); in php_zlib_encode()
398 Z.avail_in = in_len; in php_zlib_encode()
469 static int php_zlib_decode(const char *in_buf, size_t in_len, char **out_buf, size_t *out_len, int … in php_zlib_decode() argument
478 if (in_len) { in php_zlib_decode()
483 Z.avail_in = in_len + 1; /* NOTE: data must be zero terminated */ in php_zlib_decode()
525 size_t in_len; in PHP_FUNCTION() local
538 if (SUCCESS != zend_parse_parameters(ZEND_NUM_ARGS(), "sl", &in_str, &in_len, &flags)) { in PHP_FUNCTION()
564 ctx.in.used = in_len; in PHP_FUNCTION()
738 size_t in_len; \
741 if (SUCCESS != zend_parse_parameters(ZEND_NUM_ARGS(), "s|l", &in_buf, &in_len, &max_len)) { \
748 if (SUCCESS != php_zlib_decode(in_buf, in_len, &out_buf, &out_len, encoding, max_len)) { \
937 size_t in_len, buffer_used = 0, CHUNK_SIZE = 8192; in PHP_FUNCTION() local
943 …rse_parameters(ZEND_NUM_ARGS(), "Os|l", &res, inflate_context_ce, &in_buf, &in_len, &flush_type)) { in PHP_FUNCTION()
970 if (in_len <= 0 && flush_type != Z_FINISH) { in PHP_FUNCTION()
974 out = zend_string_alloc((in_len > CHUNK_SIZE) ? in_len : CHUNK_SIZE, 0); in PHP_FUNCTION()
977 ctx->Z.avail_in = in_len; in PHP_FUNCTION()
1174 size_t in_len, out_size, buffer_used; in PHP_FUNCTION() local
1180 …rse_parameters(ZEND_NUM_ARGS(), "Os|l", &res, deflate_context_ce, &in_buf, &in_len, &flush_type)) { in PHP_FUNCTION()
1204 if (in_len <= 0 && flush_type != Z_FINISH) { in PHP_FUNCTION()
1208 out_size = PHP_ZLIB_BUFFER_SIZE_GUESS(in_len); in PHP_FUNCTION()
1214 ctx->Z.avail_in = in_len; in PHP_FUNCTION()