Lines Matching refs:in_len
338 static zend_string *php_zlib_encode(const char *in_buf, size_t in_len, int encoding, int level) in php_zlib_encode() argument
349 out = zend_string_alloc(PHP_ZLIB_BUFFER_SIZE_GUESS(in_len), 0); in php_zlib_encode()
353 Z.avail_in = in_len; in php_zlib_encode()
424 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
433 if (in_len) { in php_zlib_decode()
438 Z.avail_in = in_len + 1; /* NOTE: data must be zero terminated */ in php_zlib_decode()
481 size_t in_len; in PHP_FUNCTION() local
494 if (SUCCESS != zend_parse_parameters(ZEND_NUM_ARGS(), "sl", &in_str, &in_len, &flags)) { in PHP_FUNCTION()
520 ctx.in.used = in_len; in PHP_FUNCTION()
698 size_t in_len; \
701 if (SUCCESS != zend_parse_parameters(ZEND_NUM_ARGS(), "s|l", &in_buf, &in_len, &max_len)) { \
708 if (SUCCESS != php_zlib_decode(in_buf, in_len, &out_buf, &out_len, encoding, max_len)) { \
909 size_t in_len, buffer_used = 0, CHUNK_SIZE = 8192; in PHP_FUNCTION() local
915 …if (SUCCESS != zend_parse_parameters(ZEND_NUM_ARGS(), "rs|l", &res, &in_buf, &in_len, &flush_type)… in PHP_FUNCTION()
939 if (in_len <= 0 && flush_type != Z_FINISH) { in PHP_FUNCTION()
943 out = zend_string_alloc((in_len > CHUNK_SIZE) ? in_len : CHUNK_SIZE, 0); in PHP_FUNCTION()
946 ctx->avail_in = in_len; in PHP_FUNCTION()
1115 size_t in_len, out_size, buffer_used; in PHP_FUNCTION() local
1121 …if (SUCCESS != zend_parse_parameters(ZEND_NUM_ARGS(), "rs|l", &res, &in_buf, &in_len, &flush_type)… in PHP_FUNCTION()
1150 if (in_len <= 0 && flush_type != Z_FINISH) { in PHP_FUNCTION()
1154 out_size = PHP_ZLIB_BUFFER_SIZE_GUESS(in_len); in PHP_FUNCTION()
1160 ctx->avail_in = in_len; in PHP_FUNCTION()