TextEncoder encodeInto() method

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.

Specification

Established standard

Status in Chromium

Blink>TextEncoding


Enabled by default (tracking bug) in:

  • Chrome for desktop release 74
  • Chrome for Android release 74

Consensus & Standardization

After a feature ships in Chrome, the values listed here are not guaranteed to be up to date.

  • Shipped
  • No public signals
  • No public signals
  • Positive

Owner

Last updated on 2019-02-12