mirror of
https://github.com/awslabs/aws-crt-php.git
synced 2026-08-18 10:07:12 +00:00
clang-format
This commit is contained in:
+5
-5
@@ -22,11 +22,11 @@ PHP_FUNCTION(aws_crt_md5_new) {
|
||||
|
||||
PHP_FUNCTION(aws_crt_hash_update) {
|
||||
zend_ulong php_hash = 0;
|
||||
const char * buffer = NULL;
|
||||
const char *buffer = NULL;
|
||||
size_t len = 0;
|
||||
aws_php_parse_parameters("ls", &php_hash, &buffer, &len);
|
||||
aws_crt_hash *hash = (void *) php_hash;
|
||||
RETURN_LONG((zend_ulong) aws_crt_hash_update(hash, (uint8_t *)buffer, (uint32_t) len));
|
||||
aws_crt_hash *hash = (void *)php_hash;
|
||||
RETURN_LONG((zend_ulong)aws_crt_hash_update(hash, (uint8_t *)buffer, (uint32_t)len));
|
||||
}
|
||||
|
||||
PHP_FUNCTION(aws_crt_hash_digest) {
|
||||
@@ -34,7 +34,7 @@ PHP_FUNCTION(aws_crt_hash_digest) {
|
||||
size_t truncate_to = 0;
|
||||
size_t length = 0;
|
||||
aws_php_parse_parameters("lll", &php_hash, &truncate_to, &length);
|
||||
aws_crt_hash *hash = (void *) php_hash;
|
||||
aws_crt_hash *hash = (void *)php_hash;
|
||||
if (truncate_to != 0 && length > truncate_to) {
|
||||
length = truncate_to;
|
||||
}
|
||||
@@ -49,6 +49,6 @@ PHP_FUNCTION(aws_crt_hash_digest) {
|
||||
PHP_FUNCTION(aws_crt_hash_destroy) {
|
||||
zend_ulong php_hash = 0;
|
||||
aws_php_parse_parameters("l", &php_hash);
|
||||
aws_crt_hash *hash = (void *) php_hash;
|
||||
aws_crt_hash *hash = (void *)php_hash;
|
||||
aws_crt_hash_destroy(hash);
|
||||
}
|
||||
Reference in New Issue
Block a user