ent"><div class='highlight'><pre><span class="hljs-keyword">export</span> <span class="hljs-keyword">default</span> <span class="hljs-keyword">function</span> <span class="hljs-title function_">toBufferView</span>(<span class="hljs-params">bufferSource</span>) {
  <span class="hljs-keyword">return</span> <span class="hljs-keyword">new</span> <span class="hljs-title class_">Uint8Array</span>(
    bufferSource.<span class="hljs-property">buffer</span> || bufferSource,
    bufferSource.<span class="hljs-proper