����JFIF��x�x����'
Server IP : 66.29.137.217 / Your IP : 18.119.110.128 Web Server : LiteSpeed System : Linux premium294.web-hosting.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64 User : gltevjme ( 1095) PHP Version : 7.0.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/gltevjme/cbt.gltechlimited.com/vendor/aws/aws-crt-php/ext/ |
Upload File : |
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include "php_aws_crt.h" PHP_FUNCTION(aws_crt_crc32) { zend_ulong prev = 0; const char *input = NULL; size_t len = 0; aws_php_parse_parameters("sl", &input, &len, &prev); if (prev > UINT32_MAX) { aws_php_throw_exception("previous crc cannot be larger than UINT32_MAX"); } RETURN_LONG((zend_ulong)aws_crt_crc32((const uint8_t *)input, len, prev)); } PHP_FUNCTION(aws_crt_crc32c) { zend_ulong prev = 0; const char *input = NULL; size_t len = 0; aws_php_parse_parameters("sl", &input, &len, &prev); if (prev > UINT32_MAX) { aws_php_throw_exception("previous crc cannot be larger than UINT32_MAX"); } RETURN_LONG((zend_ulong)aws_crt_crc32c((const uint8_t *)input, len, prev)); }