crc32 function of zlib fails in swift 3 Cannot invoke initializer for type 'UnsafePointer<Bytef>' with an argument list of type '(UnsafeRawPointer)'
<p>I want to make a CRC32 Hash out of a string and so I got the zlib function crc32.</p>

<p>But in Swift 3 this makes problems.</p>

<p>The code looks like this:</p>

<pre><code>func crc32HashString(_ string: String) {
    let strData = string.data(using: String.Encoding.utf8, allowLossyConversion: false)
    let crc = crc32(uLong(0), UnsafePointer&lt;Bytef&gt;(strData!.bytes), uInt(strData!.length))
}
</code></pre>

<p>The compiler gives me this Error:</p>

<pre><code>Cannot invoke initializer for type 'UnsafePointer&lt;Bytef&gt;' with an argument list of type '(UnsafeRawPointer)'
</code></pre>

<p>How do I resolve this error?</p>

<p>best regards and thank you for your help!</p>

<p>Artur</p>