Line | Count | Source |
1 | /* adler32_fold.c -- adler32 folding interface | |
2 | * Copyright (C) 2022 Adam Stylinski | |
3 | * For conditions of distribution and use, see copyright notice in zlib.h | |
4 | */ | |
5 | ||
6 | #include "zbuild.h" | |
7 | #include "functable.h" | |
8 | ||
9 | #include <limits.h> | |
10 | ||
11 | 0 | Z_INTERNAL uint32_t adler32_fold_copy_c(uint32_t adler, uint8_t *dst, const uint8_t *src, size_t len) { |
12 | 0 | adler = FUNCTABLE_CALL(adler32)(adler, src, len); |
13 | 0 | memcpy(dst, src, len); |
14 | 0 | return adler; |
15 | 0 | } |