sliceBufferToImmutable = (
  buffer,
  start = undefined,
  end = undefined,
) => transferBufferToImmutable(sliceBuffer(buffer, start, end))
Creates an immutable slice of the given buffer.

@param {ArrayBuffer} buffer The original buffer.
@param {number} [start] The start index.
@param {number} [end] The end index.
@returns {ArrayBuffer} The sliced immutable ArrayBuffer.