← Back to release summary

TextEncoder encodeInto() method

Category
DOM
Type
New or changed feature
Status
Enabled by default (Chrome 74)
Intent stage
None

Summary

TextEncoder's encodeInto() method allows an encoded string to be written directly "into" a supplied pre-allocated buffer, offering a performant alternative to using encode() to produce a buffer, and copying its contents into an existing buffer.

Standards & signals

View on chromestatus.com