We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 53e5f6e commit 42a512fCopy full SHA for 42a512f
Sources/CRC32CNIOSupport/ByteBuffer+CRC.swift
@@ -7,7 +7,8 @@ extension ByteBuffer {
7
return ~0
8
}
9
var crc = CRC32C()
10
- crc.update(view)
+
11
+ crc.update(view[view.startIndex..<view.endIndex])
12
crc.finalize()
13
return crc.value
14
0 commit comments