You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(marshal,pass-style): admit immutable ArrayBuffer through codecs
Immutable `ArrayBuffer` (passStyle `'byteArray'`) is now serializable
through the capdata, smallcaps, and encode-passable codecs:
- `@endo/pass-style` gains `byteArrayToHex`, `hexToByteArray`,
`byteArrayToUint8Array`, and `uint8ArrayToByteArray` helpers, all
routed through `@endo/hex`.
- `@endo/marshal`:
- capdata: `byteArray` encodes as
`{"@qclass":"byteArray","data":"<hex>"}`.
- smallcaps: `byteArray` encodes as `"*<hex>"`; the `*` prefix is
now reserved.
- encode-passable: `byteArray` encodes as
`a<encodeBigInt(byteLength)>:<hex>`. The Elias-delta length
prefix gives shortlex ordering matching `compareRank` with no
arbitrary size cap.
- marshal-justin: renders byteArray as `hexToByteArray("<hex>")`.
Syrup already supported this value through its bytestring primitive;
CBOR remains out of scope until `packages/ocapn/src/cbor` lands.
0 commit comments