title: Cannot invoke initializer for type UnsafePointer<_> with an argument list of type (UnsafeMutableRawPointer)
body: <p>When I write the output stream in multipeer connectivity from audio buffer data I got the error </p>
  
  <blockquote>
    <p>Cannot invoke initializer for type UnsafePointer&lt;_> with an argument
    list of type (UnsafeMutableRawPointer)</p>
  </blockquote>
  
  <p>I found the many solutions, but this solution not helpful for me.</p>
  
  <p>My code is:</p>
  
  <pre><code>func send(_ buffer: AudioBuffer) {
          print(buffer.mData!)
          print(buffer.mDataByteSize)
  
          outputStreme?.write(UnsafePointer(buffer.mData), maxLength: buffer.mDataByteSize)
      }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/J3dFN.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/J3dFN.png" alt="enter image description here"></a></p>
  
  <p>Thanks in advance..:)</p>