title: How to slice a ByteBuffer
body: <p>Dart's <a href="https://api.dart.dev/stable/2.8.4/dart-typed_data/ByteBuffer-class.html" rel="nofollow noreferrer"><code>ByteBuffer</code></a> and <a href="https://api.dart.dev/stable/2.8.4/dart-typed_data/ByteData-class.html" rel="nofollow noreferrer"><code>ByteData</code></a> are pretty direct copies of Javascript's <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer" rel="nofollow noreferrer"><code>ArrayBuffer</code></a> and <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView" rel="nofollow noreferrer"><code>DataView</code></a> respectively (but with <em>even more</em> confusing names!)</p>
  <p>However there doesn't seem to be an equivalent to <code>ArrayBuffer.slice()</code>, that creates a <em>copy</em> of of part of an <code>ArrayBuffer</code>. Did I miss it? Is this deliberate or just an omission?</p>