summaryrefslogtreecommitdiff
path: root/zen/crc.h
diff options
context:
space:
mode:
authorB. Stack <bgstack15@gmail.com>2022-11-22 08:54:34 -0500
committerB. Stack <bgstack15@gmail.com>2022-11-22 08:54:34 -0500
commita034cfca98d4408b175938740628a54f57eb7614 (patch)
tree501fd78c6276c0be8be8d2c671a58dd0598060b5 /zen/crc.h
parentadd upstream 11.27 (diff)
downloadFreeFileSync-a034cfca98d4408b175938740628a54f57eb7614.tar.gz
FreeFileSync-a034cfca98d4408b175938740628a54f57eb7614.tar.bz2
FreeFileSync-a034cfca98d4408b175938740628a54f57eb7614.zip
add upstream 11.2811.28
Diffstat (limited to 'zen/crc.h')
-rw-r--r--zen/crc.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/zen/crc.h b/zen/crc.h
index c65ce2e7..009ff9da 100644
--- a/zen/crc.h
+++ b/zen/crc.h
@@ -12,8 +12,8 @@
namespace zen
{
-uint16_t getCrc16(const std::string& str);
-uint32_t getCrc32(const std::string& str);
+uint16_t getCrc16(const std::string_view& str);
+uint32_t getCrc32(const std::string_view& str);
template <class ByteIterator> uint16_t getCrc16(ByteIterator first, ByteIterator last);
template <class ByteIterator> uint32_t getCrc32(ByteIterator first, ByteIterator last);
@@ -21,8 +21,8 @@ template <class ByteIterator> uint32_t getCrc32(ByteIterator first, ByteIterator
//------------------------- implementation -------------------------------
-inline uint16_t getCrc16(const std::string& str) { return getCrc16(str.begin(), str.end()); }
-inline uint32_t getCrc32(const std::string& str) { return getCrc32(str.begin(), str.end()); }
+inline uint16_t getCrc16(const std::string_view& str) { return getCrc16(str.begin(), str.end()); }
+inline uint32_t getCrc32(const std::string_view& str) { return getCrc32(str.begin(), str.end()); }
template <class ByteIterator> inline
bgstack15