sliceToImmutable(start = undefined, end = undefined) {
    return sliceBufferToImmutable(this, start, end);
  }
Creates an immutable slice of the given buffer.
@this {ArrayBuffer} buffer The original buffer.
@param {number} [start] The start index.
@param {number} [end] The end index.
@returns {ArrayBuffer} The sliced immutable ArrayBuffer.