Closed Bug 1907302 Opened 2 months ago Closed 2 months ago

Add optional padding and direct write changes to Uint8Array to/from base64 proposal

Categories

(Core :: JavaScript: Standard Library, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
130 Branch
Tracking Status
firefox130 --- fixed

People

(Reporter: anba, Assigned: anba)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

Change FromHex and FromBase64 to accept a templated Sink parameter, which
either appends to a ByteVector or directly into the target TypedArrayObject.
Uint8Array.prototype.setFrom{Base64,Hex} now no longer have to allocate
temporary space when processing the input string.

Changes from:
https://github.com/tc39/proposal-arraybuffer-base64/pull/58

Depends on D216279

Pushed by andre.bargull@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/fe345577ce8d
Part 1: Add option to omit padding in Uint8Array.prototype.toBase64. r=spidermonkey-reviewers,dminor
https://hg.mozilla.org/integration/autoland/rev/67f24633fa04
Part 2: Write data up until error in Uint8Array.prototype.setFrom{Base64,Hex} methods. r=spidermonkey-reviewers,dminor
Status: ASSIGNED → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 130 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: