Lines Matching refs:length
370 …NTRIN_AVX2_FUNC_DECL(zend_string *php_base64_encode_avx2(const unsigned char *str, size_t length));
371 …DECL(zend_string *php_base64_decode_ex_avx2(const unsigned char *str, size_t length, bool strict));
375 …RIN_SSSE3_FUNC_DECL(zend_string *php_base64_encode_ssse3(const unsigned char *str, size_t length));
376 …ECL(zend_string *php_base64_decode_ex_ssse3(const unsigned char *str, size_t length, bool strict));
379 zend_string *php_base64_encode_default(const unsigned char *str, size_t length);
380 zend_string *php_base64_decode_ex_default(const unsigned char *str, size_t length, bool strict);
383 PHPAPI zend_string *php_base64_encode(const unsigned char *str, size_t length) __attribute__((ifunc…
384 PHPAPI zend_string *php_base64_decode_ex(const unsigned char *str, size_t length, bool strict) __at…
422 PHPAPI zend_string *(*php_base64_encode_ptr)(const unsigned char *str, size_t length) = NULL;
423 PHPAPI zend_string *(*php_base64_decode_ex_ptr)(const unsigned char *str, size_t length, bool stric…
425 PHPAPI zend_string *php_base64_encode(const unsigned char *str, size_t length) { in php_base64_encode() argument
426 return php_base64_encode_ptr(str, length); in php_base64_encode()
428 PHPAPI zend_string *php_base64_decode_ex(const unsigned char *str, size_t length, bool strict) { in php_base64_decode_ex() argument
429 return php_base64_decode_ex_ptr(str, length, strict); in php_base64_decode_ex()
588 while (length > 15) { \
598 length -= 12; \
605 PHPAPI zend_string *php_base64_encode(const unsigned char *str, size_t length) in php_base64_encode() argument
607 zend_string *php_base64_encode_avx2(const unsigned char *str, size_t length) in php_base64_encode()
609 zend_string *php_base64_encode_ssse3(const unsigned char *str, size_t length) in php_base64_encode()
616 result = zend_string_safe_alloc(((length + 2) / 3), 4 * sizeof(char), 0, 0); in php_base64_encode()
619 if (length > 31) { in php_base64_encode()
632 length -= 24; in php_base64_encode()
633 if (length < 28) { in php_base64_encode()
643 o = php_base64_encode_impl(c, length, o); in php_base64_encode()
651 zend_string *php_base64_encode_ssse3(const unsigned char *str, size_t length) in php_base64_encode_ssse3() argument
657 result = zend_string_safe_alloc(((length + 2) / 3), 4 * sizeof(char), 0, 0); in php_base64_encode_ssse3()
662 o = php_base64_encode_impl(c, length, o); in php_base64_encode_ssse3()
728 while (length > 15 + 6 + 2) { \
770 length -= 16; \
778 PHPAPI zend_string *php_base64_decode_ex(const unsigned char *str, size_t length, bool strict) in php_base64_decode_ex() argument
780 zend_string *php_base64_decode_ex_avx2(const unsigned char *str, size_t length, bool strict) in php_base64_decode_ex()
782 zend_string *php_base64_decode_ex_ssse3(const unsigned char *str, size_t length, bool strict) in php_base64_decode_ex()
790 result = zend_string_alloc(length, 0); in php_base64_decode_ex()
796 while (length > 31 + 11 + 2) { in php_base64_decode_ex()
841 length -= 32; in php_base64_decode_ex()
848 if (!php_base64_decode_impl(c, length, (unsigned char*)ZSTR_VAL(result), &outl, strict)) { in php_base64_decode_ex()
859 zend_string *php_base64_decode_ex_ssse3(const unsigned char *str, size_t length, bool strict) in php_base64_decode_ex_ssse3() argument
866 result = zend_string_alloc(length, 0); in php_base64_decode_ex_ssse3()
871 if (!php_base64_decode_impl(c, length, (unsigned char*)ZSTR_VAL(result), &outl, strict)) { in php_base64_decode_ex_ssse3()
885 zend_string *php_base64_encode_default(const unsigned char *str, size_t length) in php_base64_encode_default() argument
887 PHPAPI zend_string *php_base64_encode(const unsigned char *str, size_t length) in php_base64_encode_default()
893 result = zend_string_safe_alloc(((length + 2) / 3), 4 * sizeof(char), 0, 0); in php_base64_encode_default()
896 p = php_base64_encode_impl(str, length, p); in php_base64_encode_default()
906 zend_string *php_base64_decode_ex_default(const unsigned char *str, size_t length, bool strict) in php_base64_decode_ex_default() argument
908 PHPAPI zend_string *php_base64_decode_ex(const unsigned char *str, size_t length, bool strict) in php_base64_decode_ex_default()
914 result = zend_string_alloc(length, 0); in php_base64_decode_ex_default()
916 if (!php_base64_decode_impl(str, length, (unsigned char*)ZSTR_VAL(result), &outl, strict)) { in php_base64_decode_ex_default()