Wraps a Uint8Array view's contents in an immutable ArrayBuffer.
Calls the sliceToImmutable method installed by
@endo/immutable-arraybuffer/shim.js on ArrayBuffer.prototype.
Importing this module triggers the shim install, so the caller does not
need to arrange for it separately. 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.Calls the
sliceToImmutablemethod installed by@endo/immutable-arraybuffer/shim.jsonArrayBuffer.prototype. Importing this module triggers the shim install, so the caller does not need to arrange for it separately. 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.