transferToImmutable(newLength = undefined) {
    return transferBufferToImmutable(this, newLength);
  }
Transfer the contents to a new Immutable ArrayBuffer

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