Wraps a Uint8Array view's contents in an immutable ArrayBuffer.
Uses the sliceBufferToImmutable ponyfill from
@endo/immutable-arraybuffer so the caller does not need to have
arranged for the ArrayBuffer.prototype.sliceToImmutable shim to be
installed first. The resulting buffer carries the 'byteArray'
passStyle and is safe to share across vat boundaries. The result is
hardened so it is passable.
Honors the view's byteOffset and byteLength, so passing a
subarray copies only that window.
Wraps a
Uint8Arrayview's contents in an immutableArrayBuffer.Uses the
sliceBufferToImmutableponyfill from@endo/immutable-arraybufferso the caller does not need to have arranged for theArrayBuffer.prototype.sliceToImmutableshim to be installed first. The resulting buffer carries the'byteArray'passStyle and is safe to share across vat boundaries. The result is hardened so it is passable.Honors the view's
byteOffsetandbyteLength, so passing asubarraycopies only that window.